Skip to content

Commit

Permalink
Fix SQLite driver reconnecting on every single query
Browse files Browse the repository at this point in the history
  • Loading branch information
thekid committed Oct 6, 2018
1 parent b11b6f9 commit eae48b4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ RDBMS support for the XP Framework: MySQL, Sybase, MSSQL, PostgreSQL, SQLite3, I

## ?.?.? / ????-??-??

## 12.0.1 / 2018-10-06

* Fixed SQLite driver reconnecting on every single query - @thekid

## 12.0.0 / 2018-08-24

* **Heads up**: Deprecated `rdbms.util` package - @thekid
Expand Down
2 changes: 1 addition & 1 deletion src/main/php/rdbms/sqlite3/SQLite3Connection.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public function identity($field= null) {
* @throws rdbms.SQLException
*/
protected function query0($sql, $buffered= true) {
$this->handle instanceof \SQLite || $this->connections->establish($this);
$this->handle instanceof \SQLite3 || $this->connections->establish($this);

$result= $this->handle->query($sql);
if (false === $result) {
Expand Down

0 comments on commit eae48b4

Please sign in to comment.