krummas / DrizzleJDBC

A BSD licensed JDBC driver for Drizzle and MySQL
BSD 3-Clause "New" or "Revised" License
31 stars 22 forks source link

Driver doesn't support set/getCatalog() while MySQL does #34

Open gilius38 opened 9 years ago

gilius38 commented 9 years ago

Calling setCatalog() in the drizzle jdbc driver leads to a no-op. Comments in the code state that drizzle doesn't support catalogs. However, MySQL sort of supports catalogs by switching schemas Thus, when connected to a MySQL server, the driver should transform setCatalog into "use " and return the connected database for getCatalog