mirror of
https://github.com/querydsl/querydsl.git
synced 2026-06-13 21:01:01 +08:00
33 lines
827 B
Java
33 lines
827 B
Java
package com.mysema.query;
|
|
|
|
import static com.mysema.query.Constants.survey;
|
|
import static com.mysema.query.Target.TERADATA;
|
|
|
|
import org.junit.Test;
|
|
|
|
import com.mysema.query.sql.teradata.SetQueryBandClause;
|
|
import com.mysema.testutil.IncludeIn;
|
|
|
|
public class SelectTeradataBase extends AbstractBaseTest {
|
|
|
|
|
|
protected SetQueryBandClause setQueryBand() {
|
|
return new SetQueryBandClause(connection, configuration);
|
|
}
|
|
|
|
@Test
|
|
@IncludeIn(TERADATA)
|
|
public void SetQueryBand_ForSession() {
|
|
setQueryBand().set("a", "bb").forSession().execute();
|
|
query().from(survey).list(survey.id);
|
|
}
|
|
|
|
@Test
|
|
@IncludeIn(TERADATA)
|
|
public void SetQueryBand_ForTransaction() {
|
|
setQueryBand().set("a", "bb").forTransaction().execute();
|
|
query().from(survey).list(survey.id);
|
|
}
|
|
|
|
}
|