seancorfield / next-jdbc

A modern low-level Clojure wrapper for JDBC-based access to databases.
https://cljdoc.org/d/com.github.seancorfield/next.jdbc/
Eclipse Public License 1.0
755 stars 90 forks source link

Some JDBC drivers throw unsupported exception on getTableName #208

Closed seancorfield closed 2 years ago

seancorfield commented 2 years ago

It would be nice if next.jdbc just treated such badly behaved JDBC drivers as if they simply returned "" per the JDBC docs.

Add try/catch around .getTableName() calls?

Downside: a failure to talk to the DB, which is documented to throw SQLException, will be masked by this.

seancorfield commented 2 years ago

Catch just java.sql.SQLFeatureNotSupportedException