Skip to content

Commit 32ed591

Browse files
authored
[R] api usage: DATAPTR->DATAPTR_RO (#969)
1 parent c8a2e26 commit 32ed591

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/odbc_result.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ void odbc_result::bind_datetime(
402402
param_data& buffers) {
403403

404404
buffers.nulls_[column] = std::vector<uint8_t>(size, false);
405-
auto d = (SourceType*)DATAPTR(data[column]);
405+
auto d = (SourceType*)DATAPTR_RO(data[column]);
406406

407407
nanodbc::timestamp ts;
408408
short precision = 3;
@@ -443,7 +443,7 @@ void odbc_result::bind_date(
443443
param_data& buffers) {
444444

445445
buffers.nulls_[column] = std::vector<uint8_t>(size, false);
446-
auto d = (SourceType*)DATAPTR(data[column]);
446+
auto d = (SourceType*)DATAPTR_RO(data[column]);
447447

448448
nanodbc::date dt;
449449
for (size_t i = 0; i < size; ++i) {

0 commit comments

Comments
 (0)