Skip to content

Datetime field overflow issues from version 1.6.0 onwards #959

@NyxHypnos

Description

@NyxHypnos

Database Oracle.
System POSIT.

After updating packages I started getting datetime field overflow error for all datetimes. I tried various formatting like as.POSIXct or format, etc. but the only thing that worked as using a pure date not a datetime.

When debugging I figured out that I could run the following code on 1.5.0, but with 1.6.0 onwards I get the error below.

simple_table_working_df <- data.frame(ID = "TEST", SUBMITTED = "2021-01-01 01:01:01")
DBI::dbAppendTable(conn = con_main, table_name, simple_table_working_df)
Error:
! nanodbc/nanodbc.cpp:1867: 00000
[RStudio][Support] (40520) Datetime field overflow resulting from invalid datetime. 
Hide Traceback
    ▆
 1. ├─DBI::dbAppendTable(conn = con_main, table_name, simple_table_working_df)
 2. └─DBI::dbAppendTable(conn = con_main, table_name, simple_table_working_df)
 3.   └─odbc (local) .local(conn, name, value, ..., row.names = row.names)
 4.     ├─base::tryCatch(...)
 5.     │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
 6.     └─odbc:::result_insert_dataframe(rs@ptr, values, batch_rows)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions