提交 cfbaca81 编写于 作者: S serge-rider

#2246 MySQL/MariaDB tables read fix (quote identifiers)

上级 560b8b95
......@@ -362,7 +362,7 @@ public class MySQLCatalog implements DBSCatalog, DBPSaveableObject, DBPRefreshab
}
} else {
sql.append("SHOW FULL TABLES FROM ").append(DBUtils.getQuotedIdentifier(owner));
String tableNameCol = "Tables_in_" + owner.getName();
String tableNameCol = "Tables_in_" + DBUtils.getQuotedIdentifier(owner);
if (object != null || objectName != null) {
sql.append(" WHERE ").append(tableNameCol).append(" LIKE ").append(SQLUtils.quoteString(session.getDataSource(), object != null ? object.getName() : objectName));
} else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册