Skip to content

Commit

Permalink
feat(sql): issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ArielHAlba committed Jun 29, 2022
1 parent de139e3 commit c84d480
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sql/query_reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ func setQueries(v reflect.Value, queriesFS embed.FS, dir string) {

// mustReadSQLFiles fills queries into Query variable.
func mustReadSQLFiles(root string, queriesFS embed.FS, query interface{}) {
q := reflect.ValueOf(&query).Elem()
v := reflect.Indirect(reflect.ValueOf(&query))
q := reflect.ValueOf(query).Elem()
v := reflect.Indirect(reflect.ValueOf(query))
for i := 0; i < v.NumField(); i++ {
f := v.Type().Field(i)
mustReadQueries(q.FieldByName(f.Name), queriesFS,
Expand Down

0 comments on commit c84d480

Please sign in to comment.