Skip to content

Commit 69ced25

Browse files
committed
dbi-table: No special handling for data.table::IDate
No longer needed post r-dbi#954
1 parent 09b6709 commit 69ced25

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

R/dbi-table.R

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -192,10 +192,6 @@ setMethod("sqlData", "OdbcConnection",
192192
is_POSIXlt <- vapply(value, function(x) is.object(x) && (is(x, "POSIXlt")), logical(1))
193193
value[is_POSIXlt] <- lapply(value[is_POSIXlt], as.POSIXct)
194194

195-
# Convert data.table::IDate to Date
196-
is_IDate <- vapply(value, function(x) is.object(x) && (is(x, "IDate")), logical(1))
197-
value[is_IDate] <- lapply(value[is_IDate], as.Date)
198-
199195
# C code takes care of atomic vectors, dates, date times, and blobs just need to coerce other objects
200196
is_object <- vapply(value, function(x) is.object(x) && !(is(x, "POSIXct") || is(x, "Date") || is_blob(x) || is(x, "difftime")), logical(1))
201197
value[is_object] <- lapply(value[is_object], as.character)

0 commit comments

Comments
 (0)