Disabled prepared statements in test

Some tests may test migrations and change the types of columns. If this
happens, Rails may cache a statement that will cause PostgreSQL to fail with
the message, "cached plan must not change result type":
https://github.com/rails/rails/issues/12330

This happened in https://gitlab.com/gitlab-org/gitlab-ee/issues/2890#note_34636077.
This commit is contained in:
Stan Hu 2017-07-10 20:35:20 -07:00
parent 4daa6da540
commit f92a12c265
2 changed files with 2 additions and 0 deletions

View file

@ -42,3 +42,4 @@ test: &test
password:
# host: localhost
# socket: /tmp/mysql.sock
prepared_statements: false

View file

@ -46,3 +46,4 @@ test: &test
username: postgres
password:
# host: localhost
prepared_statements: false