[Opensource] Quotes in DBObject

BSC bsci at lycos.com
Wed Dec 4 20:09:14 PST 2002


I am calling the find() method from DBObject and it is raising an exception:

com.jcorporate.expresso.core.db.DBException: Unable to execute statement:

Unable to execute statement: SELECT * from tableA WHERE colA = 'Mac\'s' (com.expresspeg.dbobject.Issue, db/context 'default'):[interclient][interbase] Dynamic SQL Error
SQL error code = -104

The \' embedded in my string is causing problems for my JDBC driver.  I believe the \' should simply be two single quotes ''.  Is this behavior customizable via the configuration file or elsewhere?

Thx,

---
Aime 







_____________________________________________________________
Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year.
http://login.mail.lycos.com/brandPage.shtml?pageId=plus&ref=lmtplus



More information about the Opensource mailing list