[glom/modification: 6/8] Tiny formatting changes.



commit c3b01f389e40a19bf72e45eecf91c6e27cc07ee3
Author: Murray Cumming <murrayc murrayc com>
Date:   Sun May 10 14:22:12 2009 +0200

    Tiny formatting changes.
---
 glom/base_db.cc                                |    2 +-
 glom/libglom/connectionpool_backends/sqlite.cc |    3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/glom/base_db.cc b/glom/base_db.cc
index c07b90e..54b86cd 100644
--- a/glom/base_db.cc
+++ b/glom/base_db.cc
@@ -1268,7 +1268,7 @@ bool Base_DB::create_table_with_default_fields(const Glib::ustring& table_name)
   created = create_table(table_info, fields);
 
     //Create a table with 1 "ID" field:
-   //MSYQL:
+    //MSYQL:
     //query_execute( "CREATE TABLE \"" + table_name + "\" (" + primary_key_name + " INT NOT NULL AUTO_INCREMENT PRIMARY KEY)" );
     //query_execute( "INSERT INTO \"" + table_name + "\" VALUES (0)" );
 
diff --git a/glom/libglom/connectionpool_backends/sqlite.cc b/glom/libglom/connectionpool_backends/sqlite.cc
index 59236c6..dbd03bd 100644
--- a/glom/libglom/connectionpool_backends/sqlite.cc
+++ b/glom/libglom/connectionpool_backends/sqlite.cc
@@ -317,7 +317,8 @@ bool Sqlite::recreate_table(const Glib::RefPtr<Gnome::Gda::Connection>& connecti
     }
   }
 
-  if(!begin_transaction(connection, TRANSACTION_NAME, Gnome::Gda::TRANSACTION_ISOLATION_UNKNOWN, error)) return false;
+  if(!begin_transaction(connection, TRANSACTION_NAME, Gnome::Gda::TRANSACTION_ISOLATION_UNKNOWN, error))
+    return false;
 
   if(perform_server_operation(connection->get_provider(), connection, operation, error))
   {



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