File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111import sqlancer .AbstractAction ;
1212import sqlancer .DatabaseProvider ;
1313import sqlancer .IgnoreMeException ;
14+ import sqlancer .MainOptions ;
1415import sqlancer .Randomly ;
1516import sqlancer .SQLConnection ;
1617import sqlancer .SQLGlobalState ;
@@ -143,6 +144,11 @@ public SQLConnection createDatabase(DuckDBGlobalState globalState) throws SQLExc
143144 String url = "jdbc:duckdb:" + databaseFile ;
144145 tryDeleteDatabase (databaseFile );
145146
147+ MainOptions options = globalState .getOptions ();
148+ if (!(options .isDefaultUsername () && options .isDefaultPassword ())) {
149+ throw new AssertionError ("DuckDB doesn't support credentials (username/password)" );
150+ }
151+
146152 Connection conn = DriverManager .getConnection (url );
147153 Statement stmt = conn .createStatement ();
148154 stmt .execute ("PRAGMA checkpoint_threshold='1 byte';" );
You can’t perform that action at this time.
0 commit comments