Added missing method clear_cached_fieldlist existing in tests and at least in MySQLDatabase

This commit is contained in:
Stig Lindqvist 2011-03-01 12:05:28 +01:00 committed by smindel
parent a4f4d14eb9
commit b65482f8d1
1 changed files with 16 additions and 4 deletions

View File

@ -1006,10 +1006,22 @@ class SQLite3Database extends SS_Database {
DB::query('COMMIT;');
}
/**
* Convert a SQLQuery object into a SQL statement
*/
public function sqlQueryToString(SQLQuery $sqlQuery) {
/**
*
* This is a stub function. Postgres caches the fieldlist results.
*
* @param string $tableName
*
* @return boolean
*/
function clear_cached_fieldlist($tableName=false){
return true;
}
/**
* Convert a SQLQuery object into a SQL statement
*/
public function sqlQueryToString(SQLQuery $sqlQuery) {
if (!$sqlQuery->from) return '';
$distinct = $sqlQuery->distinct ? "DISTINCT " : "";
if($sqlQuery->delete) {