aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2013-02-05 16:03:38 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2013-02-05 16:03:38 +0200
commitfa7c954409d6fa27440d965797f14c6c01397aee (patch)
treec73b05c1743891181fb9eaf3d8a1fc49b3819ce4
parent1b88d6afa7839d087e5fc252195c5c4f60475e9f (diff)
Initialize the sign member of MYSQL_TIME image
-rw-r--r--odb/boost/date-time/mysql/gregorian-traits.hxx1
-rw-r--r--odb/boost/date-time/mysql/posix-time-traits.hxx4
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 ();
}
}
};