File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
examples/jdbc/src/main/java/com/clickhouse/examples/jdbc Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff 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" );
You can’t perform that action at this time.
0 commit comments