Skip to content

Commit c567bd1

Browse files
committed
rename test table and database
1 parent 3544e2a commit c567bd1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

jdbc-v2/src/test/java/com/clickhouse/jdbc/StatementTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)