Skip to content

Commit 9178af3

Browse files
getCatalog(), getSchema() and getDatabaseProductVersion() should not throw exceptions
1 parent 70515f9 commit 9178af3

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

src/com/inet/excel/ExcelConnection.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,8 +210,7 @@ public void setCatalog( String catalog ) throws SQLException {
210210
*/
211211
@Override
212212
public String getCatalog() throws SQLException {
213-
ExcelDriver.throwExceptionAboutUnsupportedOperation();
214-
return null;
213+
return parser.getFileName();
215214
}
216215

217216
/**
@@ -507,7 +506,6 @@ public void setSchema( String schema ) throws SQLException {
507506
*/
508507
@Override
509508
public String getSchema() throws SQLException {
510-
ExcelDriver.throwExceptionAboutUnsupportedOperation();
511509
return null;
512510
}
513511

src/com/inet/excel/ExcelDatabaseMetaData.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,6 @@ public boolean nullsAreSortedAtEnd() throws SQLException {
176176
*/
177177
@Override
178178
public String getDatabaseProductVersion() throws SQLException {
179-
ExcelDriver.throwExceptionAboutUnsupportedOperation();
180179
return null;
181180
}
182181

0 commit comments

Comments
 (0)