[GB.DB.MYSQL]

* BUG: Use "START TRANSACTION" instead of "BEGIN", because I was told that BEGIN actually does nothing as autocommit is set by default.


git-svn-id: svn://localhost/gambas/trunk@7756 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
Benoît Minisini 2016-05-04 14:56:57 +00:00
parent d15a425953
commit 59d84053a9

View file

@ -1251,7 +1251,7 @@ static int begin_transaction(DB_DATABASE *db)
/* Autocommit is on by default. Lets set it off. */
/* BM: why not doing that when we open the connection ? */
//do_query(db, "Unable to set autocommit to 0: &1", NULL, "set autocommit=0", 0);
return do_query(db, "Unable to begin transaction: &1", NULL, "BEGIN", 0);
return do_query(db, "Unable to begin transaction: &1", NULL, "START TRANSACTION", 0);
}