From 0d7546985d8a0632989fee1653ca0c0a0bc86bd0 Mon Sep 17 00:00:00 2001 From: Will Ayd Date: Mon, 31 Jul 2023 14:20:35 -0400 Subject: [PATCH] more debug --- c/driver/sqlite/statement_reader.c | 6 +++--- c/validation/adbc_validation.cc | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/c/driver/sqlite/statement_reader.c b/c/driver/sqlite/statement_reader.c index 99cc0f2712..ee93c56f2e 100644 --- a/c/driver/sqlite/statement_reader.c +++ b/c/driver/sqlite/statement_reader.c @@ -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; diff --git a/c/validation/adbc_validation.cc b/c/validation/adbc_validation.cc index 5fa25bbd98..e84cc518f5 100644 --- a/c/validation/adbc_validation.cc +++ b/c/validation/adbc_validation.cc @@ -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(-42)); - values.push_back(static_cast(42)); + values.push_back(static_cast(-20000)); + values.push_back(static_cast(20000)); } else { values.push_back(std::numeric_limits::lowest()); values.push_back(std::numeric_limits::max());