2
0
mirror of https://github.com/boostorg/mysql.git synced 2026-02-16 13:32:15 +00:00
Commit Graph

74 Commits

Author SHA1 Message Date
ruben
92cd3569a3 Unified (de)serialize with (de)serialize_fields 2020-05-12 15:13:23 +01:00
ruben
22be55cb00 Added deserialization tests for unknown protocol type 2020-05-12 11:10:45 +01:00
ruben
5fb02cfe58 Added missing test file 2020-05-12 11:07:19 +01:00
ruben
548d618cb9 Refactored row deserialization tests 2020-05-12 11:04:49 +01:00
ruben
ee4b4e8422 Removed unused deserialization error text fixture 2020-05-11 16:59:18 +01:00
ruben
f5a17cdf7e Now text protocol supports invalid dates
Changed text protocol to support invalid dates and datetimes
Added tests
Now months greater than 12, days greater than 31, years greater than
9999 are always rejected
2020-05-11 13:21:29 +01:00
ruben
fdf2662b60 Improved error detection in DATETIME bin deseriaiz
Now DATETIMEs with invalid dates and invalid hours/mins/secs/micros are
considered an error. Added tests.
2020-05-11 09:20:22 +01:00
ruben
6c4364d246 Fixed bug in binary deserialization of invalid datetimes
Added tests to prove it works
2020-05-10 17:02:12 +01:00
ruben
55a959d8a6 Added binary deserialization tests for invalid DATEs 2020-05-09 21:51:17 +01:00
ruben
ab9d82a18a Completed binary_serialization tests 2020-05-09 20:03:18 +01:00
ruben
7c455009ba Reduced code duplication in binary serialize test 2020-05-09 19:43:04 +01:00
ruben
f5c2f3abf4 Added extra deserialize_binary_value test for TIME
To cover when sign is negative but not 0x01
2020-05-09 19:28:38 +01:00
ruben
6b6c3d77e0 Added binary deserialize error tests for TIME 2020-05-09 19:26:27 +01:00
ruben
601ad90851 Added range check for DATETIME binary deserializ
Completed DATETIME binary deserialization tests
2020-05-09 17:12:28 +01:00
ruben
a76caa8a83 Refactored binary protocol magic numbers
Fixed wider ranges for DATE and DATETIME
Removed old binary (de)serialization functions
2020-05-08 16:54:22 +01:00
ruben
d71695b3d4 Moved binary serialization into a separate file 2020-05-05 10:57:33 +01:00
ruben
aadd8213ad Added binary deserialization error tests 2020-05-04 20:21:28 +01:00
ruben
ee095a6af0 Completed binary_serialization_value tests 2020-05-04 16:06:36 +01:00
ruben
b4039c0ffa Simplified binary deserialization impl 2020-05-04 15:35:50 +01:00
ruben
f07d50950e Split binary_serialization tests into two files 2020-05-04 13:53:41 +01:00
ruben
40d101da02 Corrected typo in test name 2020-05-04 11:26:51 +01:00
ruben
ee882d3379 Removed unreliable error case for floats 2020-05-03 17:03:27 +01:00
ruben
8d385b0f52 Refactored text_deserialization tests 2020-05-03 16:44:48 +01:00
ruben
a35671a7ef Improved text deserializ error handling
Added more tests for text deserialization
Corrected some previous tests
Added code to handle some corner cases more gracefully
Refactored
2020-05-03 15:23:40 +01:00
ruben
fa8c11d784 Added deserialize text value err tests for DATETIME 2020-05-02 19:34:47 +01:00
ruben
9ab9abdca6 Added deserialize text value err tests for date 2020-05-02 13:05:34 +01:00
ruben
81db48a085 Added deserialize_test_value err tests, int and float 2020-05-02 12:52:34 +01:00
ruben
1d52822707 Regularized error code includes 2020-04-25 19:32:53 +01:00
ruben
3ea4953b4a Added unit test for quit serialization 2020-04-22 12:27:48 +01:00
ruben
f2f840c679 Small coverage increase in error.hpp 2020-04-21 15:38:49 +01:00
ruben
3862498fb3 Added static_string
Replaced fragile handshake_message static_string emulation by a proper
class
Added unit tests for static_string
2020-04-21 15:10:38 +01:00
ruben
b0b7f0ce63 Refactored error code to description impl 2020-04-21 12:28:27 +01:00
ruben
a54c83ef6a Replaced tabs for spaces 2020-04-20 11:36:31 +01:00
ruben
16ef83b136 Added copyrights 2020-04-20 11:18:52 +01:00
ruben
9bf70a31e3 Refactored auth calculation 2020-04-07 11:37:40 +01:00
ruben
1f5e060e37 Added first version of caching_sha2_password 2020-04-05 18:54:24 +01:00
ruben
42d79efe93 Added unit test for ssl_request serialization 2020-04-04 19:14:02 +01:00
ruben
a7c1e12d65 Initial prototype for SSL connections 2020-04-04 13:39:38 +01:00
ruben
bd9bcd6e21 Fixed further 32 bit warnings 2020-04-03 11:04:34 +01:00
ruben
26c57e92dd Split serialization tests into multiple files
Converted string_fixed into a plain array
2020-03-21 19:01:51 +00:00
ruben
db1e3005bb Converted serialization to a trait-based system 2020-03-21 17:12:53 +00:00
ruben
3ffff318d2 Split serialization and messages into several files 2020-03-20 18:12:53 +00:00
ruben
2b8f2000cf Refactored float serialization 2020-03-20 15:23:28 +00:00
ruben
c04ec3f528 Renamed (de)serialization contexts 2020-03-19 17:45:09 +00:00
ruben
0f86d72489 Renamed Error enum to errc 2020-03-19 17:40:24 +00:00
ruben
4260bac19b Renamed all 'errc' variables to 'code' 2020-03-19 17:35:08 +00:00
ruben
afdc3bfd19 Moved all names into namespace boost::mysql 2020-03-19 17:19:43 +00:00
ruben
dafe0fa1d4 Refactor file structure to not conflict with mysql
Now all includes live within boost
Corrected convention for .hpp and .ipp
Corrected convention for impl/detail
Now detail is split into auth/aux/protocol/network_algorithms
2020-03-17 12:22:05 +00:00
ruben
8309444932 Now empty packets can be written to channel
This fixes the empty password + auth switch bug
Added unit tests in channel to test the issue
2020-03-17 11:02:07 +00:00
ruben
ca2ef34202 Added missing flag in handshake for MariaDB 2020-03-13 21:37:51 +00:00