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:
parent
fed45aa542
commit
00a396c2f5
1 changed files with 1 additions and 1 deletions
|
@ -882,7 +882,7 @@ public final class NodeManager {
|
||||||
TableDataSet tds = null;
|
TableDataSet tds = null;
|
||||||
try {
|
try {
|
||||||
tds = new TableDataSet (dbm.getConnection (), dbm.getSchema (), dbm.getKeyDef ());
|
tds = new TableDataSet (dbm.getConnection (), dbm.getSchema (), dbm.getKeyDef ());
|
||||||
tds.where (idfield+" = '"+kstr+"'");
|
tds.where (idfield+" = "+kstr);
|
||||||
|
|
||||||
if (logSql)
|
if (logSql)
|
||||||
app.logEvent ("### getNodeByKey: "+tds.getSelectString());
|
app.logEvent ("### getNodeByKey: "+tds.getSelectString());
|
||||||
|
|
Loading…
Add table
Reference in a new issue