Browse Source

minor fix

Nicolas Cannasse 14 years ago
parent
commit
1ba988632a
1 changed files with 1 additions and 0 deletions
  1. 1 0
      std/sys/db/Manager.hx

+ 1 - 0
std/sys/db/Manager.hx

@@ -149,6 +149,7 @@ class Manager<T : Object> {
 		}
 		s.add(")");
 		unsafeExecute(s.toString());
+		untyped x._lock = true;
 		// table with one key not defined : suppose autoincrement
 		if( table_keys.length == 1 && Reflect.field(x,table_keys[0]) == null )
 			Reflect.setField(x,table_keys[0],getCnx().lastInsertId());