BUGFIX Fixed supportsTransactions() to use version_compare() so it doesn't break on non-scalar versions like '3.7.1'

This commit is contained in:
Ingo Schommer 2011-04-06 22:39:57 +12:00
parent 7205a9861f
commit f7fd2d46da

View File

@ -939,7 +939,7 @@ class SQLite3Database extends SS_Database {
* Does this database support transactions?
*/
public function supportsTransactions(){
return !($this->getVersion() < 3.6);
return version_compare($this->getVersion(), '3.6', '>=');
}
/*