MINOR: limit support for transactions to sqlite3.6 and later

This commit is contained in:
Andreas Piening 2010-04-30 03:07:35 +00:00
parent 5c672862aa
commit 46c903652a

View File

@ -37,13 +37,6 @@ class SQLite3Database extends SS_Database {
*/ */
protected $parameters; protected $parameters;
/*
* Actually SQLite supports transactions (they are used below), but they
* work signifficantly different to the transactions in Postgres on which
* the unit test are based upon... ;(
*/
protected $supportsTransactions=true;
/* /*
* if we're on a In-Memory db * if we're on a In-Memory db
*/ */
@ -947,7 +940,7 @@ class SQLite3Database extends SS_Database {
* Does this database support transactions? * Does this database support transactions?
*/ */
public function supportsTransactions(){ public function supportsTransactions(){
return $this->supportsTransactions; return !($this->getVersion() < 3.6);
} }
/* /*