Author: wyoung
Date: Fri Jul 13 07:08:23 2007
New Revision: 1695
URL: http://svn.gna.org/viewcvs/mysqlpp?rev=1695&view=rev
Log:
Removed overloads of Query::execute(), store(), and use() that take only
a const char*. This is only an ABI change: code that relied on these
being available will just call the versions taking a single SQLString,
which is what happened before, indirectly.
Modified:
trunk/Wishlist
trunk/lib/query.cpp
trunk/lib/query.h
Modified: trunk/Wishlist
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/Wishlist?rev=1695&r1=1694&r2=1695&view=diff
==============================================================================
--- trunk/Wishlist (original)
+++ trunk/Wishlist Fri Jul 13 07:08:23 2007
@@ -105,9 +105,6 @@
o Apply Waba's patch allowing Null<T> fields in SSQLSes:
http://lists.mysql.com/plusplus/5433
-
- o Remove simple const char* version of Query::execute(), store(),
- and use(). The ones taking SQLString will work transparently.
o manip.cpp uses mysql_escape_string(), which doesn't take the
selected database's character set into account. To do that, you
Modified: trunk/lib/query.cpp
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/lib/query.cpp?rev=1695&r1=1694&r2=1695&view=diff
==============================================================================
--- trunk/lib/query.cpp (original)
+++ trunk/lib/query.cpp Fri Jul 13 07:08:23 2007
@@ -114,13 +114,6 @@
// Take s to be the entire query string
return execute(s.data(), s.length());
}
-}
-
-
-ResNSel
-Query::execute(const char* str)
-{
- return execute(SQLString(str));
}
@@ -406,13 +399,6 @@
Result
-Query::store(const char* str)
-{
- return store(SQLString(str));
-}
-
-
-Result
Query::store(const char* str, size_t len)
{
if (!lock()) {
@@ -547,13 +533,6 @@
ResUse
-Query::use(const char* str)
-{
- return use(SQLString(str));
-}
-
-
-ResUse
Query::use(const char* str, size_t len)
{
if (!lock()) {
Modified: trunk/lib/query.h
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/lib/query.h?rev=1695&r1=1694&r2=1695&view=diff
==============================================================================
--- trunk/lib/query.h (original)
+++ trunk/lib/query.h Fri Jul 13 07:08:23 2007
@@ -264,11 +264,6 @@
/// takes the string as a complete SQL query and executes it.
ResNSel execute(const SQLString& str);
- /// \brief Execute query in a C string
- ///
- /// Executes the query immediately, and returns the results.
- ResNSel execute(const char* str);
-
/// \brief Execute query in a known-length string of characters.
/// This can include null characters.
///
@@ -308,13 +303,6 @@
/// sequence. This is more memory-efficient than store().
ResUse use(const SQLString& str);
- /// \brief Execute query in a C string
- ///
- /// Executes the query immediately, and returns an object that
- /// lets you walk through the result set one row at a time, in
- /// sequence. This is more memory-efficient than store().
- ResUse use(const char* str);
-
/// \brief Execute query in a known-length C string
///
/// Executes the query immediately, and returns an object that
@@ -351,13 +339,6 @@
/// contains the entire result set. This is less memory-efficient
/// than use(), but it lets you have random access to the results.
Result store(const SQLString& str);
-
- /// \brief Execute query in a C string
- ///
- /// Executes the query immediately, and returns an object that
- /// contains the entire result set. This is less memory-efficient
- /// than use(), but it lets you have random access to the results.
- Result store(const char* str);
/// \brief Execute query in a known-length C string
///
_______________________________________________
Mysqlpp-commits mailing list
[email protected]
https://mail.gna.org/listinfo/mysqlpp-commits