summaryrefslogtreecommitdiff
path: root/libmysqlpp/my-connection.h
diff options
context:
space:
mode:
Diffstat (limited to 'libmysqlpp/my-connection.h')
-rw-r--r--libmysqlpp/my-connection.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/libmysqlpp/my-connection.h b/libmysqlpp/my-connection.h
index f6acb39..fdc3e5a 100644
--- a/libmysqlpp/my-connection.h
+++ b/libmysqlpp/my-connection.h
@@ -2,6 +2,7 @@
#define MY_CONNECTION_H
#include <connection.h>
+#include <visibility.h>
#include "my-error.h"
#include <mysql.h>
#include <boost/shared_ptr.hpp>
@@ -14,7 +15,7 @@ namespace MySQL {
class LoadContext;
- class Connection : public DB::Connection {
+ class DLL_PUBLIC Connection : public DB::Connection {
public:
Connection(const std::string & info);
~Connection();
@@ -37,6 +38,9 @@ namespace MySQL {
mutable MYSQL conn;
+ protected:
+ Connection();
+
private:
my_bool my_true;