User ffb6e86569
01-05-2007 06:21:05
Dear support:
There're some columns using the reserved word suchlike 'As','In' in my table,so i used it like this:
and then i got this exception:
even i quote them like
it didn’t solve the problem.
does it mean that just using the colums name which is indentified
in database?
would you tell me the way to fix it?
and is it be considered for future versions?
There're some columns using the reserved word suchlike 'As','In' in my table,so i used it like this:
Code: |
...... UpdateHandler uh = new UpdateHandler(conh,UpdateHandler.UPDATE,"mytable","dictionary.As,dictionary.In"); uh.setStructure(mol); uh.setID(Integer.parseInt(cdid)); uh.setValueForAdditionalColumn(1, as); uh.setValueForAdditionalColumn(2, in); ...... |
and then i got this exception:
Quote: |
java.sql.SQLException: ERROR: field "MYTABLE.AS" is not present in table "MYTABLE". at chemaxon.jchem.db.UpdateHandler.getField(UpdateHandler.java:1543) at chemaxon.jchem.db.UpdateHandler.setAdditionalColumns(UpdateHandler.java:1417) at chemaxon.jchem.db.UpdateHandler.setFields(UpdateHandler.java:1323) at chemaxon.jchem.db.UpdateHandler.execute(UpdateHandler.java:1908) ...... |
Code: |
UpdateHandler uh = new UpdateHandler(conh,UpdateHandler.UPDATE,"mytable","'As','In'"); |
it didn’t solve the problem.
does it mean that just using the colums name which is indentified
in database?
would you tell me the way to fix it?
and is it be considered for future versions?