Hey,
2010/12/23 但浩亮 <[email protected]>:
> It's strange I cannot reproduced the exception after I recompiled the
> WT lib, which led to session destroy.
> But the cerr output keeps showing the error message as follows:
>
> ...
> Using existing database
> t1: 0
> Error parsing SQL query: Expected """ here: "绠$����?"
> [2010-Dec-23 12:27:12.162799] 2336 [/blog VuL5RvDzQzQYnc1U] [fatal] "Error
> parsi
> ng SQL query: ""select count(*) from user where name = ""绠$����?""""
It seems that our SQL parser did not anticipate unicode characters. As
a work-around, I would recommend to bind the 'name' using a bind()
statement, e.g. like this:
session->find<User>("where name = ?").bind("绠$����?");
I've filed a bug for this: http://redmine.emweb.be/issues/655
Regards,
koen
------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and,
should the need arise, upgrade to a full multi-node Oracle RAC database
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest