We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug After upgrade to v9, some of my select statment got syntax error
To Reproduce
package main import ( "database/sql" "fmt" "github.com/doug-martin/goqu/v9" _ "github.com/doug-martin/goqu/v9/dialect/postgres" _ "github.com/lib/pq" ) func main() { query, args, _ := goqu.Dialect("postgres"). From("mytable"). Prepared(true). Where(goqu.C("foobar").IsNull()). ToSQL() // OUTPUT: SELECT * FROM "mytable" WHERE ("foobar" IS $1) fmt.Println(query) db, _ := sql.Open("postgres", "database=test host=127.0.0.1 port=5432 sslmode=disable") if _, err := db.Query(query, args...); err != nil { // OUTPUT: panic: pq: syntax error at or near "$1" panic(err) } }
Dialect:
The text was updated successfully, but these errors were encountered:
@yeaha investigating now.
Sorry, something went wrong.
v9.0.1
cb05a0c
* [FIXED] Issue where `NULL`, `TRUE` and `FALSE` are interpolated when using an `IS` clause. #165
3e93ae2
v9.0.1 is published and should fix this. Let me know if you have any other issues.
Thank you for the bug report!
It's work. Thank you.
No branches or pull requests
Describe the bug
After upgrade to v9, some of my select statment got syntax error
To Reproduce
Dialect:
The text was updated successfully, but these errors were encountered: