-
Notifications
You must be signed in to change notification settings - Fork 79
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
dbWriteTable fails for data frame with zero rows #35
Comments
Fails is maybe a bit strong. It returns FALSE with a warning. What Seth Falcon | @sfalcon | http://userprimary.net/ |
Hi, INSERT table1 SELECT TOP 0 * FROM table0 and for clarification: also if target table do not exists the function should create empty table with structure of data.frame. |
Well, it fails to write a zero row table which was the expected behavior. See: If we try it with the H2 database it writes a zero row table as expected:
|
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. |
dbWriteTable
fails if the data frame has no rows. (Similar code does work with the RH2 driver for the H2 database.)The text was updated successfully, but these errors were encountered: