From dc379b5c3a7bdd391d18ea454699c63e00e62e6c Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Sun, 11 Apr 2021 14:02:39 +0800 Subject: [PATCH] Fix cockroach test --- dialects/postgres.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dialects/postgres.go b/dialects/postgres.go index 6c07ba6a..2b234c66 100644 --- a/dialects/postgres.go +++ b/dialects/postgres.go @@ -1052,6 +1052,10 @@ WHERE n.nspname= s.table_schema AND c.relkind = 'r'::char AND c.relname = $1%s A } } + if colDefault != nil && *colDefault == "unique_rowid()" { // ignore the system column added by cockroach + continue + } + col.Name = strings.Trim(colName, `" `) if colDefault != nil {