Skip to content

Instantly share code, notes, and snippets.

@paulcsmith
Created December 16, 2016 17:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paulcsmith/f0def7fe5ca204855bdcf9ee97e48b33 to your computer and use it in GitHub Desktop.
Save paulcsmith/f0def7fe5ca204855bdcf9ee97e48b33 to your computer and use it in GitHub Desktop.
DB.open("postgres://localhost/my_db") do |db|
db.query "select name from contacts where id = ?", 10 # Result in `syntax error at end of input (PQ::PQError)`
db.query "select name from contacts where id = 10" # Works as expected)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment