Classes | |
struct | MSqlException |
struct | MSqlEnv |
struct | MSqlConnection |
simple MySQL login to database More... | |
struct | ColumnType |
column description More... | |
struct | SqlInd |
indicator variable More... | |
struct | SqlValue |
struct | BindPar |
struct | ColumnData |
struct | BindVector |
struct | SqlRecord |
a record to hold return columns for a given statement More... | |
struct | SqlResult |
struct | SqlQuery |
struct | SqlStatement |
a MySQL SQL statement More... | |
Typedefs | |
typedef std::vector< ColumnData > | ColumnVector |
Functions | |
static const char * | next_bind_variable (const char *p) |
void | mysqlpl_check_error (MYSQL *db) |
error handling functions | |
void | mysqlpl_check_error (MYSQL *db, int res) |
void | mysqlpl_check_error (MYSQL *db, my_bool b) |
typedef std::vector<ColumnData> MySqlPL::ColumnVector |
void MySqlPL::mysqlpl_check_error | ( | MYSQL * | db ) | [inline] |
error handling functions
Definition at line 138 of file mysqlpl.h.
References THROW_MYSQLPL_EXCEPTION.
Referenced by MySqlPL::MSqlConnection::commit(), MySqlPL::MSqlConnection::connect(), MySqlPL::SqlStatement::execute(), MySqlPL::SqlStatement::fetch(), MySqlPL::SqlStatement::prepare(), and MySqlPL::MSqlConnection::rollback().
{ unsigned int error = mysql_errno(db); if (error != 0) THROW_MYSQLPL_EXCEPTION(db); }
void MySqlPL::mysqlpl_check_error | ( | MYSQL * | db, |
my_bool | b | ||
) | [inline] |
Definition at line 156 of file mysqlpl.h.
References THROW_MYSQLPL_EXCEPTION.
{ if (b) { unsigned int error = mysql_errno(db); if (error != 0) THROW_MYSQLPL_EXCEPTION(db); } }
void MySqlPL::mysqlpl_check_error | ( | MYSQL * | db, |
int | res | ||
) | [inline] |
Definition at line 146 of file mysqlpl.h.
References THROW_MYSQLPL_EXCEPTION.
{ if (res) { unsigned int error = mysql_errno(db); if (error != 0) THROW_MYSQLPL_EXCEPTION(db); } }
static const char* MySqlPL::next_bind_variable | ( | const char * | p ) | [static] |
Definition at line 664 of file mysqlpl.cpp.
Referenced by MySqlPL::SqlStatement::create_bound_sql().
{ for(; *p; ++p) if (*p == '?') return p; // look for quotes and escape characters else if (*p == '\'') { while(*++p) if (*p=='\'' && *++p!='\'') break; } return NULL; }