Open GoogleCodeExporter opened 9 years ago
"tweets2" is not likely be created by dbWriteTable() and it is not in the scope
of dbWriteTable() to append to a table that have different structure than
created by dbWriteTable().
The mismatch in the number of column is probably due to the row.names and
row.names=F option may help.
The latest svn version might work better, as the column names are transmitted
and thus the order may differ between the data frame and database definition.
Anyway, reading something from the relational database adding as is again
violates RDB principle and should cause error.
Original comment by tomoa...@kenroku.kanazawa-u.ac.jp
on 12 Nov 2013 at 7:33
Adding row.names=F fixes the problem. Thanks much for your help!
You're right, "tweets2" was not created by dbWriteTable(). Also, the code above
(to read from a table and write the data I just read back to the db) is simply
a test I did to eliminate the possibility that the actual data I was reading
from another source & trying to insert into the db didn't have any issues that
caused this problem.
Original comment by vedacity...@gmail.com
on 12 Nov 2013 at 2:37
Original issue reported on code.google.com by
vedacity...@gmail.com
on 12 Nov 2013 at 2:42