I fixed an issue on my rails project locally (with postgres config) while adding in database.yml this statement:
test:
prepared_statements: false
The bug that I fixed was related to this issue:
PG::ProtocolViolation: ERROR: bind message supplies 2 parameters, but prepared statement "a24" requires 1
Now, I want to fix it on my production app hosted on Heroku with a postgres database. I don't know how to disable prepared statement as the database.yml is automatically generated. I tried to append:
/database?prepared_statements=false
to my database's URI but it ends up with a DATABSE_URL that is wrong and so I can't connect to my database.
What is the process and the right syntax to disable prepared_statement?