Override transaction mode support check method as these are not supported by SQLite

This commit is contained in:
Michal Kleiner 2019-09-16 14:49:31 +12:00
parent 10c85d4179
commit 22d46a5ef8
1 changed files with 13 additions and 0 deletions

View File

@ -460,6 +460,19 @@ class SQLite3Database extends Database
return version_compare($this->getVersion(), '3.6', '>=');
}
/**
* Does this database support transaction modes?
*
* SQLite doesn't support transaction modes.
*
* @param string $mode
* @return bool
*/
public function supportsTransactionMode(string $mode): bool
{
return false;
}
public function supportsExtensions($extensions = array('partitions', 'tablespaces', 'clustering'))
{
if (isset($extensions['partitions'])) {