From 43d5356d9eae79e646488bc2384dd59c60df37ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E8=8C=B6=E6=B8=85=E6=AC=A2?= Date: Sun, 14 Apr 2024 22:00:46 +0800 Subject: [PATCH] BUG fix --- sql2go/parser.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql2go/parser.go b/sql2go/parser.go index 8fbe5fa..0aa588e 100644 --- a/sql2go/parser.go +++ b/sql2go/parser.go @@ -79,7 +79,7 @@ func ParseCreateTableSql(sql string) (*BasicTableInfo, error) { columnDefined, _, getColumnFunc := generateTableColumnDefined(basic.ModelStructName, r.TableSpec.Columns) basic.ColumnDescDefined = columnDefined basic.ModelStruct += getColumnFunc - basic.ModelStruct = basic.ColumnDefined + `\n` + basic.ModelStruct + basic.ModelStruct = basic.ColumnDescDefined + "\n" + basic.ModelStruct return basic, nil }