seamless_database_pool
seamless_database_pool copied to clipboard
Rails 5.0.1 placeholders are not working
Role.first
Role Load (3130.9ms) SELECT roles
.* FROM roles
ORDER BY roles
.id
ASC LIMIT ?
ActiveRecord::StatementInvalid: Mysql2::Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '?' at line 1: SELECT roles
.* FROM roles
ORDER BY roles
.id
ASC LIMIT ?
I also get this for all or most queries. It prevents the Rails app from starting.
Try setting prepared_statements: false in database.yml
This's helpful and should put to readme file.