@@ -446,7 +446,7 @@ func buildModels(conf Config, req *plugin.GenerateRequest) []Struct {
446
446
}
447
447
for _ , column := range table .Columns {
448
448
typ := makePyType (conf , req , column ) // TODO: This used to call compiler.ConvertColumn?
449
- typ .InnerType = strings .TrimPrefix (typ .InnerType , "models ." )
449
+ typ .InnerType = strings .TrimPrefix (typ .InnerType , "db_models ." )
450
450
s .Fields = append (s .Fields , Field {
451
451
Name : column .Name ,
452
452
Type : typ ,
@@ -692,9 +692,9 @@ func buildQueries(conf Config, req *plugin.GenerateRequest, structs []Struct) ([
692
692
same := true
693
693
for i , f := range s .Fields {
694
694
c := query .Columns [i ]
695
- // HACK: models do not have "models ." on their types, so trim that so we can find matches
695
+ // HACK: models do not have "db_models ." on their types, so trim that so we can find matches
696
696
trimmedPyType := makePyType (conf , req , c )
697
- trimmedPyType .InnerType = strings .TrimPrefix (trimmedPyType .InnerType , "models ." )
697
+ trimmedPyType .InnerType = strings .TrimPrefix (trimmedPyType .InnerType , "db_models ." )
698
698
sameName := f .Name == columnName (c , i )
699
699
sameType := f .Type == trimmedPyType
700
700
sameTable := sdk .SameTableName (c .Table , & s .Table , req .Catalog .DefaultSchema )
0 commit comments