Major changes
- odbc can now be compiled again with Rtools35 (gcc 4.9.3) on Windows (#383)
invalid descriptor
errors from drivers such as Microsoft SQLServer driver and the freeTDS driver which do not support out of order retrieval are now avoided.
This is done by unbinding any nanodbc buffer past the long column.
Performance for the unbound columns in these cases will be reduced, but the retrieval will work without error (@detule, #381)dbBind()
anddbFetch()
now support multiple result sets (@vkapartzianis, #234)
Minor improvements and fixes
- New
dbAppendTable()
method for OdbcConnection objects (#335) dbQuoteIdentifier()
now uses the input names (if any).dbWriteTable()
anddbBind()
now default to abatch_rows
ofNA
, which sets the batch size to be the length of the input.
This avoids problems with drivers that don't support batch sizes larger than the input size.
To restore the behavior prior to this release passbatch_rows = 1024
or setoptions(odbc.batch_rows = 1024)
(#391).dbWriteTable()
now handlesdata.table::IDate()
objects (#388)dbWriteTable(field.types=)
now issues a warning rather than an error for missing columns (#342)odbcConnectionColumns()
now works as intended withDBI::Id()
objects (#389)dbFetch()
now verifies thatn
is a valid input.- Dates are now always interpreted as being in the database's local time zone, regardless of the
timezone
parameter (#398) - Oracle connections now support
Date
andPOSIXct
types viaDATE
andTIMESTAMP
data types (#324, #349, #350) - Oracle connections now use VARCHAR2 rather than VARCHAR, as recommended by Oracle's documentation (#189)