summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorYorick Peterse <yorickpeterse@gmail.com>2015-11-18 13:31:18 +0100
committerYorick Peterse <yorickpeterse@gmail.com>2015-11-18 13:31:18 +0100
commit9eefae69171ba199d34bccf504902500a980fcb3 (patch)
tree5b4a70ccd2ecc0947d2d04e0d7ff26e59952d51d /spec
parentcc11c44ba997eb32dfa48ea225ae4c6942bc8610 (diff)
downloadgitlab-ce-9eefae69171ba199d34bccf504902500a980fcb3.tar.gz
Fix UNION syntax for MySQL
Apparently MySQL doesn't support this syntax: (...) UNION (...) instead it only supports: ... UNION ...
Diffstat (limited to 'spec')
-rw-r--r--spec/lib/gitlab/sql/union_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/lib/gitlab/sql/union_spec.rb b/spec/lib/gitlab/sql/union_spec.rb
index 976360af9b5..9e1cd4419e0 100644
--- a/spec/lib/gitlab/sql/union_spec.rb
+++ b/spec/lib/gitlab/sql/union_spec.rb
@@ -10,7 +10,7 @@ describe Gitlab::SQL::Union do
sql1 = rel1.reorder(nil).to_sql
sql2 = rel2.reorder(nil).to_sql
- expect(union.to_sql).to eq("(#{sql1}) UNION (#{sql2})")
+ expect(union.to_sql).to eq("#{sql1}\nUNION\n#{sql2}")
end
end
end