]> git.mjollnir.org Git - moodle.git/commitdiff
Fixed bug about all chars being created with length 255. Penny found this!
authorstronk7 <stronk7>
Fri, 22 Sep 2006 10:15:51 +0000 (10:15 +0000)
committerstronk7 <stronk7>
Fri, 22 Sep 2006 10:15:51 +0000 (10:15 +0000)
lib/xmldb/classes/generators/postgres7/postgres7.class.php

index 333a0823b370cbb157742b604742e37fed41290f..c2440dc485ffc4e8f3b5988823130d950be11a4b 100644 (file)
@@ -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 . ')';