fix: tabschema param needs quotes
@@ -25,13 +25,13 @@ public class DB2Query extends AbstractDbQuery {
@Override
public String tablesSql() {
- return "SELECT * FROM SYSCAT.TABLES where tabschema=%s";
+ return "SELECT * FROM SYSCAT.TABLES where tabschema='%s'";
}
@Override
public String tableFieldsSql() {
- return "SELECT * FROM syscat.columns WHERE tabschema=%s AND tabname='%s'";
+ return "SELECT * FROM syscat.columns WHERE tabschema='%s' AND tabname='%s'";
}
