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

68 Commits

Author SHA1 Message Date
ruben
8ecd3eb577 Bugfix for query_impl, integ test for INSERT 2019-11-11 11:52:35 +00:00
ruben
ac50193b4e Reworked metadata ownership model 2019-11-10 20:59:12 +00:00
ruben
fc39308da9 Added deserialize_text_value tests for string types 2019-11-10 20:13:55 +00:00
ruben
737a8fffa8 Fixed bug in deserialization of text TIME
Added tests for deserialize_text_value TIME
2019-11-10 15:20:49 +00:00
ruben
a1b0b09f7e Fixed bug in deserialize_text_value<datetime>
Added unit tests
2019-11-10 13:46:20 +00:00
ruben
b317d96b58 Added tests for deserialize_text_value DATE 2019-11-10 12:58:56 +00:00
ruben
b185decc2f Made deserialize_text_value return strings by default 2019-11-10 11:58:56 +00:00
ruben
c9bea8b317 Now YEAR has its own type in mysql::value
Added tests for deserialize_text_value YEAR
2019-11-09 13:05:15 +00:00
ruben
5e7595ac8a Removed small int types from value variant type
Added tests for deserialize_text_value TINYINT, SMALLINT, MEDIUMINT
Corrected bug deserializing TINYINTs
2019-11-09 11:26:43 +00:00
ruben
0cf0be1005 Added first version of query (text protocol)
Added deserialize_text_row
Added deserialize_text_value
Added execute_query
Added fetch_text_row
Added resultset
Added connection::query
2019-11-08 20:31:31 +00:00
ruben
ddfa446d6e Added datetime type with some tests 2019-11-05 08:22:14 +00:00
ruben
2ccf82e89c Templatized connection with Allocator 2019-10-28 20:27:53 +00:00
ruben
76bb86197c Moved capabilities from connection to channel 2019-10-28 20:07:53 +00:00
ruben
98a8a27912 Added com_query and serialization of commands 2019-10-27 20:54:40 +00:00
ruben
5686b01f20 Added row class 2019-10-27 20:34:11 +00:00
ruben
13fbaff6bc Added value, datetime, time types 2019-10-27 20:22:43 +00:00
ruben
3ca9620d10 Added dataset_metadata 2019-10-27 20:22:26 +00:00
ruben
8d23193e28 Added field_metadata 2019-10-27 19:58:58 +00:00
ruben
70c12d5ea1 Added collation enumeration
Removed old CharacterSetFirstByte
2019-10-27 18:55:10 +00:00
ruben
c7c033222a Moved FieldType to a separate public header
Normalized names to match case convention
2019-10-27 16:09:42 +00:00
ruben
47f10c96c5 Recovered column_definition
Added column definition flag constants
Added a test for column definition
2019-10-27 14:24:08 +00:00
ruben
11c1712005 Added support for blank password users 2019-10-27 12:22:42 +00:00
ruben
31c6fea687 Implemented sync with exceptions handhsake 2019-10-27 10:57:11 +00:00
ruben
7ac3e616df Implemented async handshake 2019-10-27 10:49:39 +00:00
ruben
cf485ced05 Refactored sync handshake 2019-10-26 12:46:29 +01:00
ruben
bd4b372f98 Added server error codes, fixed bug in handshake 2019-10-25 21:55:02 +01:00
ruben
105c30623b Recovered sync handshake implementation
Added integration test
2019-10-24 13:30:49 +01:00
ruben
a7f59bd31d Renamed mysql_channel to channel 2019-10-22 19:46:21 +01:00
ruben
95336af81e Made contexts constructors take capabilities as args 2019-10-22 19:29:26 +01:00
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