You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 28, 2022. It is now read-only.
$pg = new \Swoole\Coroutine\PostgreSQL();
$dsn = 'host=localhost;dbname=test;user=user;password=pswd';
$pg->connect($dsn);
$res = $pg->query('select name from users where id=1');
$pg->fetchRow($res); // it's ok$res = $pg->query('select name, pg_sleep(4) from users where id=1');
echo$pg->error; // ontimeout$res = $pg->query('select name from users where id=1');
if ($res) {
$pg->fetchRow($res);
} else {
// goto hereecho$pg->error; // ontimeout
}
if (!$pg->connect($dsn)) {
echo$pg->error; // ontimeout
}
$pg = new \Swoole\Coroutine\PostgreSQL();
$pg->connect($dsn);
$res = $pg->query('select name from users where id=1');
$pg->fetchRow($res); // it's ok
at swoole_postgresql_coro.cc#353
SW_PGSQL_CONNECT_TIMEOUT
defined to3.0
no method set the
timeout
value now.The text was updated successfully, but these errors were encountered: