Author: wyoung
Date: Wed Feb 28 15:46:34 2007
New Revision: 1432

URL: http://svn.gna.org/viewcvs/mysqlpp?rev=1432&view=rev
Log:
Reverted Korolyov Ilya's recent Row optimization patch.  It breaks
queries.

Modified:
    trunk/ChangeLog
    trunk/lib/row.cpp

Modified: trunk/ChangeLog
URL: 
http://svn.gna.org/viewcvs/mysqlpp/trunk/ChangeLog?rev=1432&r1=1431&r2=1432&view=diff
==============================================================================
--- trunk/ChangeLog (original)
+++ trunk/ChangeLog Wed Feb 28 15:46:34 2007
@@ -10,10 +10,6 @@
 
        o Fixed a bug in the Connection copy ctor where it didn't
          completely initialize the object.
-
-       o Minor speed optimizations in the Row() ctor that copies
-         data from a MYSQL_ROW structure, and in Row::size().
-         Patch by Korolyov Ilya.
 
        o Optimized Query::preview_char() a bit.  Patch by Jonathan
          Wakely.

Modified: trunk/lib/row.cpp
URL: 
http://svn.gna.org/viewcvs/mysqlpp/trunk/lib/row.cpp?rev=1432&r1=1431&r2=1432&view=diff
==============================================================================
--- trunk/lib/row.cpp (original)
+++ trunk/lib/row.cpp Wed Feb 28 15:46:34 2007
@@ -49,8 +49,7 @@
        is_nulls_.clear();
        initialized_ = true;
 
-       size_type num_fields = size();
-       for (size_type i = 0; i < num_fields; ++i) {
+       for (size_type i = 0; i < size(); ++i) {
                data_.insert(data_.end(),
                                (d[i] ?  std::string(d[i], jj[i]) : 
std::string("NULL")));
                is_nulls_.insert(is_nulls_.end(), d[i] ? false : true);
@@ -68,7 +67,7 @@
 
 Row::size_type Row::size() const
 {
-       return data_.size();
+       return res_->num_fields();
 }
 
 const ColData Row::at(size_type i) const


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

Reply via email to