File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed
main/java/org/sqlite/jdbc3 Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -573,7 +573,7 @@ public ResultSetMetaData getMetaData() {
573573
574574 /** @see java.sql.ResultSetMetaData#getCatalogName(int) */
575575 public String getCatalogName (int col ) throws SQLException {
576- return safeGetColumnTableName ( col ) ;
576+ return "" ;
577577 }
578578
579579 /** @see java.sql.ResultSetMetaData#getColumnClassName(int) */
Original file line number Diff line number Diff line change @@ -43,7 +43,12 @@ public void close() throws SQLException {
4343
4444 @ Test
4545 public void catalogName () throws SQLException {
46- assertThat (meta .getCatalogName (1 )).isEqualTo ("People" );
46+ assertThat (meta .getCatalogName (1 )).isEqualTo ("" );
47+ }
48+
49+ @ Test
50+ public void schemaName () throws SQLException {
51+ assertThat (meta .getSchemaName (1 )).isEqualTo ("" );
4752 }
4853
4954 @ Test
@@ -196,8 +201,8 @@ public void nullable() throws SQLException {
196201 }
197202
198203 @ Test
199- public void badCatalogIndex () {
200- assertThatExceptionOfType (SQLException .class ).isThrownBy (() -> meta .getCatalogName ( 4 ));
204+ public void badTableIndex () {
205+ assertThatExceptionOfType (SQLException .class ).isThrownBy (() -> meta .getTableName ( 5 ));
201206 }
202207
203208 @ Test
You can’t perform that action at this time.
0 commit comments