Browse Source

remove unsupported options

sqlite
d47081 2 years ago committed by GitHub
parent
commit
04715f5f53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      library/sqlite.php

2
library/sqlite.php

@ -8,7 +8,7 @@ class SQLite { @@ -8,7 +8,7 @@ class SQLite {
try {
$this->_db = new PDO('sqlite:' . $database, $username, $password, [PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8']);
$this->_db = new PDO('sqlite:' . $database, $username, $password);
$this->_db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$this->_db->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_ASSOC);
$this->_db->setAttribute(PDO::ATTR_TIMEOUT, 600);

Loading…
Cancel
Save