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

R Crashes with dbWriteTable() + odbc + MariaDB ODBC 3.0.5 (¿Stable?) Connector #194

Closed
jtelleria opened this issue Jun 13, 2018 · 1 comment

Comments

@jtelleria
Copy link

jtelleria commented Jun 13, 2018

Issue Description and Expected Result

When writing a POSIXct data.frame() column to a database through odbc::dbWriteTable() and using MariaDB ODBC Connector 3.0.5 (¿Stable?) the R Session Crashes.

Probably it is MariaDB ODBC Connector's fault, as it is so buggy :S

I'll report on MariaDB's JIRA also:
https://jira.mariadb.org/projects/MDEV/issues/MDEV-16471?filter=allopenissues

Database

MariaDB 10.2.7 + MariaDB ODBC Connector 3.05

With MySQL ODBC Connector 8.0.11 works perfectly.

Reproducible Example

library(odbc)

con <- odbc::dbConnect(
  drv = odbc::odbc(), 
  dsn = "MariaDB_ODBC_Tornado24",
  database = "eo_mariadb"
)

t_failure <- data.frame(
  Posixct_failure = c(as.POSIXct("2018-05-02"), as.POSIXct("2018-06-03"))
)

dbWriteTable(
  conn = con,
  name = "t_failure",
  value = t_failure,
  overwrite = TRUE,
  append = FALSE
)
sessionInfo()
R version 3.4.4 (2018-03-15)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)

Matrix products: default

locale:
[1] LC_COLLATE=Spanish_Spain.1252  LC_CTYPE=Spanish_Spain.1252    LC_MONETARY=Spanish_Spain.1252
[4] LC_NUMERIC=C                   LC_TIME=Spanish_Spain.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] RevoUtils_10.0.9     RevoUtilsMath_10.0.1

loaded via a namespace (and not attached):
[1] compiler_3.4.4 tools_3.4.4    yaml_2.1.19   

MariaDB JIRA Issue

https://jira.mariadb.org/browse/ODBC-149

@jtelleria
Copy link
Author

Fixed by MariaDB Team with ODBC Connector 3.0.6

Now works perfectly, and data transfer is faster than ever! :)

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

No branches or pull requests

1 participant