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

Add support for non-binding values (such as mysql functions) #24

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Arkitecht
Copy link

I needed support for insert/updating rows while using mysql builtin functions (ie. AES_ENCRYPT()), but this was sending them to the underlying PDO instance as bindings, which would then insert the mysql function as a string instead of the computed value.

I added a $dontEscapeColumns to the insertOnDuplicateKey function - if provided, it will not try to bind those columns, and will instead pass the raw values to the query.

I have added test coverage, and all existing tests pass

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