Author: mysqlpp
Date: Mon Dec 3 11:56:10 2007
New Revision: 1962
URL: http://svn.gna.org/viewcvs/mysqlpp?rev=1962&view=rev
Log:
Using MySQL++'s native ulonglong type insted of MySQL C API my_ulonglong
everywhere.
Modified:
trunk/Wishlist
trunk/lib/result.h
Modified: trunk/Wishlist
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/Wishlist?rev=1962&r1=1961&r2=1962&view=diff
==============================================================================
--- trunk/Wishlist (original)
+++ trunk/Wishlist Mon Dec 3 11:56:10 2007
@@ -35,8 +35,6 @@
o Add userman chapter on connection options
o Still mysql_*() stuff in Row at least. Check result module too.
-
- o Replace all my_ulonglong with ulonglong.
o Create an SSQLS base class containing all of the common
boilerplate, which leaf SSQLSes derive from. This should in turn
Modified: trunk/lib/result.h
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/lib/result.h?rev=1962&r1=1961&r2=1962&view=diff
==============================================================================
--- trunk/lib/result.h (original)
+++ trunk/lib/result.h Mon Dec 3 11:56:10 2007
@@ -329,7 +329,7 @@
virtual ~Result() { }
/// \brief Wraps mysql_num_rows() in MySQL C API.
- my_ulonglong num_rows() const
+ ulonglong num_rows() const
{
return initialized_ ? mysql_num_rows(result_.raw()) : 0;
}
@@ -393,8 +393,8 @@
}
/// \brief Initialize object
- ResNSel(bool copacetic, my_ulonglong insert_id,
- my_ulonglong rows, const std::string& info) :
+ ResNSel(bool copacetic, ulonglong insert_id,
+ ulonglong rows, const std::string& info) :
copacetic_(copacetic),
insert_id_(insert_id),
rows_(rows),
@@ -414,10 +414,10 @@
}
/// \brief Get the last value used for an AUTO_INCREMENT field
- my_ulonglong insert_id() const { return insert_id_; }
+ ulonglong insert_id() const { return insert_id_; }
/// \brief Get the number of rows affected by the query
- my_ulonglong rows() const { return rows_; }
+ ulonglong rows() const { return rows_; }
/// \brief Get any additional information about the query returned
/// by the server.
@@ -425,8 +425,8 @@
private:
bool copacetic_;
- my_ulonglong insert_id_;
- my_ulonglong rows_;
+ ulonglong insert_id_;
+ ulonglong rows_;
std::string info_;
};
_______________________________________________
Mysqlpp-commits mailing list
[email protected]
https://mail.gna.org/listinfo/mysqlpp-commits