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 636219 - MySQL error code ignored and not available via gda_connection_event_get_code
MySQL error code ignored and not available via gda_connection_event_get_code
Status: RESOLVED FIXED
Product: libgda
Classification: Other
Component: MySQL provider
4.2.x
Other Linux
: Normal critical
: ---
Assigned To: malerba
gnome-db Maintainers
Depends on:
Blocks:
 
 
Reported: 2010-12-01 15:01 UTC by Piotr Pokora
Modified: 2010-12-01 21:32 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Sets proper MySQL errno (1.01 KB, patch)
2010-12-01 15:01 UTC, Piotr Pokora
none Details | Review

Description Piotr Pokora 2010-12-01 15:01:13 UTC
Created attachment 175625 [details] [review]
Sets proper MySQL errno

Documentation to gda_connection_event_get_code () says:
Returns : event's code (the code is specific to the provider being used)

This is invalid in case of MySQL provider. GDA_CONNECTION_EVENT_CODE_UNKNOWN is set as error code, always.

Proposed patch fix the issue for mysql and mysql_stmt.