Author: mysqlpp
Date: Sun Dec  2 13:57:19 2007
New Revision: 1940

URL: http://svn.gna.org/viewcvs/mysqlpp?rev=1940&view=rev
Log:
Added Query::exec(void), paralleing Query::execute(void)

Modified:
    trunk/lib/query.h

Modified: trunk/lib/query.h
URL: 
http://svn.gna.org/viewcvs/mysqlpp/trunk/lib/query.h?rev=1940&r1=1939&r2=1940&view=diff
==============================================================================
--- trunk/lib/query.h (original)
+++ trunk/lib/query.h Sun Dec  2 13:57:19 2007
@@ -297,6 +297,18 @@
        /// this object holds, if any
        std::string str(SQLQueryParms& p);
 
+       /// \brief Execute a built-up query
+       ///
+       /// Same as exec(), except that it uses the query string built up
+       /// within the query object already instead of accepting a query
+       /// string from the caller.
+       ///
+       /// \return true if query was executed successfully
+       ///
+       /// \sa exec(const std::string& str), execute(), store(),
+       /// storein(), and use()
+       bool exec() { return exec(str(template_defaults)); }
+
        /// \brief Execute a query
        ///
        /// Same as execute(), except that it only returns a flag indicating


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

Reply via email to