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
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'])
The text was updated successfully, but these errors were encountered:
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'])
The text was updated successfully, but these errors were encountered: