bug fixed for mysql parser & update pom version

This commit is contained in:
shaojin.wensj
2019-01-16 10:28:05 +08:00
parent 4ea0aeb0e2
commit 46062863f2
17 changed files with 317 additions and 40 deletions
@@ -2,6 +2,7 @@ package com.alibaba.druid.postgresql;
import com.alibaba.druid.DbTestCase;
import com.alibaba.druid.benckmark.proxy.BenchmarkExecutor;
import com.alibaba.druid.pool.vendor.PGValidConnectionChecker;
import com.alibaba.druid.util.JdbcConstants;
import com.alibaba.druid.util.JdbcUtils;
@@ -22,6 +23,10 @@ public class PG_getCreateTableScriptTest extends DbTestCase {
public void test_oracle() throws Exception {
Connection conn = getConnection();
PGValidConnectionChecker checker = new PGValidConnectionChecker();
Connection raw = conn.unwrap(Connection.class);
checker.isValidConnection(raw, "select 1", 100);
// 从Oracle通过DBMS_METADATA.GET_DDL获取CreateTable语句列表
//String createTableScript = JdbcUtils.getCreateTableScript(conn, JdbcConstants.ORACLE);
//System.out.println(createTableScript);