Author: wyoung
Date: Thu May 19 22:47:22 2011
New Revision: 2692

URL: http://svn.gna.org/viewcvs/mysqlpp?rev=2692&view=rev
Log:
Fixed the "escape" manipulator so it will work with Null<> wrapped
types.  The "quote" manipulator already did the right thing, so copied
the way it does things.  Patch by "Kemet" <[email protected]>

Modified:
    trunk/lib/type_info.cpp

Modified: trunk/lib/type_info.cpp
URL: 
http://svn.gna.org/viewcvs/mysqlpp/trunk/lib/type_info.cpp?rev=2692&r1=2691&r2=2692&view=diff
==============================================================================
--- trunk/lib/type_info.cpp (original)
+++ trunk/lib/type_info.cpp Thu May 19 22:47:22 2011
@@ -252,7 +252,7 @@
 
 bool mysql_type_info::escape_q() const
 {
-       const type_info& ti = c_type();
+       const type_info& ti = base_type().c_type();
        return ti == typeid(string) ||
                        ti == typeid(sql_enum) ||
                        ti == typeid(sql_blob) ||


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

Reply via email to