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
$connection = $this->pgsql->createConnection();
return $connection->select("SELECT * FROM test WHERE testid = AND testname = ;", array($id, $name));
这示例是错的,因为这个底层使用的是Coroutine\PostgreSQL
所以应该这样写:
$connection = $this->pgsql->createConnection();
return $connection->select("SELECT * FROM test WHERE testid = $1 AND testname = $2;", array($id, $name));
The text was updated successfully, but these errors were encountered:
问题二:\vendor\curtis18\swoft-pgsql\src\Connection\Connection.php 171行
$hash = md5($query); // 当开启事务。并且事务里面进行循环的分片插入。会出错 current transaction is aborted, commands ignored until end of transaction block
$connection = $this->pgsql->createConnection();
return $connection->select("SELECT * FROM test WHERE testid = AND testname = ;", array($id, $name));
这示例是错的,因为这个底层使用的是Coroutine\PostgreSQL
所以应该这样写:
$connection = $this->pgsql->createConnection();
return $connection->select("SELECT * FROM test WHERE testid = $1 AND testname = $2;", array($id, $name));
The text was updated successfully, but these errors were encountered: