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

Added support for the BIT type

- Moved socket_connection to a separate include file.
- Clarified Stream requirements.
- Made make_error_code public.
- Updated include styles to match Boost's.
- Moved <boost/myql/mysql.hpp> to <boost/mysql.hpp> to match
conventions.
- Added support for the BIT type.

closes #13
closes #21
This commit is contained in:
Ruben Perez
2021-03-08 18:56:25 +01:00
parent 53da045c2c
commit fa6f177e0f
127 changed files with 853 additions and 583 deletions

View File

@@ -5,7 +5,7 @@
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#include "boost/mysql/error.hpp"
#include <boost/mysql/error.hpp>
#include "test_common.hpp"
using boost::mysql::errc;
@@ -82,4 +82,11 @@ BOOST_AUTO_TEST_CASE(operator_stream)
BOOST_AUTO_TEST_SUITE_END() // test_error_info
// error_code construction from errc
BOOST_AUTO_TEST_CASE(error_code_from_errc)
{
boost::mysql::error_code code (errc::protocol_value_error);
BOOST_TEST(code.value() == static_cast<int>(errc::protocol_value_error));
}
BOOST_AUTO_TEST_SUITE_END() // test_error