[libgda] Fixed bug in Sqlite's savepoints commands



commit a2763d52bd04d592e7069bfe905147c8af9d3a88
Author: Vivien Malerba <malerba gnome-db org>
Date:   Sun Jul 28 14:22:47 2013 +0200

    Fixed bug in Sqlite's savepoints commands

 libgda/sqlite/gda-sqlite-provider.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/libgda/sqlite/gda-sqlite-provider.c b/libgda/sqlite/gda-sqlite-provider.c
index 9ceb486..3ea3d8f 100644
--- a/libgda/sqlite/gda-sqlite-provider.c
+++ b/libgda/sqlite/gda-sqlite-provider.c
@@ -403,12 +403,14 @@ typedef enum {
        INTERNAL_SELECT_A_TABLE,
        INTERNAL_PRAGMA_PROC_LIST,
        INTERNAL_PRAGMA_EMPTY_RESULT,
+
        INTERNAL_BEGIN,
        INTERNAL_BEGIN_NAMED,
        INTERNAL_COMMIT,
        INTERNAL_COMMIT_NAMED,
        INTERNAL_ROLLBACK,
        INTERNAL_ROLLBACK_NAMED,
+
        INTERNAL_ADD_SAVEPOINT,
        INTERNAL_ROLLBACK_SAVEPOINT,
        INTERNAL_RELEASE_SAVEPOINT
@@ -424,12 +426,14 @@ static gchar *internal_sql[] = {
        "SELECT name as 'Table', 'system' as 'Owner', ' ' as 'Description', sql as 'Definition' FROM (SELECT 
* FROM sqlite_master UNION ALL SELECT * FROM sqlite_temp_master) WHERE type = ##type::string AND name = 
##tblname::string AND name not like 'sqlite_%%' ORDER BY name",
        "PRAGMA proc_list",
        "PRAGMA empty_result_callbacks = ON",
+
        "BEGIN TRANSACTION",
        "BEGIN TRANSACTION ##name::string",
        "COMMIT TRANSACTION",
        "COMMIT TRANSACTION ##name::string",
        "ROLLBACK TRANSACTION",
-       "ROLLBACK TRANSACTION ##name::string"
+       "ROLLBACK TRANSACTION ##name::string",
+
        "SAVEPOINT ##name::string",
        "ROLLBACK TO ##name::string",
        "RELEASE ##name::string"


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