Skip to content

Commit

Permalink
change file name also
Browse files Browse the repository at this point in the history
  • Loading branch information
foxtech6 authored Dec 29, 2023
1 parent bb998af commit 3dbd3f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/generate/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func (b *QueryStructMeta) parseStruct(st interface{}) error {
return err
}
b.TableName = b.db.NamingStrategy.TableName(stmt.Table)
b.FileName = strings.ToLower(stmt.Table)
b.FileName = strings.ToLower(b.TableName)

var fp FieldParser = dummyFieldParser{}
if fps, ok := st.(FieldParser); ok && fps != nil {
Expand Down

0 comments on commit 3dbd3f7

Please sign in to comment.