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 committed by smindel
parent b65482f8d1
commit 0dfbf538b6

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', '>=');
}
/*