From: Brion Vibber Date: Tue, 19 Oct 2010 00:15:51 +0000 (-0700) Subject: PG tweak X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e44f1fe989f95e915229664891053bddb7aef356;p=quix0rs-gnu-social.git PG tweak --- diff --git a/lib/pgsqlschema.php b/lib/pgsqlschema.php index ca1853494b..0ffbcfc480 100644 --- a/lib/pgsqlschema.php +++ b/lib/pgsqlschema.php @@ -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'; }