Headless TypeScript ORM with a head. Runs on Node, Bun and Deno. Lives on the Edge and yes, it's a JavaScript ORM too 😅
23.54k
stars
578
forks
source link
[BUG]: Postgres Schema and Table name not properly escaped #2400
Closed
deanvanniekerk closed 4 months ago
What version of
drizzle-orm
are you using?0.30.10
What version of
drizzle-kit
are you using?0.21.4
Describe the Bug
Given a postgres schema and table name:
when performing this query
causes the following run time error
the issue is that the schema and table name are not being correctly escaped
Expected behavior
Schema and Table names should be escaped in the format
"{schema}"."{table}"
.so in the example above
"transactions.TokenSwap"
should be"transactions"."TokenSwap"
Environment & setup
nodejs v20