From cd9071c679f10ded897af3d184c5b9768d88c9cf Mon Sep 17 00:00:00 2001 From: Geoff Munn Date: Tue, 18 Jan 2011 17:31:47 +1300 Subject: [PATCH] MINOR: cached fieldlists disabled to see if this fixes the buildbot issues --- code/PostgreSQLDatabase.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) mode change 100644 => 100755 code/PostgreSQLDatabase.php diff --git a/code/PostgreSQLDatabase.php b/code/PostgreSQLDatabase.php old mode 100644 new mode 100755 index b672b97..9cd6f52 --- a/code/PostgreSQLDatabase.php +++ b/code/PostgreSQLDatabase.php @@ -774,7 +774,7 @@ class PostgreSQLDatabase extends SS_Database { //Query from http://www.alberton.info/postgresql_meta_info.html //This gets us more information than we need, but I've included it all for the moment.... - if(!isset(self::$cached_fieldlists[$table])){ + //if(!isset(self::$cached_fieldlists[$table])){ $fields = $this->query("SELECT ordinal_position, column_name, data_type, column_default, is_nullable, character_maximum_length, numeric_precision, numeric_scale FROM information_schema.columns WHERE table_name = '$table' ORDER BY ordinal_position;"); $output = array(); @@ -856,10 +856,11 @@ class PostgreSQLDatabase extends SS_Database { } - self::$cached_fieldlists[$table]=$output; - } + // self::$cached_fieldlists[$table]=$output; + //} - return self::$cached_fieldlists[$table]; + //return self::$cached_fieldlists[$table]; + return $output; } /**