Author: wyoung
Date: Fri Jun 22 21:49:07 2007
New Revision: 1591

URL: http://svn.gna.org/viewcvs/mysqlpp?rev=1591&view=rev
Log:
Added Row::raw_size(), as a shortcut for Row::at().size().

Modified:
    trunk/lib/row.h

Modified: trunk/lib/row.h
URL: 
http://svn.gna.org/viewcvs/mysqlpp/trunk/lib/row.h?rev=1591&r1=1590&r2=1591&view=diff
==============================================================================
--- trunk/lib/row.h (original)
+++ trunk/lib/row.h Fri Jun 22 21:49:07 2007
@@ -158,6 +158,12 @@
        const char* raw_data(int i) const
        {
                return data_[i].data();
+       }
+
+       /// \brief Return the size of a field's raw data given its index.
+       std::string::size_type raw_size(int i) const
+       {
+               return data_[i].length();
        }
 
        /// \brief Return the value of a field as a C++ string given its


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

Reply via email to