The Battle for Wesnoth  1.15.3+dev
last_error.cpp
Go to the documentation of this file.
1 //
2 // M A R I A D B + +
3 //
4 // Copyright Sylvain Rochette Langlois 2013,
5 // The ViaDuck Project 2016 - 2018.
6 // Distributed under the Boost Software License, Version 1.0.
7 // (See accompanying file LICENSE or copy at
8 // http://www.boost.org/LICENSE_1_0.txt)
9 
10 #include <mariadb++/last_error.hpp>
11 
12 using namespace mariadb;
13 
14 //
15 // Constructor
16 //
17 last_error::last_error() : m_last_error_no(0) {}
18 
19 //
20 // Get last error
21 //
23 
24 const std::string& last_error::error() const { return m_last_error; }
std::string m_last_error
Definition: last_error.hpp:32
const std::string & error() const
Definition: last_error.cpp:24
u32 error_no() const
Definition: last_error.cpp:22
unsigned int u32
Definition: types.hpp:22