Skip to content

Commit

Permalink
Merge pull request #10 from juaismar/juanito/feat/fixTipe
Browse files Browse the repository at this point in the history
int fiends empty
  • Loading branch information
juaismar authored Nov 28, 2022
2 parents c242a09 + c62d060 commit 6b56c26
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion SSP.go
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,12 @@ func getFieldsSearch(searching, key string, val interface{}, vType reflect.Type)
case "string", "TEXT", "varchar", "text":
return val.(string), nil
case "int":
return val.(int64), nil
switch vType.String() {
case "string":
return val.(string), nil
default:
return val.(int64), nil
}
case "NUMERIC", "real":
switch vType.String() {
case "[]uint8":
Expand Down

0 comments on commit 6b56c26

Please sign in to comment.