mirror of
https://github.com/boostorg/mysql.git
synced 2026-02-15 01:02: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:
@@ -234,22 +234,6 @@ INSTANTIATE_TEST_SUITE_P(Time, FullSerializationTest, ::testing::Values(
|
||||
0x3a, 0x58, 0x3e, 0x0f, 0x00}, "negative_hmsu")
|
||||
));
|
||||
|
||||
|
||||
/*
|
||||
* std::int32_t, // signed TINYINT, SMALLINT, MEDIUMINT, INT
|
||||
std::int64_t, // signed BIGINT
|
||||
std::uint32_t, // unsigned TINYINT, SMALLINT, MEDIUMINT, INT
|
||||
std::uint64_t, // unsigned BIGINT
|
||||
std::string_view, // CHAR, VARCHAR, BINARY, VARBINARY, TEXT (all sizes), BLOB (all sizes), ENUM, SET, DECIMAL, BIT, GEOMTRY
|
||||
float, // FLOAT
|
||||
double, // DOUBLE
|
||||
date, // DATE
|
||||
datetime, // DATETIME, TIMESTAMP
|
||||
time, // TIME
|
||||
year, // YEAR
|
||||
std::nullptr_t // Any of the above when the value is NULL
|
||||
*/
|
||||
|
||||
// Messages
|
||||
INSTANTIATE_TEST_SUITE_P(PacketHeader, FullSerializationTest, ::testing::Values(
|
||||
SerializeParams(packet_header{int3(3), int1(0)}, {0x03, 0x00, 0x00, 0x00}, "small packet, seqnum==0"),
|
||||
@@ -724,13 +708,6 @@ INSTANTIATE_TEST_SUITE_P(ComStmtExecute, SerializeTest, testing::Values(
|
||||
},
|
||||
"time"
|
||||
),
|
||||
make_stmt_execute_test(1, 0, 1, 1, // stmt ID, flags, itercount, new params
|
||||
{ mysql::year(2010) }, {
|
||||
0x17, 0x01, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00,
|
||||
0x00, 0x00, 0x00, 0x01, 0x02, 0x80, 0xda, 0x07
|
||||
},
|
||||
"year"
|
||||
),
|
||||
make_stmt_execute_test(1, 0, 1, 1, // stmt ID, flags, itercount, new params
|
||||
{ nullptr }, {
|
||||
0x17, 0x01, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00,
|
||||
@@ -746,27 +723,24 @@ INSTANTIATE_TEST_SUITE_P(ComStmtExecute, SerializeTest, testing::Values(
|
||||
std::string_view("test"),
|
||||
nullptr,
|
||||
2.1e214,
|
||||
mysql::year(2010),
|
||||
makedate(2010, 9, 3),
|
||||
makedt(2010, 9, 3, 10, 30, 59, 231800),
|
||||
maket(230, 30, 59, 231800),
|
||||
nullptr,
|
||||
mysql::year(2010)
|
||||
nullptr
|
||||
), {
|
||||
0x17, 0x02, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00,
|
||||
0x00, 0x00, 0x20, 0x08, 0x01, 0x03, 0x80, 0x03,
|
||||
0x00, 0x00, 0x20, 0x04, 0x01, 0x03, 0x80, 0x03,
|
||||
0x00, 0x08, 0x80, 0x08, 0x00, 0x0f, 0x00, 0x06,
|
||||
0x00, 0x05, 0x00, 0x02, 0x80, 0x0a, 0x00, 0x0c,
|
||||
0x00, 0x0b, 0x00, 0x06, 0x00, 0x02, 0x80, 0xff,
|
||||
0xff, 0xab, 0x00, 0x01, 0x00, 0x54, 0xff, 0xae,
|
||||
0xad, 0xac, 0xab, 0xff, 0xff, 0xab, 0x00, 0x52,
|
||||
0x52, 0x53, 0x54, 0x00, 0x00, 0x54, 0xff, 0x04,
|
||||
0x74, 0x65, 0x73, 0x74, 0x56, 0xc0, 0xee, 0xa6,
|
||||
0x95, 0x30, 0x6f, 0x6c, 0xda, 0x07, 0x04, 0xda,
|
||||
0x07, 0x09, 0x03, 0x0b, 0xda, 0x07, 0x09, 0x03,
|
||||
0x0a, 0x1e, 0x3b, 0x78, 0x89, 0x03, 0x00, 0x0c,
|
||||
0x00, 0x09, 0x00, 0x00, 0x00, 0x0e, 0x1e, 0x3b,
|
||||
0x78, 0x89, 0x03, 0x00, 0xda, 0x07
|
||||
0x00, 0x05, 0x00, 0x0a, 0x00, 0x0c, 0x00, 0x0b,
|
||||
0x00, 0x06, 0x00, 0xff, 0xff, 0xab, 0x00, 0x01,
|
||||
0x00, 0x54, 0xff, 0xae, 0xad, 0xac, 0xab, 0xff,
|
||||
0xff, 0xab, 0x00, 0x52, 0x52, 0x53, 0x54, 0x00,
|
||||
0x00, 0x54, 0xff, 0x04, 0x74, 0x65, 0x73, 0x74,
|
||||
0x56, 0xc0, 0xee, 0xa6, 0x95, 0x30, 0x6f, 0x6c,
|
||||
0x04, 0xda, 0x07, 0x09, 0x03, 0x0b, 0xda, 0x07,
|
||||
0x09, 0x03, 0x0a, 0x1e, 0x3b, 0x78, 0x89, 0x03,
|
||||
0x00, 0x0c, 0x00, 0x09, 0x00, 0x00, 0x00, 0x0e,
|
||||
0x1e, 0x3b, 0x78, 0x89, 0x03, 0x00
|
||||
},
|
||||
"several_params"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user