Skip to content

Small Fix to Example #32

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Kuberchaun opened this issue May 27, 2011 · 0 comments
Closed

Small Fix to Example #32

Kuberchaun opened this issue May 27, 2011 · 0 comments

Comments

@Kuberchaun
Copy link

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'])

@brianc brianc closed this as completed Jun 2, 2011
brianc added a commit that referenced this issue Dec 18, 2019
Fix closing a finished cursor without supplying a callback
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants