Use Tryton CHECK constraint for MySQL

MySQL has only partial constraints, it doesn't manage CHECK.
So we use Tryton to check those constraints.
This commit is contained in:
Cédric Krier committed 2010-03-11 12:08:15 +01:00
1 parent 596c8fce39
commit 4488f99593
1 file changed
+1 -1
+1 -1
View File
@@ -289,7 +289,7 @@ class Cursor(CursorInterface):
self.cursor.execute('FLUSH TABLES WITH READ LOCK')
def has_constraint(self):
return True
return False
def limit_clause(self, select, limit=None, offset=None):
if offset and limit is None: