From f89e8a1a917ac55646a218a9625d746b30cdf714 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Sat, 20 Oct 2018 10:00:29 +0800 Subject: [PATCH] add trace on error --- dialects/postgres.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dialects/postgres.go b/dialects/postgres.go index 80e2f0ad..89bd4672 100644 --- a/dialects/postgres.go +++ b/dialects/postgres.go @@ -1050,7 +1050,7 @@ WHERE c.relkind = 'r'::char AND c.relname = $1%s AND f.attnum > 0 ORDER BY f.att } } if _, ok := schemas.SqlTypes[col.SQLType.Name]; !ok { - return nil, nil, fmt.Errorf("Unknown colType: %v", dataType) + return nil, nil, fmt.Errorf("Unknown colType: %s - %s", dataType, col.SQLType.Name) } col.Length = maxLen