You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error reporting log:
time:450ms,sql:select * from data2
java.sql.SQLException: IO Error: Cannot open file "C:\test\duckdb\v3_ptest100_5.db": Áíһ¸ö³ÌÐòÕýÔÚʹÓôËÎļþ£¬½ø³ÌÎ
at org.duckdb.DuckDBNative.duckdb_jdbc_startup(Native Method)
at org.duckdb.DuckDBDatabase.(DuckDBDatabase.java:22)
at org.duckdb.DuckDBDriver.connect(DuckDBDriver.java:35)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
The code is as follows:
public static void main(String[] args) {
public static void execute(String sql) {
try
{
long t1=System.currentTimeMillis();
Properties ro_prop = new Properties();
ro_prop.setProperty("duckdb.read_only", "false");
DuckDBConnection conn =(DuckDBConnection) DriverManager.getConnection("jdbc:duckdb:C:\test\duckdb\v3_ptest100_5.db");
Statement stmt = conn.createStatement();
stmt.execute(sql);
stmt.close();
conn.close();
long t2=System.currentTimeMillis();
Error reporting log:
time:450ms,sql:select * from data2
java.sql.SQLException: IO Error: Cannot open file "C:\test\duckdb\v3_ptest100_5.db": Áíһ¸ö³ÌÐòÕýÔÚʹÓôËÎļþ£¬½ø³ÌÎ
at org.duckdb.DuckDBNative.duckdb_jdbc_startup(Native Method)
at org.duckdb.DuckDBDatabase.(DuckDBDatabase.java:22)
at org.duckdb.DuckDBDriver.connect(DuckDBDriver.java:35)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
Beta Was this translation helpful? Give feedback.
All reactions