diff options
author | Yorick Peterse <yorickpeterse@gmail.com> | 2015-11-18 13:31:18 +0100 |
---|---|---|
committer | Yorick Peterse <yorickpeterse@gmail.com> | 2015-11-18 13:31:18 +0100 |
commit | 9eefae69171ba199d34bccf504902500a980fcb3 (patch) | |
tree | 5b4a70ccd2ecc0947d2d04e0d7ff26e59952d51d /spec | |
parent | cc11c44ba997eb32dfa48ea225ae4c6942bc8610 (diff) | |
download | gitlab-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.rb | 2 |
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 |