You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When using a null sql.NullInt32 in a query using postgres dialect, the created query uses WHERE x = NULL, instead of the correct WHERE x is NULL.
Describe the bug
When using a null
sql.NullInt32
in a query using postgres dialect, the created query usesWHERE x = NULL
, instead of the correctWHERE x is NULL
.To Reproduce
=>
SELECT "Id" FROM "table" WHERE ("Val" = NULL) // Wrong
SELECT "Id" FROM "table" WHERE ("Val" IS NULL) // Right
Expected behavior
When using
sql.NullX
as a null value, expect to use correctlyDialect:
The text was updated successfully, but these errors were encountered: