]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
PG tweak
authorBrion Vibber <brion@pobox.com>
Tue, 19 Oct 2010 00:15:51 +0000 (17:15 -0700)
committerBrion Vibber <brion@pobox.com>
Tue, 19 Oct 2010 00:15:51 +0000 (17:15 -0700)
lib/pgsqlschema.php

index ca1853494b5c75a55400c01b28a5df26827f9dba..0ffbcfc480dae6c45f39b4eb5b1aa08cbb113eb9 100644 (file)
@@ -83,11 +83,14 @@ class PgsqlSchema extends Schema
             $field = array();
 
             // ??
+            /*
             list($type, $size) = $this->reverseMapType($row['udt_name']);
             $field['type'] = $type;
             if ($size !== null) {
                 $field['size'] = $size;
             }
+             */
+            $field['type'] = $row['udt_name'];
 
             if ($type == 'char' || $type == 'varchar') {
                 if ($row['character_maximum_length'] !== null) {
@@ -365,7 +368,7 @@ class PgsqlSchema extends Schema
 
         if (!empty($column['size'])) {
             $size = $column['size'];
-            if ($type == 'integer' &&
+            if ($type == 'int' &&
                        in_array($size, array('small', 'big'))) {
                 $type = $size . 'int';
             }