Skip to content
New issue

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

Fixes issue where mssql incorrectly strips off apostrophe characters from identifiers #4077

Merged
merged 2 commits into from Oct 24, 2020

Conversation

wickedest
Copy link
Contributor

@smorey2 [mssql]
We have a column, "NA'ME" that we use for testing to ensure ids are escaped properly. After upgrading from knex 0.15.2 to 0.21.6, our tests started to fail with an error that the column "NAME" does not exist. I tracked it down to the mssql dialect is incorrectly stripping out the apostrophe (') character. This change seems to have included a superfluous apostrophe. The code should wrap identifiers in [brackets].

If all is good, please kindly tag the PR as "hacktoberfest-accepted" for credit towards hacktoberfest.

@kibertoad
Copy link
Collaborator

@wickedest Could you please pull latest changes from master?

@kibertoad kibertoad merged commit 8faaf9c into knex:master Oct 24, 2020
@kibertoad
Copy link
Collaborator

Thank you :)

@kibertoad
Copy link
Collaborator

Released in 0.21.7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants