improved sql parser. add new feature JdbcUtils.getCreateTableScript, for issue #1342

This commit is contained in:
wenshao
2017-07-24 01:23:28 +08:00
parent 3fa3d64ac4
commit 2528f3adb5
3 changed files with 6 additions and 5 deletions
@@ -767,11 +767,11 @@ public final class JdbcUtils implements JdbcConstants {
}
}
public static String getCreateTableScript(String dbType, Connection conn) throws SQLException {
return getCreateTableScript(dbType, conn, true, true);
public static String getCreateTableScript(Connection conn, String dbType) throws SQLException {
return getCreateTableScript(conn, dbType, true, true);
}
public static String getCreateTableScript(String dbType, Connection conn, boolean sorted, boolean simplify) throws SQLException {
public static String getCreateTableScript(Connection conn, String dbType, boolean sorted, boolean simplify) throws SQLException {
if (JdbcConstants.MYSQL.equals(dbType)) {
return MySqlUtils.getCreateTableScript(conn, sorted, simplify);
}