openbsd-ports/devel/mysql++/patches/patch-sqlplusint_manip_cc
wilfried bf0e4b3714 a few gcc3 patches
also move the header files to ${LOCALBASE}/include/mysql++
2004-01-06 11:16:53 +00:00

31 lines
1.3 KiB
Plaintext

$OpenBSD: patch-sqlplusint_manip_cc,v 1.1 2004/01/06 11:16:53 wilfried Exp $
--- sqlplusint/manip.cc.orig 2001-05-19 18:44:48.000000000 +0200
+++ sqlplusint/manip.cc 2004-01-05 00:04:07.000000000 +0100
@@ -1,6 +1,8 @@
#include "manip3.hh"
+using namespace std;
+
// quote manipulator
bool dont_quote_auto=false;
@@ -75,7 +77,7 @@ ostream& operator << (quote_type1 o, con
}
ostream& operator << (ostream& o, const mysql_ColData<string>& in) {
- if (dont_quote_auto || (o.rdbuf() == cout.rdbuf()) || (o.rdbuf() == cerr.rdbuf())) return o << in.get_string();
+ if (dont_quote_auto || (o.rdbuf() == std::cout.rdbuf()) || (o.rdbuf() == std::cerr.rdbuf())) return o << in.get_string();
if (in.escape_q()) {
char *s = new char[in.size()*2+1];
mysql_escape_string(s, const_cast<char *>(in.c_str()), in.size() );
@@ -94,7 +96,7 @@ ostream& operator << (ostream& o, const
ostream& operator << (ostream& o, const mysql_ColData<const_string>& in) {
- if (dont_quote_auto || (o.rdbuf() == cout.rdbuf()) || (o.rdbuf() == cerr.rdbuf())) return o << in.get_string();
+ if (dont_quote_auto || (o.rdbuf() == std::cout.rdbuf()) || (o.rdbuf() == std::cerr.rdbuf())) return o << in.get_string();
if (in.escape_q()) {
char *s = new char[in.size()*2+1];
mysql_escape_string(s, const_cast<char *>(in.c_str()), in.size() );