File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
jdbc-v2/src/test/java/com/clickhouse/jdbc Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -562,12 +562,12 @@ void testWithClause() throws Exception {
562562
563563 @ Test (groups = { "integration" })
564564 public void testSwitchDatabase () throws Exception {
565- String createSql = "CREATE TABLE strings (id UInt8, words String) ENGINE = MergeTree ORDER BY ()" ;
565+ String createSql = "CREATE TABLE switchDatabaseWithUse (id UInt8, words String) ENGINE = MergeTree ORDER BY ()" ;
566566 try (Connection conn = getJdbcConnection ()) {
567567 try (Statement stmt = conn .createStatement ()) {
568568 assertEquals (stmt .executeUpdate (createSql ), 0 );
569- assertEquals (stmt .executeUpdate ("CREATE DATABASE \" test \" ENGINE=Atomic" ), 0 );
570- assertFalse (stmt .execute ("USE \" test \" " ));
569+ assertEquals (stmt .executeUpdate ("CREATE DATABASE \" newDatabase \" ENGINE=Atomic" ), 0 );
570+ assertFalse (stmt .execute ("USE \" newDatabase \" " ));
571571 assertEquals (stmt .executeUpdate (createSql ), 0 );
572572 }
573573 }
You can’t perform that action at this time.
0 commit comments