mirror of
https://github.com/silverstripe/silverstripe-sqlite3
synced 2024-10-22 17:05:37 +02:00
MINOR: limit support for transactions to sqlite3.6 and later
This commit is contained in:
parent
5c672862aa
commit
46c903652a
@ -37,13 +37,6 @@ class SQLite3Database extends SS_Database {
|
||||
*/
|
||||
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
|
||||
*/
|
||||
@ -947,7 +940,7 @@ class SQLite3Database extends SS_Database {
|
||||
* Does this database support transactions?
|
||||
*/
|
||||
public function supportsTransactions(){
|
||||
return $this->supportsTransactions;
|
||||
return !($this->getVersion() < 3.6);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user