refactor sql parser & support tableMapping. issue #1432

This commit is contained in:
wenshao
2016-09-25 05:06:50 +08:00
parent 2e478b1869
commit a26e4c546d
33 changed files with 430 additions and 177 deletions
@@ -59,10 +59,8 @@ public class DB2InsertTest_0 extends DB2Test {
// Assert.assertTrue(visitor.getColumns().contains(new Column("mytable", "full_name")));
String output = SQLUtils.toSQLString(stmt, JdbcConstants.DB2);
Assert.assertEquals("INSERT INTO t"
+ "\n\t(id, name)"
+ "\nVALUES"
+ "\n(?, ?), (?, ?), (?, ?)", //
Assert.assertEquals("INSERT INTO t (id, name)\n" +
"VALUES (?, ?), (?, ?), (?, ?)", //
output);
}
}