adapt nextVal() test to the recently modified NEXTVAL operator pattern

This commit is contained in:
tpuica 2017-07-25 17:13:52 +02:00 committed by GitHub
parent 4964b56845
commit 26158ddac6

View File

@ -105,8 +105,8 @@ public class SQLServer2012TemplatesTest extends AbstractSQLTemplatesTest {
@Test
public void nextVal() {
Operation<String> nextval = ExpressionUtils.operation(String.class, SQLOps.NEXTVAL, ConstantImpl.create("myseq"));
assertEquals("myseq.nextval", new SQLSerializer(new Configuration(new SQLServerTemplates())).handle(nextval).toString());
Operation<String> nextval = ExpressionUtils.operation(String.class, SQLOps.NEXTVAL, ConstantImpl.create("myseq"));
assertSerialized(nextval, "next value for myseq");
}
}