Skip to content

Small Fix to Example #32

@Kuberchaun

Description

@Kuberchaun

The example on the front page attempts to query the beatles table by doing this:

var query = client.query("SELECT * FROM beatles WHERE name = $1", ['john'])

The J should be capital in John because that is the way it was inserted and PostgreSQL is case sensitive. Because of this the example code doesn't return John's record. This issue can be confusing for new users wondering why the data is not coming back.

Query should be:
var query = client.query("SELECT * FROM beatles WHERE name = $1", ['John'])

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