summaryrefslogtreecommitdiff
path: root/config/database.yml.postgresql
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2017-07-10 20:35:20 -0700
committerStan Hu <stanhu@gmail.com>2017-07-10 20:38:26 -0700
commitf92a12c265608e4907e3cfde2ba878b59668dc19 (patch)
treec008fb1647fbeb75d38c3ec92c8f195cabd9e41d /config/database.yml.postgresql
parent4daa6da5407d235cbe4f7a787eaa29304446a870 (diff)
downloadgitlab-ce-f92a12c265608e4907e3cfde2ba878b59668dc19.tar.gz
Disabled prepared statements in testsh-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.
Diffstat (limited to 'config/database.yml.postgresql')
-rw-r--r--config/database.yml.postgresql1
1 files changed, 1 insertions, 0 deletions
diff --git a/config/database.yml.postgresql b/config/database.yml.postgresql
index c517a4c0cb8..4b30982fe82 100644
--- a/config/database.yml.postgresql
+++ b/config/database.yml.postgresql
@@ -46,3 +46,4 @@ test: &test
username: postgres
password:
# host: localhost
+ prepared_statements: false