aboutsummaryrefslogtreecommitdiff
path: root/odb/boost/date-time
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2013-02-07 14:35:53 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2013-02-07 14:35:53 +0200
commit23419030f7fa4cc96d0a086a6af87e7ef2e2ed18 (patch)
treeadd0b4938ea3551de3f9d7a3a68e0dce06b643c5 /odb/boost/date-time
parenteb11f097a6c68af3298f1d1b091725e5991dde36 (diff)
Initialize second_part which apparently is used by MariaDB
Diffstat (limited to 'odb/boost/date-time')
-rw-r--r--odb/boost/date-time/mysql/gregorian-traits.hxx5
-rw-r--r--odb/boost/date-time/mysql/posix-time-traits.hxx10
2 files changed, 15 insertions, 0 deletions
diff --git a/odb/boost/date-time/mysql/gregorian-traits.hxx b/odb/boost/date-time/mysql/gregorian-traits.hxx
index 0bbcb15..939fd29 100644
--- a/odb/boost/date-time/mysql/gregorian-traits.hxx
+++ b/odb/boost/date-time/mysql/gregorian-traits.hxx
@@ -51,6 +51,11 @@ namespace odb
i.year = v.year ();
i.month = v.month ();
i.day = v.day ();
+
+ i.hour = 0;
+ i.minute = 0;
+ i.second = 0;
+ i.second_part = 0;
}
}
};
diff --git a/odb/boost/date-time/mysql/posix-time-traits.hxx b/odb/boost/date-time/mysql/posix-time-traits.hxx
index 519dc83..9810aa5 100644
--- a/odb/boost/date-time/mysql/posix-time-traits.hxx
+++ b/odb/boost/date-time/mysql/posix-time-traits.hxx
@@ -63,6 +63,8 @@ namespace odb
i.hour = t.hours ();
i.minute = t.minutes ();
i.second = t.seconds ();
+
+ i.second_part = 0;
}
}
};
@@ -116,6 +118,8 @@ namespace odb
i.hour = t.hours ();
i.minute = t.minutes ();
i.second = t.seconds ();
+
+ i.second_part = 0;
}
}
};
@@ -160,10 +164,16 @@ namespace odb
{
is_null = false;
i.neg = v.is_negative ();
+
+ i.year = 0;
+ i.month = 0;
i.day = 0;
+
i.hour = std::abs (v.hours ());
i.minute = std::abs (v.minutes ());
i.second = std::abs (v.seconds ());
+
+ i.second_part = 0;
}
}
};