libmysqlxx/ updates for null type values support

This commit is contained in:
Evgeniy Gatov 2011-05-19 06:14:54 +00:00
parent 6dbc33abcf
commit fe6f7e0c6b

View File

@ -115,6 +115,19 @@ struct EscapeManipResult
return ostr;
}
template <typename T>
std::ostream & operator<< (const Null<T> & value)
{
if(value.is_null)
{
ostr << "\\N";
}
else
{
*this << value.data;
}
return ostr ;
}
private:
@ -183,6 +196,19 @@ public:
ostr.put('\'');
return ostr;
}
template <typename T>
std::ostream & operator<< (const Null<T> & value)
{
if(value.is_null)
{
ostr << "\\N";
}
else
{
*this << value.data;
}
return ostr ;
}
private: