You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> DBI::sqlAppendTable(con = con, table = table ,values = data)
<SQL> INSERT INTO "IHS_PDCA_TYPE_CURVE_HEADER"
("reservoir", "bin_year", "bin_length", "type_curve_id", "well_count", "last_updated")
VALUES
(devonian, 2003, 5000, devonian_5000_2003, 4, 2018-04-19)
## 1st, 4th and 6th column are supposed to be string (it is in data.frame), but not in sql generated
## second attempt with your updated sqlData(), but with same results
> DBI::sqlAppendTable(con = con, table = table ,values = sqlData(con = con, value = data) )
<SQL> INSERT INTO "IHS_PDCA_TYPE_CURVE_HEADER"
("reservoir", "bin_year", "bin_length", "type_curve_id", "well_count", "last_updated")
VALUES
(devonian, 2003, 5000, devonian_5000_2003, 4, 2018-04-19)
The only reason I'm doing this is because db_write_table() and db_insert_into() forces users to create table, even though I tried temporary = FALSE. This is a case where user has insert but not create privileges.
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue and link to this old issue if necessary.
Activity
Merge branch 'b-#207-sqlData'. Closes #207.
Merge tag 'v1.1-13'
Merge tag 'v2.0'
leungi commentedon Apr 19, 2018
Ran into the exact issue with latest DBI 0.8.
The only reason I'm doing this is because db_write_table() and db_insert_into() forces users to create table, even though I tried temporary = FALSE. This is a case where user has insert but not create privileges.
Shall I open a new issue or reopen this one?
Thanks.
Ivan
krlmlr commentedon Jul 15, 2018
DBI 1.0.0 has
dbAppendTable(), does that help? Would you mind filing a new issue, which backend does it affect?leungi commentedon Jul 16, 2018
Thanks @krlmlr; I just filed a new Issue under #265.
Windows: update to libpq 11.1.0 (r-dbi#207)
github-actions commentedon Dec 7, 2020
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue and link to this old issue if necessary.