diff options
-rw-r--r-- | odb/boost/date-time/mysql/gregorian-traits.hxx | 1 | ||||
-rw-r--r-- | odb/boost/date-time/mysql/posix-time-traits.hxx | 4 |
2 files changed, 4 insertions, 1 deletions
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 (); } } }; |