From 23419030f7fa4cc96d0a086a6af87e7ef2e2ed18 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 7 Feb 2013 14:35:53 +0200 Subject: Initialize second_part which apparently is used by MariaDB --- odb/boost/date-time/mysql/gregorian-traits.hxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'odb/boost/date-time/mysql/gregorian-traits.hxx') 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; } } }; -- cgit v1.1