rsqlserver
rsqlserver copied to clipboard
Incorrect handling of null values
@agstudy, I've tried reproducing your example of NULL type handling and found two regressions:
- After the
dbWriteTable
call, the uploaded table contains NULLs in the value column but not in the txt column of the database's table which instead contain blank cells. This can be verified by inspecting the table using means other than rsqlserver. - Using the
dbSendQuery
anddbReadTable
functions, the results are that the txt column returns NAs and the value column returns 0s
Essentially the problems here are that
- DB Integer nulls are converted to 0s in R
- DB text blanks are converted to NAs in R
- R text NAs are converted to blanks in DB
Are you able to reproduce this error on Windows using the current master branch or is this just a mono-specific error?