diff options
author | Thomas Markwalder <tmark@isc.org> | 2022-02-17 23:04:23 +0100 |
---|---|---|
committer | Thomas Markwalder <tmark@isc.org> | 2022-02-17 23:04:23 +0100 |
commit | bace4776737cf51ad419a259a2868ecf60005d24 (patch) | |
tree | 953cf0d634cf7303068ec0c6ad3cbfec2ecaa66d /src/lib/pgsql | |
parent | [#95] Fix time handling and make installable (diff) | |
download | kea-bace4776737cf51ad419a259a2868ecf60005d24.tar.xz kea-bace4776737cf51ad419a259a2868ecf60005d24.zip |
[#95] Make V4 Client class fetches simply return
src/hooks/dhcp/pgsql_cb/pgsql_cb_dhcp4.cc
Class fetches do nothing rather than throw
src/lib/pgsql/tests/pgsql_exchange_unittest.cc
Changed insane time test to use portable but
still insane time value
Diffstat (limited to 'src/lib/pgsql')
-rw-r--r-- | src/lib/pgsql/tests/pgsql_exchange_unittest.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/pgsql/tests/pgsql_exchange_unittest.cc b/src/lib/pgsql/tests/pgsql_exchange_unittest.cc index 724c68f852..fe5dfddfff 100644 --- a/src/lib/pgsql/tests/pgsql_exchange_unittest.cc +++ b/src/lib/pgsql/tests/pgsql_exchange_unittest.cc @@ -979,9 +979,9 @@ TEST_F(PgSqlBasicsTest, ptimeTimestamp) { // Make sure we catch values that are too big. time_duration duration = hours(10) + minutes(14) + seconds(15); - ptime day_too_far(date(3021, Jan, 21), duration); + ptime day_too_far(date(2038, Jan, 21), duration); ASSERT_THROW_MSG(bind_array->addTimestamp(day_too_far), BadValue, - "Time value is too large: 33168132855"); + "Time value is too large: 2147681655"); // Now add reasonable day, US National Ice Cream day. ptime nice_day(date(2021, Jul, 18), duration); |