1
0
mirror of https://github.com/ManyakRus/crud_generator.git synced 2025-07-14 14:44:48 +02:00

сделал crud_starter_tables

This commit is contained in:
Nikitin Aleksandr
2024-12-09 16:05:28 +03:00
parent ade58fb80c
commit 6cb76acf92
2 changed files with 11 additions and 2 deletions

View File

@ -645,14 +645,14 @@ func FillTypeGo(SettingsFill types.SettingsFillFromDatabase, Column1 *types.Colu
SQLMapping1, ok := SettingsFill.MapDBTypes[Column1.Type]
if ok == false {
log.Panic("FillTypeGo() Column1.Type: ", Column1.Type, " error: not found")
log.Panic("FillTypeGo() Column1.Type: ", Column1.Type, ", error: not found")
}
ColumnName := Column1.Name
Type_go := SQLMapping1.GoType
Column1.TypeGo = Type_go
if Type_go == "" {
err = errors.New("FillTypeGo() error: Column: " + ColumnName + " Type: " + Column1.Type + " TypeGo= \"\"")
err = errors.New("FillTypeGo() error: Column: " + ColumnName + ", Type: " + Column1.Type + ", TypeGo= \"\"")
log.Panic(err)
}