After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 433687 - SQL parser misinterprets \\'
SQL parser misinterprets \\'
Status: RESOLVED FIXED
Product: libgda
Classification: Other
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: malerba
gnome-db Maintainers
Depends on:
Blocks: 320198
 
 
Reported: 2007-04-26 19:42 UTC by Armin Burgmeier
Modified: 2007-05-08 16:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch proposal (1.16 KB, patch)
2007-04-26 19:44 UTC, Armin Burgmeier
committed Details | Review

Description Armin Burgmeier 2007-04-26 19:42:12 UTC
When parsing a SQL string with a string token that has a backslash before its final string delimiter (as in 'foobar\\'), the parser recognizes the \' part of it as an escaped quote, and tries to parse the following stuff as string.
Comment 1 Armin Burgmeier 2007-04-26 19:44:33 UTC
Created attachment 87091 [details] [review]
Patch proposal

This patch adds an extra rule for the \\ token so that it is fully handled before the ' is encountered.
Comment 2 malerba 2007-04-27 10:18:00 UTC
This will be in SVN ASAP (I also corrected the parser in libsql/).
Thanks.
Comment 3 Murray Cumming 2007-05-05 13:11:08 UTC
Is this now in svn?
Comment 4 Armin Burgmeier 2007-05-08 16:47:16 UTC
I committed the patch.