Skip to content

Commit

Permalink
PqHandle rewrite to be more AMPHP compatible (and fix concurrency pro…
Browse files Browse the repository at this point in the history
…blems)
  • Loading branch information
codercms committed Oct 9, 2021
1 parent 8755101 commit b965e69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Driver/Pq/PqHandle.php
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ private function send(?string $sql, callable $method, ...$args)
Event::set($this->handle->socket, null, null, SWOOLE_EVENT_READ | SWOOLE_EVENT_WRITE);
}

$this->prevSql = $sql;
$this->prevSql = $sql ?? '';

$result = $this->deferred->getResult();
} catch (pq\Exception $exception) {
Expand Down

0 comments on commit b965e69

Please sign in to comment.