summaryrefslogtreecommitdiff
path: root/libmysqlpp/my-error.cpp
blob: 4867e0dc8aa48d0befa6e2e4c97c24450987bfa6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include "my-error.h"
#include <string.h>

MySQL::Error::Error(MYSQL * m) :
	msg(mysql_error(m))
{
}

MySQL::Error::Error(MYSQL_STMT * m) :
	msg(mysql_stmt_error(m))
{
}

std::string
MySQL::Error::message() const throw()
{
	return msg;
}