summaryrefslogtreecommitdiff
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
parent4daa6da5407d235cbe4f7a787eaa29304446a870 (diff)
downloadgitlab-ce-sh-disabled-prepared-statements-in-test.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.
-rw-r--r--config/database.yml.mysql1
-rw-r--r--config/database.yml.postgresql1
2 files changed, 2 insertions, 0 deletions
diff --git a/config/database.yml.mysql b/config/database.yml.mysql
index db1b712d3bc..eb71d3f5fe1 100644
--- a/config/database.yml.mysql
+++ b/config/database.yml.mysql
@@ -42,3 +42,4 @@ test: &test
password:
# host: localhost
# socket: /tmp/mysql.sock
+ prepared_statements: false
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