when trying to update 1 text field in a remote database.
Hello,
In my Netbeans project with hibernate 3.2.5 as Framework I'm trying to update over AJAX a text field (Varchar 200) in Mysql DB from javascript. The statement in my java code that causes error is:
session.createQuery(sql_statement);
which causes hibernate to produce: java.lang.IllegalArgumentException: name
This happens only when my text field includes a substring of 3 characters: ,X: (where X could be for example any single letter) resulting in the sql_statement like:
update MyTable set description = 'One,P:Two' where ProdId = 104
Any idea what may be causing this problem or how to fix that ??
Andrew
|