Commit 883c6b56 authored by pbair's avatar pbair

Fix bad sequence query causing spec fail in PG12

Fix an incorrect query of system catalogs that is causing a spec
failure in postgres 12.
parent adef7c03
######################
#######################
# rspec job base specs
.rails-job-base:
extends:
......
......@@ -43,9 +43,9 @@ module TableSchemaHelpers
sequence.relname as name
FROM pg_catalog.pg_class as sequence
INNER JOIN pg_catalog.pg_depend depend
ON depend.objid = sequence.relfilenode
ON depend.objid = sequence.oid
INNER JOIN pg_catalog.pg_class class
ON class.relfilenode = depend.refobjid
ON class.oid = depend.refobjid
INNER JOIN pg_catalog.pg_attribute attribute
ON attribute.attnum = depend.refobjsubid
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