Author: wyoung
Date: Sat Nov 10 03:03:09 2007
New Revision: 1839
URL: http://svn.gna.org/viewcvs/mysqlpp?rev=1839&view=rev
Log:
Added operator<<(ostream&, SQLTypeAdapter)
Modified:
trunk/lib/manip.cpp
Modified: trunk/lib/manip.cpp
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/lib/manip.cpp?rev=1839&r1=1838&r2=1839&view=diff
==============================================================================
--- trunk/lib/manip.cpp (original)
+++ trunk/lib/manip.cpp Sat Nov 10 03:03:09 2007
@@ -115,6 +115,21 @@
}
+/// \brief Inserts a SQLTypeAdapter into a non-Query stream.
+///
+/// Although we know how to quote and escape SQLTypeAdapter objects, we
+/// only do that when inserting them into Query streams or when given an
+/// explicit manipulator because this feature is only intended to make
+/// it easier to build syntactically-correct SQL queries.
+
+ostream&
+operator <<(ostream& o, const SQLTypeAdapter& in)
+{
+ o.write(in.data(), in.length());
+ return o;
+}
+
+
/// \brief Inserts a ColData into a non-Query stream.
///
/// Although we know how to automatically quote and escape ColData
_______________________________________________
Mysqlpp-commits mailing list
[email protected]
https://mail.gna.org/listinfo/mysqlpp-commits