> Could you post the actual code that fails? I can't think off the top
Not really - as I said it's a multi megabyte query and since I cannot
reproduce the error manually I cannot tell what part of the query is
responsible for the error.
> that shouldn't result in %s%N%s I think.
The statement looks something like this:
insert into tableName values (1,'string'),(2,'anotherstring'),...
with tons of values. One of the strings looks like this "\\r\\n%s%N%s.
However, in SOCI's exception message there is an extra uptick prepended
to that, i.e. '"\\r\\n%s%N%s. I don't know where that comes from - hence
my suspicion about automatic escaping.
Code for executing the statements is simply:
session << statement;
cheers,
Sören
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Soci-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/soci-users