From fa7c954409d6fa27440d965797f14c6c01397aee Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 5 Feb 2013 16:03:38 +0200 Subject: Initialize the sign member of MYSQL_TIME image --- odb/boost/date-time/mysql/gregorian-traits.hxx | 1 + odb/boost/date-time/mysql/posix-time-traits.hxx | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/odb/boost/date-time/mysql/gregorian-traits.hxx b/odb/boost/date-time/mysql/gregorian-traits.hxx index e741fab..0bbcb15 100644 --- a/odb/boost/date-time/mysql/gregorian-traits.hxx +++ b/odb/boost/date-time/mysql/gregorian-traits.hxx @@ -47,6 +47,7 @@ namespace odb else { is_null = false; + i.neg = false; i.year = v.year (); i.month = v.month (); i.day = v.day (); diff --git a/odb/boost/date-time/mysql/posix-time-traits.hxx b/odb/boost/date-time/mysql/posix-time-traits.hxx index df79cef..519dc83 100644 --- a/odb/boost/date-time/mysql/posix-time-traits.hxx +++ b/odb/boost/date-time/mysql/posix-time-traits.hxx @@ -52,6 +52,7 @@ namespace odb else { is_null = false; + i.neg = false; const date& d (v.date ()); i.year = d.year (); @@ -104,6 +105,7 @@ namespace odb else { is_null = false; + i.neg = false; const date& d (v.date ()); i.year = d.year (); @@ -157,11 +159,11 @@ namespace odb else { is_null = false; + i.neg = v.is_negative (); i.day = 0; i.hour = std::abs (v.hours ()); i.minute = std::abs (v.minutes ()); i.second = std::abs (v.seconds ()); - i.neg = v.is_negative (); } } }; -- cgit v1.1