libgda r3063 - in branches/release-3-0-branch: . libgda
- From: vivien svn gnome org
- To: svn-commits-list gnome org
- Subject: libgda r3063 - in branches/release-3-0-branch: . libgda
- Date: Wed, 27 Feb 2008 10:40:26 +0000 (GMT)
Author: vivien
Date: Wed Feb 27 10:40:26 2008
New Revision: 3063
URL: http://svn.gnome.org/viewvc/libgda?rev=3063&view=rev
Log:
2008-02-27 Vivien Malerba <malerba gnome-db org>
* libgda/gda-query.c: corrected a bug in gda_query_execute() where
an error was reported even when there was none (thanks to Phil Longstaff)
Modified:
branches/release-3-0-branch/ChangeLog
branches/release-3-0-branch/libgda/gda-query.c
Modified: branches/release-3-0-branch/libgda/gda-query.c
==============================================================================
--- branches/release-3-0-branch/libgda/gda-query.c (original)
+++ branches/release-3-0-branch/libgda/gda-query.c Wed Feb 27 10:40:26 2008
@@ -2808,7 +2808,9 @@
if (error) {
errors_after = gda_connection_get_events (cnc);
for (list = g_list_last ((GList *) errors_after); list && !(*error); list = list->prev) {
- if (!g_list_find (errors_before, list->data))
+ if ((gda_connection_event_get_event_type (GDA_CONNECTION_EVENT (list->data)) ==
+ GDA_CONNECTION_EVENT_ERROR) &&
+ !g_list_find (errors_before, list->data))
g_set_error (error, GDA_QUERY_ERROR, GDA_QUERY_EXEC_ERROR,
gda_connection_event_get_description (GDA_CONNECTION_EVENT (list->data)));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]