Closed GoogleCodeExporter closed 9 years ago
Original comment by ne...@neiltiffin.com
on 24 Aug 2010 at 12:06
Test case exists as tests/createTableMixedCaseTest .r
Original comment by ne...@neiltiffin.com
on 24 Aug 2010 at 12:09
The test case creates two tables and does not remove it.
On the second run it fails because of the preexisting table.
Note
res <- dbSendQuery(con, "drop table Foo1")
res <- dbSendQuery(con, "drop table \"Foo2\"")
will remove as what are created with create table, irrespective of
the case sensitivity of dbExistsTable and dbRemoveTable.
It seems consistent if argument of dbExistsTable and dbRemoveTable,
are just case sensitive and case sensitive string should always quoted
in translating to postgresql query. So, I don't find any reason to assign FAIL
on current output for dbExistsTable. (as in the test-mixcase.patch2).
There may be insufficient quoting for DROP TABLE and CREATE TABLE, though.
Making every identifier (especially column name) lowercase
is not an option, because df$aa and df$Aa is distinguishable in R.
Several other test scripts creates rockdata
and tries to remove "rockData" at the end, which results in
remaining rockdata.
Original comment by tomoa...@kenroku.kanazawa-u.ac.jp
on 12 Sep 2010 at 3:04
Attachments:
Further change on the test program.
Use cat() instead of print().
With print(), the output is printed as vector, preceding [1] and quoting...
Related discussion will be sent to the discussion group soon.
Assuming attachment is easier from here.
Original comment by tomoa...@kenroku.kanazawa-u.ac.jp
on 12 Sep 2010 at 5:11
Attachments:
Reassigned for disposition.
Original comment by ne...@neiltiffin.com
on 13 Oct 2010 at 12:52
dbExistsTable, dbWriteTable, and dbRemoveTable work with the character string
as is by using proper escaping / quoting as of r152.
Original comment by tomoa...@kenroku.kanazawa-u.ac.jp
on 14 Oct 2010 at 2:30
Original issue reported on code.google.com by
ne...@neiltiffin.com
on 24 Aug 2010 at 12:04