Omit quotes from where-clause of getNodeByKey, since the

id value is always an integer. Using quotes used to work fine for
Oracle and MySQL, but it seems to cause problems on Sybase.
This commit is contained in:
hns 2002-03-01 17:57:38 +00:00
parent fed45aa542
commit 00a396c2f5

View file

@ -882,7 +882,7 @@ public final class NodeManager {
TableDataSet tds = null;
try {
tds = new TableDataSet (dbm.getConnection (), dbm.getSchema (), dbm.getKeyDef ());
tds.where (idfield+" = '"+kstr+"'");
tds.where (idfield+" = "+kstr);
if (logSql)
app.logEvent ("### getNodeByKey: "+tds.getSelectString());