Author: wyoung
Date: Wed Nov 28 02:42:03 2007
New Revision: 1886
URL: http://svn.gna.org/viewcvs/mysqlpp?rev=1886&view=rev
Log:
Removed pointless alias for ResUse::num_fields(), ResUse::columns()
Modified:
trunk/examples/multiquery.cpp
trunk/lib/result.h
Modified: trunk/examples/multiquery.cpp
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/examples/multiquery.cpp?rev=1886&r1=1885&r2=1886&view=diff
==============================================================================
--- trunk/examples/multiquery.cpp (original)
+++ trunk/examples/multiquery.cpp Wed Nov 28 02:42:03 2007
@@ -94,7 +94,7 @@
// Figure out the widths of the result set's columns
IntVectorType widths;
- int size = res.columns();
+ int size = res.num_fields();
for (int i = 0; i < size; i++) {
mysql_type_info mti(res.fields(i));
widths.push_back((res.names(i).size() > mti.max_length()) ?
Modified: trunk/lib/result.h
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/lib/result.h?rev=1886&r1=1885&r2=1886&view=diff
==============================================================================
--- trunk/lib/result.h (original)
+++ trunk/lib/result.h Wed Nov 28 02:42:03 2007
@@ -157,12 +157,6 @@
return result_;
}
- /// \brief Return the number of columns in the result set.
- unsigned int columns() const
- {
- return num_fields();
- }
-
/// \brief Get the name of table that the result set comes from.
std::string& table()
{
_______________________________________________
Mysqlpp-commits mailing list
[email protected]
https://mail.gna.org/listinfo/mysqlpp-commits