The Battle for Wesnoth  1.15.3+dev
Macros
connection.cpp File Reference
#include <mysql.h>
#include <mariadb++/connection.hpp>
#include "private.hpp"
Include dependency graph for connection.cpp:

Go to the source code of this file.

Macros

#define MYSQL_ERROR_DISCONNECT(mysql)
 

Macro Definition Documentation

◆ MYSQL_ERROR_DISCONNECT

#define MYSQL_ERROR_DISCONNECT (   mysql)
Value:
{ \
m_last_error_no = mysql_errno(mysql); \
m_last_error = mysql_error(mysql); \
disconnect(); \
MARIADB_ERROR(m_last_error_no, m_last_error); \
}

Definition at line 17 of file connection.cpp.

Referenced by mariadb::connection::connect().