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() {
704
704
705
705
/** @see java.sql.DatabaseMetaData#supportsSchemasInTableDefinitions() */
706
706
public boolean supportsSchemasInTableDefinitions () {
707
- return false ;
707
+ return true ;
708
708
}
709
709
710
710
/** @see java.sql.DatabaseMetaData#supportsSelectForUpdate() */
@@ -1182,7 +1182,9 @@ public ResultSet getSchemas() throws SQLException {
1182
1182
if (getSchemas == null ) {
1183
1183
getSchemas =
1184
1184
conn .prepareStatement (
1185
- "select null as TABLE_SCHEM, null as TABLE_CATALOG limit 0;" );
1185
+ "SELECT NULL AS CATALOG_NAME, 'main' AS SCHEMA_NAME" +
1186
+ " UNION ALL " +
1187
+ "SELECT NULL AS CATALOG_NAME, 'test' AS SCHEMA_NAME;" );
1186
1188
}
1187
1189
1188
1190
return getSchemas .executeQuery ();
You can’t perform that action at this time.
0 commit comments