mirror of
https://github.com/alibaba/canal.git
synced 2026-11-04 00:30:15 +08:00
upgrade druid 1.2.6
This commit is contained in:
@@ -21,6 +21,7 @@ public class FastsqlSchemaTest {
|
|||||||
repository.console(sql2);
|
repository.console(sql2);
|
||||||
repository.setDefaultSchema("test");
|
repository.setDefaultSchema("test");
|
||||||
SchemaObject table = repository.findTable("table_x1");
|
SchemaObject table = repository.findTable("table_x1");
|
||||||
|
System.out.println(table.getStatement().toString());
|
||||||
Assert.assertTrue(table.findColumn("value1") != null);
|
Assert.assertTrue(table.findColumn("value1") != null);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -33,6 +34,7 @@ public class FastsqlSchemaTest {
|
|||||||
repository.console(sql);
|
repository.console(sql);
|
||||||
repository.setDefaultSchema("test");
|
repository.setDefaultSchema("test");
|
||||||
SchemaObject table = repository.findTable("parent");
|
SchemaObject table = repository.findTable("parent");
|
||||||
|
System.out.println(table.getStatement().toString());
|
||||||
Assert.assertTrue(table.findColumn("id") != null);
|
Assert.assertTrue(table.findColumn("id") != null);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -46,6 +48,7 @@ public class FastsqlSchemaTest {
|
|||||||
repository.console(sql);
|
repository.console(sql);
|
||||||
repository.setDefaultSchema("test");
|
repository.setDefaultSchema("test");
|
||||||
SchemaObject table = repository.findTable("articles");
|
SchemaObject table = repository.findTable("articles");
|
||||||
|
System.out.println(table.getStatement().toString());
|
||||||
Assert.assertTrue(table.findColumn("article_id") != null);
|
Assert.assertTrue(table.findColumn("article_id") != null);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -59,6 +62,7 @@ public class FastsqlSchemaTest {
|
|||||||
repository.console(sql);
|
repository.console(sql);
|
||||||
repository.setDefaultSchema("test");
|
repository.setDefaultSchema("test");
|
||||||
SchemaObject table = repository.findTable("proposal_order_info");
|
SchemaObject table = repository.findTable("proposal_order_info");
|
||||||
|
System.out.println(table.getStatement().toString());
|
||||||
Assert.assertTrue(table.findColumn("id") != null);
|
Assert.assertTrue(table.findColumn("id") != null);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -70,7 +74,8 @@ public class FastsqlSchemaTest {
|
|||||||
+ "DIM_SUM varchar(128) AS (MD5(UPPER(CONCAT(c2, c1)))) PERSISTENT)";
|
+ "DIM_SUM varchar(128) AS (MD5(UPPER(CONCAT(c2, c1)))) PERSISTENT)";
|
||||||
repository.console(sql);
|
repository.console(sql);
|
||||||
repository.setDefaultSchema("test");
|
repository.setDefaultSchema("test");
|
||||||
SchemaObject table = repository.findTable("proposal_order_info");
|
SchemaObject table = repository.findTable("example_vc_tbl");
|
||||||
Assert.assertTrue(table.findColumn("id") != null);
|
System.out.println(table.getStatement().toString());
|
||||||
|
Assert.assertTrue(table.findColumn("c1") != null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
2
pom.xml
2
pom.xml
@@ -265,7 +265,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.alibaba</groupId>
|
<groupId>com.alibaba</groupId>
|
||||||
<artifactId>druid</artifactId>
|
<artifactId>druid</artifactId>
|
||||||
<version>1.2.2</version>
|
<version>1.2.6</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.lmax</groupId>
|
<groupId>com.lmax</groupId>
|
||||||
|
|||||||
Reference in New Issue
Block a user