Commit 213b2354 authored by Stan Hu's avatar Stan Hu

Merge branch 'pbair-fix-bad-pg-sequence-join' into 'master'

Fix bad sequence query causing spec fail in PG12

See merge request gitlab-org/gitlab!46030
parents 2d600716 883c6b56
###################### #######################
# rspec job base specs # rspec job base specs
.rails-job-base: .rails-job-base:
extends: extends:
......
...@@ -43,9 +43,9 @@ module TableSchemaHelpers ...@@ -43,9 +43,9 @@ module TableSchemaHelpers
sequence.relname as name sequence.relname as name
FROM pg_catalog.pg_class as sequence FROM pg_catalog.pg_class as sequence
INNER JOIN pg_catalog.pg_depend depend INNER JOIN pg_catalog.pg_depend depend
ON depend.objid = sequence.relfilenode ON depend.objid = sequence.oid
INNER JOIN pg_catalog.pg_class class INNER JOIN pg_catalog.pg_class class
ON class.relfilenode = depend.refobjid ON class.oid = depend.refobjid
INNER JOIN pg_catalog.pg_attribute attribute INNER JOIN pg_catalog.pg_attribute attribute
ON attribute.attnum = depend.refobjsubid ON attribute.attnum = depend.refobjsubid
AND attribute.attrelid = depend.refobjid AND attribute.attrelid = depend.refobjid
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment