File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
src/test/java/org/chdb/jdbc Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 11package org .chdb .jdbc ;
22
3- import org .junit .jupiter .api .*;
3+ import org .junit .jupiter .api .AutoClose ;
4+ import org .junit .jupiter .api .BeforeAll ;
5+ import org .junit .jupiter .api .Test ;
46
57import java .sql .*;
68
@@ -27,9 +29,10 @@ public void testStatement() throws SQLException {
2729
2830 @ Test
2931 public void testPreparedStatement () throws SQLException {
30- String sql = "select * from file('src/test/resources/logs.csv','CSV') where level = ? and id > 0 " ;
32+ String sql = "select * from file('src/test/resources/logs.csv','CSV') where level = ? and id > ? " ;
3133 ChdbPreparedStatement statement = (ChdbPreparedStatement ) conn .prepareStatement (sql );
3234 statement .setString (1 , "error" );
35+ statement .setInt (2 , 0 );
3336 System .out .println (statement .getRealSQL ());
3437 ResultSet resultSet = statement .executeQuery ();
3538 while (resultSet .next ()) {
You can’t perform that action at this time.
0 commit comments