mirror of
https://github.com/ent/ent.git
synced 2026-05-24 09:31:56 +03:00
entc/gen: fixed conflict with package name table/column (#4357)
* entc/gen: fixed conflict with package name table/column * examples: codegen * entc/integration: codegen
This commit is contained in:
@@ -17,7 +17,7 @@ var (
|
||||
)
|
||||
|
||||
// checkColumn checks if the column exists in the given table.
|
||||
func checkColumn(table, column string) error {
|
||||
func checkColumn(t, c string) error {
|
||||
initCheck.Do(func() {
|
||||
columnCheck = sql.NewColumnCheck(map[string]func(string) bool{
|
||||
{{- range $n := $.Nodes }}
|
||||
@@ -25,7 +25,7 @@ func checkColumn(table, column string) error {
|
||||
{{- end }}
|
||||
})
|
||||
})
|
||||
return columnCheck(table, column)
|
||||
return columnCheck(t, c)
|
||||
}
|
||||
{{- end }}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user