mirror of
https://github.com/silverstripe/silverstripe-postgresql
synced 2024-10-22 17:05:45 +02:00
MINOR: cached fieldlists disabled to see if this fixes the buildbot issues
This commit is contained in:
parent
b56a86206f
commit
cd9071c679
9
code/PostgreSQLDatabase.php
Normal file → Executable file
9
code/PostgreSQLDatabase.php
Normal file → Executable file
@ -774,7 +774,7 @@ class PostgreSQLDatabase extends SS_Database {
|
|||||||
//Query from http://www.alberton.info/postgresql_meta_info.html
|
//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....
|
//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;");
|
$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();
|
$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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user