Hi Carlos,
sorry - I forgot to analyze and anwer your question.
The problem here is, that no replacement is done inside quotes.
Otherwise it would be strange, if there happens something with "select
foo from bar where a like '%a'". This percent sign is intended to be
passed as a string to the database. And if you write a string like:
"\'\\\' (%subset)"
in C++, the compiler translates it into the sequence <'\' (%subset)>.
The statement parser from tntdb reads the first quote and thinks, that
the second quote is escaped. The state machine stays inside a string and
do not replace anything inside.
Thinking twice, this is really a bug and I just checked in a fix for that.
Just as a side not: you do not need to escape the single quote in C++
string literals. You can just as well write:
"'\\' (%subset)"
Tommi
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Tntnet-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tntnet-general