Skip to content

Commit

Permalink
Merge pull request #11 from juaismar/juaismar/feat/libFix
Browse files Browse the repository at this point in the history
Juaismar/feat/lib fix
  • Loading branch information
juaismar authored Dec 14, 2022
2 parents 54ea040 + 25cd871 commit 0ae7d6b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions SSP.go
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ func bindingTypesQuery(searching, columndb, value string, columnInfo *sql.Column
queryval = ""
}
return fmt.Sprintf("%s IS %s TRUE", columndb, queryval), ""
case "real", "NUMERIC":
case "REAL", "NUMERIC":
if isRegEx {
return regExp(fmt.Sprintf("CAST(%s AS TEXT)", columndb), value)
}
Expand Down Expand Up @@ -599,7 +599,7 @@ func getFieldsSearch(searching, key string, val interface{}, vType reflect.Type)
default:
return val.(int64), nil
}
case "NUMERIC", "real":
case "NUMERIC", "REAL":
switch vType.String() {
case "[]uint8":
return strconv.ParseFloat(string(val.([]uint8)), 64)
Expand Down
3 changes: 2 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ require (
github.com/fzipp/gocyclo v0.3.1 // indirect
github.com/gordonklaus/ineffassign v0.0.0-20201107091007-3b93a8888063 // indirect
github.com/lib/pq v1.8.0
github.com/mattn/go-sqlite3 v2.0.1+incompatible // indirect
//github.com/mattn/go-sqlite3 must be 1.14, explained in lib readme
github.com/mattn/go-sqlite3 v1.14.16
github.com/nxadm/tail v1.4.5 // indirect
github.com/onsi/ginkgo v1.14.2
github.com/onsi/gomega v1.10.3
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ github.com/mattn/go-isatty v0.0.9/go.mod h1:YNRxwqDuOph6SZLI9vUUz6OYw3QyUt7WiY2y
github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU=
github.com/mattn/go-sqlite3 v1.14.0/go.mod h1:JIl7NbARA7phWnGvh0LKTyg7S9BA+6gx71ShQilpsus=
github.com/mattn/go-sqlite3 v1.14.5/go.mod h1:WVKg1VTActs4Qso6iwGbiFih2UIHo0ENGwNd0Lj+XmI=
github.com/mattn/go-sqlite3 v2.0.1+incompatible h1:xQ15muvnzGBHpIpdrNi1DA5x0+TcBZzsIDwmw9uTHzw=
github.com/mattn/go-sqlite3 v2.0.1+incompatible/go.mod h1:FPy6KqzDD04eiIsT53CuJW3U88zkxoIYsOqkbpncsNc=
github.com/mattn/go-sqlite3 v1.14.16 h1:yOQRA0RpS5PFz/oikGwBEqvAWhWg5ufRz4ETLjwpU1Y=
github.com/mattn/go-sqlite3 v1.14.16/go.mod h1:2eHXhiwb8IkHr+BDWZGa96P6+rkvnG63S2DGjv9HUNg=
github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A=
github.com/nxadm/tail v1.4.5/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A=
github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
Expand Down

0 comments on commit 0ae7d6b

Please sign in to comment.