From c953585f3e336be1d7d03eb46a3ccd956d6c0cb2 Mon Sep 17 00:00:00 2001 From: xzilla Date: Wed, 1 Nov 2006 00:51:19 +0000 Subject: [PATCH] tighten up query for pg_type info, per Javier Carlos. --- classes/database/Postgres.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/database/Postgres.php b/classes/database/Postgres.php index c3fbc415..f32f5ba4 100755 --- a/classes/database/Postgres.php +++ b/classes/database/Postgres.php @@ -4,7 +4,7 @@ * A class that implements the DB interface for Postgres * Note: This class uses ADODB and returns RecordSets. * - * $Id: Postgres.php,v 1.290 2006/08/18 21:02:41 xzilla Exp $ + * $Id: Postgres.php,v 1.291 2006/11/01 00:51:19 xzilla Exp $ */ // @@@ THOUGHT: What about inherits? ie. use of ONLY??? @@ -2882,7 +2882,7 @@ class Postgres extends ADODB_base { function getType($typname) { $this->clean($typname); - $sql = "SELECT *, typinput AS typin, typoutput AS typout + $sql = "SELECT typtype, typbyval, typname, typinput AS typin, typoutput AS typout, typlen, typalign FROM pg_type WHERE typname='{$typname}'"; return $this->selectSet($sql); -- 2.39.5