From 49d0620cff55dc6b8fd681acce2f3632db8f6396 Mon Sep 17 00:00:00 2001 From: Victor Gaydov Date: Thu, 28 Apr 2016 16:27:13 +0300 Subject: [PATCH] Add Column.TableName field --- column.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/column.go b/column.go index 0e0def08..7d963231 100644 --- a/column.go +++ b/column.go @@ -16,6 +16,7 @@ const ( // database column type Column struct { Name string + TableName string FieldName string SQLType SQLType Length int @@ -42,6 +43,7 @@ type Column struct { func NewColumn(name, fieldName string, sqlType SQLType, len1, len2 int, nullable bool) *Column { return &Column{ Name: name, + TableName: "", FieldName: fieldName, SQLType: sqlType, Length: len1,