improved oracle parameterize support, fix #3966

This commit is contained in:
高铁
2020-10-07 01:05:41 +08:00
parent b6a0fb52f3
commit b9d6c01d99
3 changed files with 36 additions and 0 deletions
@@ -47,4 +47,18 @@ public class MySqlParameterizedOutputVisitorTest_80 extends TestCase {
"ORDER BY 1;", stmt.toString());
}
public void test3() {
String sql = "/*test*/ select * from test ;";
assertEquals("/*test*/\n" +
"SELECT *\n" +
"FROM test;", ParameterizedOutputVisitorUtils.parameterizeOf(sql, DbType.mysql)
.toString());
assertEquals("/*test*/\n" +
"SELECT *\n" +
"FROM test;", ParameterizedOutputVisitorUtils.parameterizeOf(sql, DbType.oracle)
.toString());
}
}