From dc7c388280bf7e53a20b7d954e80d9cdf30d9e92 Mon Sep 17 00:00:00 2001 From: stronk7 Date: Mon, 2 Oct 2006 17:02:07 +0000 Subject: [PATCH] MySQL doesn't have check constraints. We use enums instead. --- lib/xmldb/classes/generators/mysql/mysql.class.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lib/xmldb/classes/generators/mysql/mysql.class.php b/lib/xmldb/classes/generators/mysql/mysql.class.php index 54251f977b..a22df85e62 100644 --- a/lib/xmldb/classes/generators/mysql/mysql.class.php +++ b/lib/xmldb/classes/generators/mysql/mysql.class.php @@ -243,6 +243,18 @@ class XMLDBmysql extends XMLDBGenerator { return array($comment); } + /** + * Given one XMLDBTable returns one array with all the check constrainsts + * in the table (fetched from DB) + * Each element contains the name of the constraint and its description + * If no check constraints are found, returns an empty array + * MySQL doesn't have check constraints in this implementation + */ + function getCheckConstraintsFromDB($xmldb_table) { + + return array(); + } + /** * Returns an array of reserved words (lowercase) for this DB */ -- 2.39.5