Skip to content

Commit

Permalink
more debug
Browse files Browse the repository at this point in the history
  • Loading branch information
WillAyd committed Jul 31, 2023
1 parent adc8466 commit 0d75469
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions c/driver/sqlite/statement_reader.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,16 +110,16 @@ static AdbcStatusCode ArrowDate32ToIsoString(int32_t value, char** buf,

return ADBC_STATUS_INVALID_ARGUMENT;
}
const time_t time = (time_t)(value * SECONDS_PER_DAY);
time_t time = (time_t)(value * SECONDS_PER_DAY);
#else
const time_t time = value * SECONDS_PER_DAY;
time_t time = value * SECONDS_PER_DAY;
#endif

struct tm broken_down_time;
time = 0; // debug

#if defined(_WIN32)
if (gmtime_s(&broken_down_time, &time) != 0) {
printf("not able to use time value of %lld\n", time);
SetError(error, "Could not convert date %" PRId32 " to broken down time", value);

return ADBC_STATUS_INVALID_ARGUMENT;
Expand Down
4 changes: 2 additions & 2 deletions c/validation/adbc_validation.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1040,8 +1040,8 @@ void StatementTest::TestSqlIngestNumericType(ArrowType type) {
} else if (type == ArrowType::NANOARROW_TYPE_DATE32) {
// Different databases may choose different epochs, so providing
// max values for DATE types is likely to cause overflows
values.push_back(static_cast<CType>(-42));
values.push_back(static_cast<CType>(42));
values.push_back(static_cast<CType>(-20000));
values.push_back(static_cast<CType>(20000));
} else {
values.push_back(std::numeric_limits<CType>::lowest());
values.push_back(std::numeric_limits<CType>::max());
Expand Down

0 comments on commit 0d75469

Please sign in to comment.