-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
$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));
Metadata
Metadata
Assignees
Labels
No labels