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

Handle unescaped ? when calling toString() on query #6

Merged

Conversation

CFitzsimons
Copy link
Contributor

I noticed that when a field in the initial query contains a question mark that the knex.raw statement treats that as an indication that we should be subbing a value in. This should ensure that we correctly escape any ?'s in the future. Let me know what you think!

@felixmosh
Copy link
Owner

Interesting, I will investigate it, cause it should be treated as regular string, thanx.

Copy link
Owner

@felixmosh felixmosh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change looks relevant, I will approve it after changes.

__tests__/index.spec.js Outdated Show resolved Hide resolved
lib/index.js Show resolved Hide resolved
@felixmosh felixmosh merged commit c1713b1 into felixmosh:master Sep 4, 2019
@felixmosh
Copy link
Owner

Thank you for this issue + PR 🙏

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

Successfully merging this pull request may close these issues.

None yet

2 participants