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, "")