Skip to content

示例有点问题 #1

@c2498168786

Description

@c2498168786

$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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions