From bace4776737cf51ad419a259a2868ecf60005d24 Mon Sep 17 00:00:00 2001 From: Thomas Markwalder Date: Thu, 17 Feb 2022 17:04:23 -0500 Subject: [#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 --- src/lib/pgsql/tests/pgsql_exchange_unittest.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/pgsql') 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); -- cgit v1.2.3