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
MS SQL mutate(ifelse()) translation not working #93
Comments
Sorry guys. Just opened up a ticket in dplyr instead (as suggested in the readme). Closing this guy. Opened tidyverse/dplyr#3632 |
No you should file here; I need to update the readme. |
Thanks Hadley. @edgararuiz, any insight on what a fix might be? |
Ok, I think that the update may have to be done in the negating function here: Line 183 in 477480e
I'll work on a PR for this |
Quick update, it looks like your suggestion fixes this issue, but it negatively impacts the custom MS SQL infix function we're using, so I have to work some more on this Line 194 in 477480e
|
Thanks for your help on this @edgararuiz! We're transitioning from a MySQL db to MSSQL and it's been super smooth thus far minus this kink. |
Did this issue get worked out or is there a workaround? I'm having the same problem. |
I'm running into an issue when using mutate and ifelse (or if) on a SQL Server backend. The following sample query:
... will give the following translation:
Which will return an error. The correct translation should be:
Will correcting this in the mssql_if function create any issues in other queries, or is there a better way to do mutate(ifelse()) in mssql?
dbplyr/R/db-odbc-mssql.R
Line 225 in 477480e
The text was updated successfully, but these errors were encountered: