Open yyaskriloff opened 1 month ago
const queryWithDash = {
sql: 'select ... from "events" where ("events"."url" = $1 and "events"."activated" is not null and "events"."archiving" = $2) limit $3',
params: [ 'my-wedding', false, 1 ],
}
const queryWithoutDash = {
sql: 'select ... from "events" where ("events"."url" = $1 and "events"."activated" is not null and "events"."archiving" = $2) limit $3',
params: [ 'mywedding', false, 1 ],
}
What version of
drizzle-orm
are you using?0.33.0
What version of
drizzle-kit
are you using?0.5.1
Describe the Bug
I'm having this issue when I try to make a query that uses an and statement with eq and isNotNull that when the string I'm using in eq includes
-
it will return as undefinedwhen the event url contains
-
(for examplehello-world
) event would be undefined but when I go into the db and change the same record and remove the-
(tohelloworld
) and make the the query it would return the event.to clearify when the url was hello-world
eventUrl = "hello-world"
and when url was helloworld,eventUrl = "helloworld"
so it wasn't that the query just didn't match up. i found when I removed the isNotNull check it would work fine in both situationsExpected behavior
No response
Environment & setup
I'm using the neon driver (@neondatabase/serverless 0.9.4) and nextjs (14.2.4) on a 2019 macbook air