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
This is what I expect to get:
CREATE UNIQUE INDEX `IndexName` ON `Table` (`foo`, COALESCE (`bar`, ''));
This is my schema definition:
uniqueIndex("IndexName").on(table.foo, sql`COALESCE(${table.bar}, '')`)
COALESCE gets wrong escaping:
CREATE UNIQUE INDEX `IndexName` ON `Table` (`foo`,`COALESCE("bar"`,` '')`);
This is for the sqlite dialect with: drizzle-orm: 0.31.2 drizzle-kit: 0.22.6
The text was updated successfully, but these errors were encountered:
This still open?
Sorry, something went wrong.
should not be an issue on latest(0.30.0+), if it's still an issue - please reopen
@AndriiSherman, @anasouardini This is not fixed. Tested with [email protected] and [email protected], please repoen again.
Successfully merging a pull request may close this issue.
This is what I expect to get:
This is my schema definition:
COALESCE gets wrong escaping:
This is for the sqlite dialect with:
drizzle-orm: 0.31.2
drizzle-kit: 0.22.6
The text was updated successfully, but these errors were encountered: