Fix broken unittest.

Was probably broken by a change in Qt. Now using custom parser.
(I also tested a regex based parser but that was more then 80 times slower)
This commit is contained in:
eelke 2022-02-06 14:15:16 +01:00
parent c346430b25
commit 23e61c6c95
2 changed files with 48 additions and 3 deletions

View file

@ -49,9 +49,9 @@ TEST(Pgsql_Value, test_QTime)
TEST(Pgsql_Value, test_QTimeMS)
{
Pgsql::Value v("09:38:17.339817+02", timetz_oid);
Pgsql::Value v("09:38:17.339+02:00", timetz_oid);
QTime t = v;
ASSERT_EQ(t, QTime(9, 38, 17, 340));
ASSERT_EQ(t, QTime(9, 38, 17, 339));
}