From 4488f9959366a1c1ace8c8f82c8ee7feaf9dc674 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 11 Mar 2010 12:08:15 +0100 Subject: [PATCH] Use Tryton CHECK constraint for MySQL MySQL has only partial constraints, it doesn't manage CHECK. So we use Tryton to check those constraints. --- trytond/backend/mysql/database.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trytond/backend/mysql/database.py b/trytond/backend/mysql/database.py index a4775226c7..89c94fa9e9 100644 --- a/trytond/backend/mysql/database.py +++ b/trytond/backend/mysql/database.py @@ -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: