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 661684 - GdaSqlBuilder: Fields with - are unquoted.
GdaSqlBuilder: Fields with - are unquoted.
Status: RESOLVED FIXED
Product: libgda
Classification: Other
Component: Client library
4.99.x
Other Linux
: Normal normal
: ---
Assigned To: malerba
gnome-db Maintainers
Depends on:
Blocks: 661655
 
 
Reported: 2011-10-13 16:42 UTC by Murray Cumming
Modified: 2011-10-17 20:54 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
test_libgda_field_with_hyphen.c (1.43 KB, text/x-csrc)
2011-10-13 16:42 UTC, Murray Cumming
Details

Description Murray Cumming 2011-10-13 16:42:51 UTC
Created attachment 198953 [details]
test_libgda_field_with_hyphen.c

If a field name contains a hyphen (-), GdaSqlBuilder does not put the name in quotes when it builds the SQL string. It therefore fails.

Of course, it is unwise to put such a special character in a field name, but it can happen.

Here is a simple test case.
Comment 1 malerba 2011-10-17 20:20:21 UTC
Can you check correction in commit http://git.gnome.org/browse/libgda/commit/?id=63de0c4ebbc833de87b5ca0cacd7b2160e0f9ae9
Vivien
Comment 2 Murray Cumming 2011-10-17 20:54:51 UTC
Yes, that has fixed it. Many thanks.