Author: wyoung
Date: Tue Mar 14 03:54:00 2006
New Revision: 1252

URL: http://svn.gna.org/viewcvs/mysqlpp?rev=1252&view=rev
Log:
Added "MYSQLPP_EXPORT" declarations to new Transaction class functions,
so they work on Windows in DLLs.

Modified:
    branches/v2.1-bakefile/lib/transaction.h

Modified: branches/v2.1-bakefile/lib/transaction.h
URL: 
http://svn.gna.org/viewcvs/mysqlpp/branches/v2.1-bakefile/lib/transaction.h?rev=1252&r1=1251&r2=1252&view=diff
==============================================================================
--- branches/v2.1-bakefile/lib/transaction.h (original)
+++ branches/v2.1-bakefile/lib/transaction.h Tue Mar 14 03:54:00 2006
@@ -46,7 +46,7 @@
        /// \param consistent Whether to use "consistent snapshots" during
        /// the transaction. See the documentation for "START TRANSACTION"
        /// in the MySQL manual for more on this.
-       Transaction(Connection& conn, bool consistent = false);
+       MYSQLPP_EXPORT Transaction(Connection& conn, bool consistent = false);
 
        /// \brief Destructor
        ///
@@ -56,7 +56,7 @@
        /// being destroyed as the stack is unwound to handle an exception.
        /// In that instance, you certainly want to roll back the
        /// transaction.
-       ~Transaction();
+       MYSQLPP_EXPORT ~Transaction();
 
        /// \brief Commits the transaction
        ///
@@ -65,7 +65,7 @@
        /// no-op if the table isn't stored using a transaction-aware
        /// storage engine.  See CREATE TABLE in the MySQL manual for
        /// details.
-       void commit();
+       MYSQLPP_EXPORT void commit();
 
        /// \brief Rolls back the transaction
        ///
@@ -73,7 +73,7 @@
        /// this object was created.  This only works on tables stored using
        /// a transaction-aware storage engine.  See CREATE TABLE in the
        /// MySQL manual for details.
-       void rollback();
+       MYSQLPP_EXPORT void rollback();
 
 private:
        Connection& conn_;      ///! Connection to send queries through


_______________________________________________
Mysqlpp-commits mailing list
[email protected]
https://mail.gna.org/listinfo/mysqlpp-commits

Reply via email to