Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
1.0
-
None
-
MariaDB 10.0.17-MariaDB Homebrew
-
Patch
Description
MariaDB (and MySQL) JDBC connector requires a schema to be named as part of the JDBC URL. This results in that schema being the "default" schema for that connection, i.e. queries with unqualified table names are looked for in that schema.
When Platform.readModelFromDatabase() is called for a schema OTHER THAN the schema named in the URL, MariaDB looks for the table under the other schema and doesn't find it, throwing an error like:
org.apache.ddlutils.DatabaseOperationException: java.sql.SQLSyntaxErrorException: Table 'information_schema.column_stats' doesn't exist
(column_stats is a table in the 'mysql' schema)