#include <result.h>
Collaboration diagram for mysqlpp::SimpleResult:
Public Member Functions | |
SimpleResult () | |
Default ctor. | |
SimpleResult (bool copacetic, ulonglong insert_id, ulonglong rows, const std::string &info) | |
Initialize object. | |
operator private_bool_type () const | |
Test whether the query that created this result succeeded. | |
ulonglong | insert_id () const |
Get the last value used for an AUTO_INCREMENT field. | |
ulonglong | rows () const |
Get the number of rows affected by the query. | |
const char * | info () const |
Get any additional information about the query returned by the server. |
mysqlpp::SimpleResult::operator private_bool_type | ( | ) | const [inline] |
Test whether the query that created this result succeeded.
If you test this object in bool context and it's false, it's a signal that the query this was created from failed in some way. Call Query::error() or Query::errnum() to find out what exactly happened.