Skip to content

Commit 767f924

Browse files
Update jdbc-v2/src/test/java/com/clickhouse/jdbc/ConnectionWithCustomDatabaseTest.java
Co-authored-by: windsurf-bot[bot] <189301087+windsurf-bot[bot]@users.noreply.github.com>
1 parent 2d485d9 commit 767f924

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ public class ConnectionWithCustomDatabaseTest extends JdbcIntegrationTest {
1414
@Test(groups = { "integration" })
1515
public void testConnectionWithDashDatabaseName() throws Exception {
1616
Connection conn = this.getJdbcConnection();
17-
Assert.assertEquals(
18-
conn.createStatement().executeQuery("SELECT 1"),
19-
Integer.valueOf(1));
17+
java.sql.ResultSet rs = conn.createStatement().executeQuery("SELECT 1");
18+
Assert.assertTrue(rs.next());
19+
Assert.assertEquals(1, rs.getInt(1));
2020
}
2121

2222
protected static String getDatabase() {

0 commit comments

Comments
 (0)