Fixed bug about all chars being created with length 255. Penny found this!

This commit is contained in:
stronk7
2006-09-22 10:15:51 +00:00
parent bd2b8ddecd
commit d4b86c90dc
@@ -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 . ')';