|
|
|
@ -78,7 +78,7 @@ var ( |
|
|
|
columnCheck sql.ColumnCheck |
|
|
|
columnCheck sql.ColumnCheck |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
// checkColumn checks if the column exists in the given table.
|
|
|
|
// columnChecker checks if the column exists in the given table.
|
|
|
|
func checkColumn(table, column string) error { |
|
|
|
func checkColumn(table, column string) error { |
|
|
|
initCheck.Do(func() { |
|
|
|
initCheck.Do(func() { |
|
|
|
columnCheck = sql.NewColumnCheck(map[string]func(string) bool{ |
|
|
|
columnCheck = sql.NewColumnCheck(map[string]func(string) bool{ |
|
|
|
|