mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
refactor sql parser & support tableMapping. issue #1432
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user