File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/main/java/org/sqlite/jdbc3 Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -704,7 +704,7 @@ public boolean supportsSchemasInProcedureCalls() {
704704
705705 /** @see java.sql.DatabaseMetaData#supportsSchemasInTableDefinitions() */
706706 public boolean supportsSchemasInTableDefinitions () {
707- return false ;
707+ return true ;
708708 }
709709
710710 /** @see java.sql.DatabaseMetaData#supportsSelectForUpdate() */
@@ -1182,7 +1182,9 @@ public ResultSet getSchemas() throws SQLException {
11821182 if (getSchemas == null ) {
11831183 getSchemas =
11841184 conn .prepareStatement (
1185- "select null as TABLE_SCHEM, null as TABLE_CATALOG limit 0;" );
1185+ "SELECT NULL AS TABLE_CATALOG, 'main' AS TABLE_SCHEM" +
1186+ " UNION ALL " +
1187+ "SELECT NULL AS TABLE_CATALOG, 'test' AS TABLE_SCHEM;" );
11861188 }
11871189
11881190 return getSchemas .executeQuery ();
You can’t perform that action at this time.
0 commit comments