Author: mysqlpp
Date: Wed Oct 29 03:53:24 2008
New Revision: 2387
URL: http://svn.gna.org/viewcvs/mysqlpp?rev=2387&view=rev
Log:
Recent support for Null<String> in SQLTypeAdapter truncated data at the
first embedded null character. Fixed.
Modified:
trunk/lib/stadapter.cpp
Modified: trunk/lib/stadapter.cpp
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/lib/stadapter.cpp?rev=2387&r1=2386&r2=2387&view=diff
==============================================================================
--- trunk/lib/stadapter.cpp (original)
+++ trunk/lib/stadapter.cpp Wed Oct 29 03:53:24 2008
@@ -69,7 +69,9 @@
}
SQLTypeAdapter::SQLTypeAdapter(const Null<String>& str, bool processed) :
-buffer_(new SQLBuffer(str.is_null ? null_str : str.data.data(),
+buffer_(new SQLBuffer(
+ str.is_null ? null_str.c_str() : str.data.data(),
+ str.is_null ? null_str.length() : str.data.length(),
str.is_null ? typeid(void) : typeid(str.data), str.is_null)),
is_processed_(processed)
{
_______________________________________________
Mysqlpp-commits mailing list
[email protected]
https://mail.gna.org/listinfo/mysqlpp-commits