Author: wyoung
Date: Thu Nov 15 18:08:12 2007
New Revision: 1855
URL: http://svn.gna.org/viewcvs/mysqlpp?rev=1855&view=rev
Log:
Made new RefCountedBuffer::assign() methods a little more general.
Modified:
trunk/lib/refcounted.cpp
trunk/lib/refcounted.h
Modified: trunk/lib/refcounted.cpp
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/lib/refcounted.cpp?rev=1855&r1=1854&r2=1855&view=diff
==============================================================================
--- trunk/lib/refcounted.cpp (original)
+++ trunk/lib/refcounted.cpp Thu Nov 15 18:08:12 2007
@@ -30,7 +30,7 @@
RefCountedBuffer&
RefCountedBuffer::assign(const char* data, size_type length,
- unsigned char type, bool is_null)
+ mysql_type_info type, bool is_null)
{
replace_buffer(data, length);
type_ = type;
@@ -39,7 +39,7 @@
}
RefCountedBuffer&
-RefCountedBuffer::assign(const std::string& s, unsigned char type,
+RefCountedBuffer::assign(const std::string& s, mysql_type_info type,
bool is_null)
{
replace_buffer(s.data(), s.length());
Modified: trunk/lib/refcounted.h
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/lib/refcounted.h?rev=1855&r1=1854&r2=1855&view=diff
==============================================================================
--- trunk/lib/refcounted.h (original)
+++ trunk/lib/refcounted.h Thu Nov 15 18:08:12 2007
@@ -232,12 +232,12 @@
/// \brief Replace contents of buffer with copy of given C string
RefCountedBuffer& assign(const char* data, size_type length,
- unsigned char type = mysql_type_info::string_type,
+ mysql_type_info type = mysql_type_info::string_type,
bool is_null = false);
/// \brief Replace contents of buffer with copy of given C++ string
RefCountedBuffer& assign(const std::string& s,
- unsigned char type = mysql_type_info::string_type,
+ mysql_type_info type = mysql_type_info::string_type,
bool is_null = false);
/// \brief Return pointer to raw data buffer
_______________________________________________
Mysqlpp-commits mailing list
[email protected]
https://mail.gna.org/listinfo/mysqlpp-commits