2
0
mirror of https://github.com/boostorg/mysql.git synced 2026-02-14 12:52:17 +00:00

Now years are represented as plain ints

Now values do not have ::date::year as an option;
represented as plain uint32_t instead
This commit is contained in:
ruben
2020-01-31 13:06:21 +00:00
parent e949859783
commit 8d6c1bbaf7
12 changed files with 27 additions and 77 deletions

View File

@@ -292,10 +292,10 @@ INSTANTIATE_TEST_SUITE_P(TIME, DeserializeTextValueTest, Values(
));
INSTANTIATE_TEST_SUITE_P(YEAR, DeserializeTextValueTest, Values(
TextValueParam("regular value", "1999", mysql::year(1999), protocol_field_type::year),
TextValueParam("min", "1901", mysql::year(1901), protocol_field_type::year),
TextValueParam("max", "2155", mysql::year(2155), protocol_field_type::year),
TextValueParam("zero", "0000", mysql::year(0), protocol_field_type::year)
TextValueParam("regular value", "1999", std::uint32_t(1999), protocol_field_type::year, column_flags::unsigned_),
TextValueParam("min", "1901", std::uint32_t(1901), protocol_field_type::year, column_flags::unsigned_),
TextValueParam("max", "2155", std::uint32_t(2155), protocol_field_type::year, column_flags::unsigned_),
TextValueParam("zero", "0000", std::uint32_t(0), protocol_field_type::year, column_flags::unsigned_)
));
struct DeserializeTextRowTest : public Test