-
-
Save paulcsmith/f0def7fe5ca204855bdcf9ee97e48b33 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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