The Battle for Wesnoth
1.15.8+dev
modules
mariadbpp
src
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
//
22
u32
last_error::error_no
()
const
{
return
m_last_error_no
; }
23
24
const
std::string
&
last_error::error
()
const
{
return
m_last_error
; }
mariadb::last_error::m_last_error_no
u32 m_last_error_no
Definition:
last_error.hpp:31
mariadb
Definition:
account.hpp:18
mariadb::last_error::last_error
last_error()
Definition:
last_error.cpp:17
mariadb::last_error::m_last_error
std::string m_last_error
Definition:
last_error.hpp:32
mariadb::last_error::error
const std::string & error() const
Definition:
last_error.cpp:24
mariadb::value::string
Definition:
types.hpp:51
last_error.hpp
mariadb::last_error::error_no
u32 error_no() const
Definition:
last_error.cpp:22
mariadb::u32
unsigned int u32
Definition:
types.hpp:22
Generated by
1.8.13