Author: wyoung
Date: Wed Nov 28 03:22:56 2007
New Revision: 1894
URL: http://svn.gna.org/viewcvs/mysqlpp?rev=1894&view=rev
Log:
ResUse::fetch_field() now returns const Field& instead of Field&.
Doesn't change anything in the build, and end user code isn't likely to
have a good reason to modify a field inside the result set.
Modified:
trunk/lib/result.h
Modified: trunk/lib/result.h
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/lib/result.h?rev=1894&r1=1893&r2=1894&view=diff
==============================================================================
--- trunk/lib/result.h (original)
+++ trunk/lib/result.h Wed Nov 28 03:22:56 2007
@@ -128,7 +128,7 @@
{ return mysql_fetch_lengths(result_); }
/// \brief Wraps mysql_fetch_field() in MySQL C API.
- Field& fetch_field() const { return *mysql_fetch_field(result_); }
+ const Field& fetch_field() const { return *mysql_fetch_field(result_); }
/// \brief Wraps mysql_field_seek() in MySQL C API.
void field_seek(int field) { mysql_field_seek(result_, field); }
_______________________________________________
Mysqlpp-commits mailing list
[email protected]
https://mail.gna.org/listinfo/mysqlpp-commits