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
If you have a case-sensitive model attribute and create a mutli-column index like this:
var User = schema.define('User', { userId: { type: Number }, messageId: { type: Number } }, { indexes: { indexPrimary: { columns: 'userId,messageId', type: 'btree' } } });
The constructed sql doesn't wrap the column names for the btree's Using context:
CREATE INDEX "indexPrimary" ON "User" USING btree (userId,messageId)
This will result in something like "Cannot find column 'userid'" failure.
Workaround (manually adding the quotes inline):
indexPrimary: { columns: '"userId","messageId"', type: 'btree' }
I am guessing that this should be handled in the library itself, as it does this for single columns perfectly.
Thanks for the hard work!
The text was updated successfully, but these errors were encountered:
No branches or pull requests
If you have a case-sensitive model attribute and create a mutli-column index like this:
The constructed sql doesn't wrap the column names for the btree's Using context:
This will result in something like "Cannot find column 'userid'" failure.
Workaround (manually adding the quotes inline):
I am guessing that this should be handled in the library itself, as it does this for single columns perfectly.
Thanks for the hard work!
The text was updated successfully, but these errors were encountered: