-
Notifications
You must be signed in to change notification settings - Fork 173
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
Escape raw vectors and support list of raw vectors #433
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, this looks great.
We should wait until #449 which also reexports the pipe.
Co-authored-by: Kirill Müller <krlmlr@users.noreply.github.com>
Merge branch 'master' of https://github.com/okhoma/dbplyr # Conflicts: # R/escape.R
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Can you please add a bullet to the top of NEWS.md
? It should briefly describe the change and end with (@yourname, #issuenumber)
.
I also sent a pull request to remove the extraneous magrittr import: https://github.com/okhoma/dbplyr/pull/1/files. |
magrittr reexport now in master
… contains more than one raw vector.
Co-authored-by: Kirill Müller <krlmlr@users.noreply.github.com>
Thanks! |
Hi,
Please, consider my pull request to support escape of raw vectors and lists of raw vectors.
The motivation is to be able to pass UTF-8 strings into dplyr
filter
method using a workaround described in r-dbi/DBI#215 (comment). Here, UTF-8 character vectors are converted to list of UTF-16 raw vectors and then the data is properly written into the database. However, when I attempt to filter the table passing raw vectors or list of raw vectors in the same manner, I am getting an errorError in UseMethod("escape") : no applicable method for 'escape' applied to an object of class "raw"
.