libgda r3329 - in trunk: . libgda/sqlite



Author: vivien
Date: Sat Feb 21 14:48:04 2009
New Revision: 3329
URL: http://svn.gnome.org/viewvc/libgda?rev=3329&view=rev

Log:
2009-02-21  Armin Burgmeier  <armin openismus com>

	* libgda/sqlite/gda-sqlite-provider.c:
	gda_sqlite_provider_begin_transaction()
	gda_sqlite_provider_commit_transaction()
	gda_sqlite_provider_rollback_transaction(): Set error when statement
	execution fails.


Modified:
   trunk/ChangeLog
   trunk/libgda/sqlite/gda-sqlite-provider.c

Modified: trunk/libgda/sqlite/gda-sqlite-provider.c
==============================================================================
--- trunk/libgda/sqlite/gda-sqlite-provider.c	(original)
+++ trunk/libgda/sqlite/gda-sqlite-provider.c	Sat Feb 21 14:48:04 2009
@@ -1154,13 +1154,13 @@
 		else if (! gda_set_set_holder_value (params_set, error, "name", name))
 			status = FALSE;
 		if (status && gda_connection_statement_execute_non_select (cnc, internal_stmt[INTERNAL_BEGIN_NAMED], 
-									   params_set, NULL, NULL) == -1) 
+									   params_set, NULL, error) == -1) 
 			status = FALSE;
 		g_static_mutex_unlock (&mutex);
 	}
 	else {
 		if (gda_connection_statement_execute_non_select (cnc, internal_stmt[INTERNAL_BEGIN], 
-								 NULL, NULL, NULL) == -1) 
+								 NULL, NULL, error) == -1) 
 			status = FALSE;
 	}
 
@@ -1188,13 +1188,13 @@
 		else if (!gda_set_set_holder_value (params_set, error, "name", name))
 			status = FALSE;
 		if (status && gda_connection_statement_execute_non_select (cnc, internal_stmt[INTERNAL_COMMIT_NAMED], 
-									   params_set, NULL, NULL) == -1) 
+									   params_set, NULL, error) == -1) 
 			status = FALSE;
 		g_static_mutex_unlock (&mutex);
 	}
 	else {
 		if (gda_connection_statement_execute_non_select (cnc, internal_stmt[INTERNAL_COMMIT], 
-								 NULL, NULL, NULL) == -1) 
+								 NULL, NULL, error) == -1) 
 			status = FALSE;
 	}
 
@@ -1223,13 +1223,13 @@
 		else if (! gda_set_set_holder_value (params_set, error, "name", name))
 			status = FALSE;
 		if (status && gda_connection_statement_execute_non_select (cnc, internal_stmt[INTERNAL_ROLLBACK_NAMED], 
-									   params_set, NULL, NULL) == -1) 
+									   params_set, NULL, error) == -1) 
 			status = FALSE;
 		g_static_mutex_unlock (&mutex);
 	}
 	else {
 		if (gda_connection_statement_execute_non_select (cnc, internal_stmt[INTERNAL_ROLLBACK], 
-								 NULL, NULL, NULL) == -1) 
+								 NULL, NULL, error) == -1) 
 			status = FALSE;
 	}
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]