🐞 fix(gen): pg gen of insert (#1591)

Co-authored-by: kurimi1 <d0n41df@gmail.com>
This commit is contained in:
toutou_o
2022-03-01 19:53:23 +08:00
committed by GitHub
parent fba6543b23
commit cc4c4928e0
5 changed files with 70 additions and 12 deletions

View File

@@ -223,7 +223,7 @@ func (g *defaultGenerator) genModel(in parser.Table, withCache bool) (string, er
table.UniqueCacheKey = uniqueKey
table.ContainsUniqueCacheKey = len(uniqueKey) > 0
importsCode, err := genImports(withCache, in.ContainsTime(), table)
importsCode, err := genImports(withCache, in.ContainsTime(), table, g.isPostgreSql)
if err != nil {
return "", err
}