Skip to content

Commit 1ec2c3a

Browse files
committed
fixup! fix(schema): hidden columns
1 parent ff6d369 commit 1ec2c3a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/active_record/connection_adapters/cockroachdb/schema_statements.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ def indexes(table_name) # :nodoc:
6363
valid = row[5]
6464
columns = decode_string_array(row[6]).map(&unquote)
6565
hidden_columns = decode_string_array(row[7]).map(&unquote)
66-
Debug.say decode_string_array(row[6])
6766

6867
using, expressions, include, nulls_not_distinct, where = inddef.scan(/ USING (\w+?) \((.+?)\)(?: INCLUDE \((.+?)\))?( NULLS NOT DISTINCT)?(?: WHERE (.+))?\z/m).flatten
6968

@@ -236,9 +235,9 @@ def foreign_keys(table_name)
236235
scope = quoted_scope(table_name)
237236
fk_info = internal_exec_query(<<~SQL, "SCHEMA", allow_retry: true, materialize_transactions: false)
238237
SELECT CASE
239-
WHEN n2.nspname = current_schema()
238+
WHEN n.nspname = current_schema()
240239
THEN ''
241-
ELSE n2.nspname || '.'
240+
ELSE n.nspname || '.'
242241
END || t2.relname AS to_table,
243242
c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete, c.convalidated AS valid, c.condeferrable AS deferrable, c.condeferred AS deferred, c.conrelid, c.confrelid,
244243
(

0 commit comments

Comments
 (0)