From e44f1fe989f95e915229664891053bddb7aef356 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Mon, 18 Oct 2010 17:15:51 -0700 Subject: [PATCH] PG tweak --- lib/pgsqlschema.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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'; } -- 2.39.5