diff options
Diffstat (limited to 'odb/mysql/connection.hxx')
-rw-r--r-- | odb/mysql/connection.hxx | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/odb/mysql/connection.hxx b/odb/mysql/connection.hxx index 0310ee6..6704f23 100644 --- a/odb/mysql/connection.hxx +++ b/odb/mysql/connection.hxx @@ -46,6 +46,19 @@ namespace odb } public: + bool + failed () const + { + return failed_; + } + + void + mark_failed () + { + failed_ = true; + } + + public: MYSQL* handle () { @@ -91,6 +104,7 @@ namespace odb private: database_type& db_; + bool failed_; MYSQL mysql_; MYSQL* handle_; |