From c7344f21e474b33ea8c2a6407e78a7f63f169f5b Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Thu, 3 Sep 2020 14:04:43 +0800 Subject: [PATCH] Fix bug on get columns for postgres --- dialects/postgres.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dialects/postgres.go b/dialects/postgres.go index 1996c49d..3c1d53c0 100644 --- a/dialects/postgres.go +++ b/dialects/postgres.go @@ -1015,7 +1015,7 @@ WHERE n.nspname= s.table_schema AND c.relkind = 'r'::char AND c.relname = $1%s A schema := db.getSchema() if schema != "" { - s = fmt.Sprintf(s, "AND s.table_schema = $2") + s = fmt.Sprintf(s, " AND s.table_schema = $2") args = append(args, schema) } else { s = fmt.Sprintf(s, "")