Skip to content
Browse files

MINOR: cached fieldlists disabled to see if this fixes the buildbot i…

…ssues
  • Loading branch information...
1 parent b56a862 commit cd9071c679f10ded897af3d184c5b9768d88c9cf @geoff-silverstripe geoff-silverstripe committed Jan 18, 2011
Showing with 5 additions and 4 deletions.
  1. +5 −4 code/PostgreSQLDatabase.php
View
9 code/PostgreSQLDatabase.php 100644 → 100755
@@ -774,7 +774,7 @@ public function fieldList($table) {
//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 @@ public function fieldList($table) {
}
- self::$cached_fieldlists[$table]=$output;
- }
+ // self::$cached_fieldlists[$table]=$output;
+ //}
- return self::$cached_fieldlists[$table];
+ //return self::$cached_fieldlists[$table];
+ return $output;
}
/**

1 comment on commit cd9071c

@miiihi
miiihi commented on cd9071c Mar 1, 2013

Hello, while doing some speeding up our installations, I found this commit. Can you tell me, if this fixed issues mentioned, or should the cache be enabled again?

Thanks, Blaz

Please sign in to comment.
Something went wrong with that request. Please try again.