mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
improved sql parser. add new feature JdbcUtils.getCreateTableScript, for issue #1342
This commit is contained in:
@@ -20,7 +20,7 @@ public class MySql_getCreateTableScriptTest extends DbTestCase {
|
||||
public void test_oracle() throws Exception {
|
||||
Connection conn = getConnection();
|
||||
|
||||
String createTableScript = JdbcUtils.getCreateTableScript(JdbcConstants.MYSQL, conn);
|
||||
String createTableScript = JdbcUtils.getCreateTableScript(conn, JdbcConstants.MYSQL);
|
||||
System.out.println(createTableScript);
|
||||
|
||||
|
||||
|
||||
@@ -21,7 +21,8 @@ public class Oracle_getCreateTableScriptTest extends DbTestCase {
|
||||
Connection conn = getConnection();
|
||||
|
||||
// 从Oracle通过DBMS_METADATA.GET_DDL获取CreateTable语句列表
|
||||
String createTableScript = JdbcUtils.getCreateTableScript(JdbcConstants.ORACLE, conn);
|
||||
String createTableScript = JdbcUtils.getCreateTableScript(conn, JdbcConstants.ORACLE);
|
||||
System.out.println(createTableScript);
|
||||
|
||||
conn.close();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user