Merge remote-tracking branch 'smindel/master'

This commit is contained in:
Ingo Schommer 2011-09-15 16:06:00 +02:00
commit 294c0d5c6d

View File

@ -1012,10 +1012,23 @@ class SQLite3Database extends SS_Database {
DB::query('COMMIT;');
}
/**
*
* 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) {
$text = "DELETE ";