bf0e4b3714
also move the header files to ${LOCALBASE}/include/mysql++
57 lines
1.6 KiB
Plaintext
57 lines
1.6 KiB
Plaintext
$OpenBSD: patch-sqlplusint_datetime_cc,v 1.1 2004/01/06 11:16:53 wilfried Exp $
|
|
--- sqlplusint/datetime.cc.orig 2001-05-19 18:44:48.000000000 +0200
|
|
+++ sqlplusint/datetime.cc 2004-01-04 23:27:18.000000000 +0100
|
|
@@ -7,39 +7,39 @@
|
|
#endif
|
|
|
|
#include "datetime3.hh"
|
|
-#include <iomanip.h>
|
|
+#include <iomanip>
|
|
|
|
-ostream& mysql_date::out_stream (ostream& s) const {
|
|
+std::ostream& mysql_date::out_stream (std::ostream& s) const {
|
|
char fill = s.fill('0');
|
|
#ifdef __USLC__
|
|
long flags = s.setf(ios::right);
|
|
#else
|
|
- ios::fmtflags flags = s.setf(ios::right);
|
|
+ std::ios::fmtflags flags = s.setf(std::ios::right);
|
|
#endif
|
|
- s << setw(4) << year << '-'
|
|
- << setw(2) << month << '-'
|
|
- << setw(2) << day;
|
|
+ s << std::setw(4) << year << '-'
|
|
+ << std::setw(2) << month << '-'
|
|
+ << std::setw(2) << day;
|
|
s.flags(flags);
|
|
s.fill(fill);
|
|
return s;
|
|
}
|
|
|
|
-ostream& mysql_time::out_stream (ostream& s) const {
|
|
+std::ostream& mysql_time::out_stream (std::ostream& s) const {
|
|
char fill = s.fill('0');
|
|
#ifdef __USLC__
|
|
- long flags = s.setf(ios::right);
|
|
+ long flags = s.setf(std::ios::right);
|
|
#else
|
|
- ios::fmtflags flags = s.setf(ios::right);
|
|
+ std::ios::fmtflags flags = s.setf(std::ios::right);
|
|
#endif
|
|
- s << setw(2) << hour << ':'
|
|
- << setw(2) << minute << ':'
|
|
- << setw(2) << second;
|
|
+ s << std::setw(2) << hour << ':'
|
|
+ << std::setw(2) << minute << ':'
|
|
+ << std::setw(2) << second;
|
|
s.flags(flags);
|
|
s.fill(fill);
|
|
return s;
|
|
}
|
|
|
|
-ostream& MysqlDateTime::out_stream (ostream& s) const {
|
|
+std::ostream& MysqlDateTime::out_stream (std::ostream& s) const {
|
|
mysql_date::out_stream(s);
|
|
s << " ";
|
|
mysql_time::out_stream(s);
|