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

39 Commits

Author SHA1 Message Date
ruben
d2d0ef52da Added msgs::auth_switch_response 2019-10-22 19:17:28 +01:00
ruben
d28c82037d Added msgs::auth_switch_request 2019-10-22 19:13:36 +01:00
ruben
cc980cd8a4 Reworked capabilities
Removed explicit checks for mandatory capabilities in the library file,
replaced them by has_all function
2019-10-22 19:13:17 +01:00
ruben
60ceac8a3e Added msgs::handshake_response
Including serialization functions and tests for them
2019-10-21 20:48:57 +01:00
ruben
fcb85cb1d9 Recovered mysql_native_password authentication 2019-10-21 20:47:33 +01:00
ruben
6d9e2188e9 Added testing for capabilities class 2019-10-21 08:20:57 +01:00
ruben
2d76c45714 Added capabilities class
Made deserialization of handshake more robust
2019-10-13 13:40:34 +01:00
ruben
d1a08d4524 Added serialization of handshake
Added error code for extra bytes at the end of a frame
Improved (de)serialization test output in case of failure
2019-10-13 12:57:23 +01:00
ruben
f08ddb36c4 Added MysqlChannel sequence number tests 2019-10-06 20:41:14 +01:00
ruben
4263d22e35 Added MysqlChannel::write tests 2019-10-06 20:25:04 +01:00
ruben
e3d9c8f842 Added failure tests for MysqlChannel sync read 2019-10-06 17:07:09 +01:00
ruben
e603aad10d Added MysqlChannel
With the functionality to read and write, sync and async, buffers,
according to mysql protocol
Added unit tests for success cases for async read
2019-10-06 16:56:56 +01:00
ruben
38be8a9484 Changed ok_packet serialization impl
Remove hack with std::optional in favor of a custom implementation for
ok_packet.
2019-10-06 12:54:22 +01:00
ruben
b546bd01aa Added (de)serialization of error packets 2019-10-05 11:44:11 +01:00
ruben
72c9b0525c Added (de)serialization for ok_packet 2019-10-05 11:32:17 +01:00
ruben
876bb77752 Added generic struct (de)serialization 2019-10-04 21:19:23 +01:00
ruben
dbd623a9e0 Added (de)serialization tests for all basic types 2019-10-02 08:09:21 +01:00
ruben
1d429dc1ba New serialize/deserialize signatures
- Replaced (de)serialize signatures and implementations
- Now all basic types are structs with a value member (ValueHolder)
- Added (de)serialization for tuples
- Added boost::system based error handling
- Temporarily dropped all functionality except (de)serialization
- Re-wrote unit tests for fixed size types and int_lenenc,
  dropped tests for other types
2019-09-24 08:16:00 +01:00
ruben
6565aa1d3f Added prototype for async functions 2019-09-22 13:35:56 +01:00
ruben
f6fffb80da Made MysqlStream, PreparedStatement be templates
Made MysqlStream::write a template accepting any ConstBufferSequence
2019-09-10 20:26:47 +01:00
ruben
2bf1adf5eb Added prepared statement close 2019-09-08 12:13:55 +01:00
ruben
20f00e4c0e Added cursor/fetch support to prepared statements 2019-08-28 08:02:12 +01:00
ruben
caaa4e5764 Prepared statements use now iterator-like model 2019-08-21 21:12:44 +01:00
ruben
d0f2535f31 Fixed problem in stmt exec response for NULLs
Now it uses the right null bitmap traits
Now NullBitmapTraits::is_null works properly
2019-08-14 08:14:07 +01:00
ruben
87288f232a Added parsing of prepared statement responses
Fixed problems in execute request serialization
2019-08-13 22:10:10 +01:00
ruben
69ba45ff30 Added basic execution of prepared statements 2019-07-28 13:43:02 +01:00
ruben
059216ec2b Added more real read/write of packages and basic prepared statements 2019-07-11 19:41:01 +01:00
ruben
93692833f2 Added MysqlStream 2019-07-07 14:07:26 +01:00
ruben
93bf6f872b Fixed deserialize() bug for int3 and int6
deserialize() was reading uninitialized memory
2019-07-07 14:06:35 +01:00
ruben
53e6c3cc12 Converted character set (lower) into an enum 2019-07-07 11:57:24 +01:00
ruben
a4ca428d8b Added (de)serialization of prepare stmt and ColumnDefinition 2019-07-07 11:38:23 +01:00
ruben
1c8dd285ff Added serialization of enums 2019-07-07 11:38:09 +01:00
ruben
e0715451d5 Restructuring of source code for serialization 2019-07-07 11:17:22 +01:00
ruben
fe4ed6fad6 Added enum deserialization and tests for string/enum
Now string_null also throws out_of_range on overflow
2019-07-07 10:50:42 +01:00
ruben
279a3f499e Added PacketHeader, server flags and charset enums 2019-07-01 08:26:32 +01:00
ruben
f4e331978f Added handling for mysql_native_password 2019-06-30 18:45:32 +01:00
ruben
bd9c81a692 Added serialization functions 2019-06-30 13:48:12 +01:00
ruben
83e5eb3416 Converted mysql-asio into a shared library 2019-06-30 10:52:18 +01:00
ruben
c5d2e46cd2 Added basic deserialization functions 2019-06-29 17:18:28 +01:00