diff --git a/libs/libmysqlxx/include/mysqlxx/Manip.h b/libs/libmysqlxx/include/mysqlxx/Manip.h index 09f6464b710..ff071c8e64e 100644 --- a/libs/libmysqlxx/include/mysqlxx/Manip.h +++ b/libs/libmysqlxx/include/mysqlxx/Manip.h @@ -115,6 +115,19 @@ struct EscapeManipResult return ostr; } + template + std::ostream & operator<< (const Null & value) + { + if(value.is_null) + { + ostr << "\\N"; + } + else + { + *this << value.data; + } + return ostr ; + } private: @@ -183,6 +196,19 @@ public: ostr.put('\''); return ostr; } + template + std::ostream & operator<< (const Null & value) + { + if(value.is_null) + { + ostr << "\\N"; + } + else + { + *this << value.data; + } + return ostr ; + } private: