Closed ghost closed 5 years ago
Related failure on Oracle (12c) of overwrite = TRUE
with the odbc
package.
library(odbc)
library(DBI)
library(config)
library(dplyr)
cfg <- config::get(file = "/wrk/db-test-config.yml")
con <- do.call(dbConnect, cfg$oracle)
mytbl <- copy_to(con, iris, overwrite = TRUE)
#> Error: <SQL> 'DROP TABLE IF EXISTS iris'
#> nanodbc/nanodbc.cpp:1587: HY000: ORA-00933: SQL command not properly ended
#>
Note append = TRUE
does not seem to be passed through either.
library(odbc)
library(DBI)
library(config)
library(dplyr)
cfg <- config::get(file = "/wrk/db-test-config.yml")
con <- do.call(dbConnect, cfg$oracle)
mytbl <- copy_to(con, iris, append = TRUE)
#> Error: Table "iris" exists in database, and both overwrite and append are FALSE
Created on 2018-10-10 by the reprex package (v0.2.1)
Created on 2018-10-10 by the reprex package (v0.2.1)
@colearendt - That issue should be solved by https://github.com/tidyverse/dbplyr/pull/85
Duplicate of #120
@dmvianna commented on Sep 24, 2018, 2:49 AM UTC:
Please briefly describe your problem and what output you expect. If you have a question, please don't use this form. Instead, ask on https://stackoverflow.com/ or https://community.rstudio.com/.
Please include a minimal reproducible example (AKA a reprex). If you've never heard of a reprex before, start by reading https://www.tidyverse.org/help/#reprex.
Brief description of the problem
I am able to query Oracle fine, but I am unable to write data to it using the same connection. It seems
ROracle
does not have a functiondbBegin
dbplyr expects. I checked, it isn't there.gives me
This issue was moved by batpigandme from tidyverse/dplyr#3852.