Skip to content

Commit 6a89570

Browse files
author
Paultagoras
committed
Update Basic.java
1 parent 8c8fc2c commit 6a89570

File tree

1 file changed

+1
-1
lines changed
  • examples/jdbc/src/main/java/com/clickhouse/examples/jdbc

1 file changed

+1
-1
lines changed

examples/jdbc/src/main/java/com/clickhouse/examples/jdbc/Basic.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public static void main(String[] args) {
2121
properties.setProperty("user", System.getProperty("chUser", "default"));
2222
properties.setProperty("password", System.getProperty("chPassword", ""));
2323

24-
try (Connection conn = DriverManager.getConnection(url, properties)) {//Grab a connection
24+
try (Connection conn = DriverManager.getConnection(url, properties)) {//Grab a connection using the jdbc DriverManager
2525
try (Statement stmt = conn.createStatement()) {//Create a statement
2626
stmt.execute("DROP TABLE IF EXISTS " + TABLE_NAME);//Execute a query to drop the table if it exists
2727
stmt.execute("CREATE TABLE " + TABLE_NAME + " (date Date, id UInt32, name String) ENGINE = Memory");

0 commit comments

Comments
 (0)