From: stronk7 Date: Fri, 22 Sep 2006 10:15:51 +0000 (+0000) Subject: Fixed bug about all chars being created with length 255. Penny found this! X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=d4b86c90dc8b37bc23d4e06737873b91efa27edd;p=moodle.git Fixed bug about all chars being created with length 255. Penny found this! --- diff --git a/lib/xmldb/classes/generators/postgres7/postgres7.class.php b/lib/xmldb/classes/generators/postgres7/postgres7.class.php index 333a0823b3..c2440dc485 100644 --- a/lib/xmldb/classes/generators/postgres7/postgres7.class.php +++ b/lib/xmldb/classes/generators/postgres7/postgres7.class.php @@ -96,7 +96,7 @@ class XMLDBpostgres7 extends XMLDBgenerator { break; case XMLDB_TYPE_CHAR: $dbtype = 'VARCHAR'; - if (!empty($xmldb_length)) { + if (empty($xmldb_length)) { $xmldb_length='255'; } $dbtype .= '(' . $xmldb_length . ')';