Nicolas Cannasse 18 years ago
parent
commit
e2f127ac55
2 changed files with 3 additions and 0 deletions
  1. 1 0
      doc/CHANGES.txt
  2. 2 0
      std/neko/db/Sqlite.hx

+ 1 - 0
doc/CHANGES.txt

@@ -1,6 +1,7 @@
 2007-??-??: 1.17
 2007-??-??: 1.17
 	fixed Int32.compare, added Int32.read and Int32.write
 	fixed Int32.compare, added Int32.read and Int32.write
 	fixed type of unitialized registers in flash9
 	fixed type of unitialized registers in flash9
+	fixed Sqlite transactions (commit and rollback now restart a transaction)
 
 
 2007-10-31: 1.16
 2007-10-31: 1.16
 	use _sans font for default flash traces (better Linux support)
 	use _sans font for default flash traces (better Linux support)

+ 2 - 0
std/neko/db/Sqlite.hx

@@ -70,10 +70,12 @@ private class SqliteConnection implements Connection {
 
 
 	public function commit() {
 	public function commit() {
 		request("COMMIT");
 		request("COMMIT");
+		startTransaction(); // match mysql usage
 	}
 	}
 
 
 	public function rollback() {
 	public function rollback() {
 		request("ROLLBACK");
 		request("ROLLBACK");
+		startTransaction(); // match mysql usage
 	}
 	}
 
 
 	static var _encode = neko.Lib.load("std","base_encode",2);
 	static var _encode = neko.Lib.load("std","base_encode",2);