mirror of
https://github.com/boostorg/mysql.git
synced 2026-02-13 12:32:18 +00:00
31 lines
743 B
C++
31 lines
743 B
C++
//
|
|
// Copyright (c) 2019-2022 Ruben Perez Hidalgo (rubenperez038 at gmail dot com)
|
|
//
|
|
// Distributed under the Boost Software License, Version 1.0. (See accompanying
|
|
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
|
//
|
|
|
|
#include "integration_test_common.hpp"
|
|
|
|
using namespace boost::mysql::test;
|
|
using boost::mysql::error_code;
|
|
|
|
namespace {
|
|
|
|
BOOST_AUTO_TEST_SUITE(test_quit_connection)
|
|
|
|
BOOST_MYSQL_NETWORK_TEST(success, network_fixture, all_network_samples())
|
|
{
|
|
setup_and_connect(sample.net);
|
|
|
|
// Quit
|
|
conn->quit().validate_no_error();
|
|
|
|
// We are no longer able to query
|
|
conn->query("SELECT 1", *result).validate_any_error();
|
|
}
|
|
|
|
BOOST_AUTO_TEST_SUITE_END() // test_quit_connection
|
|
|
|
} // namespace
|