diff options
-rw-r--r-- | odb/qt/date-time/mysql/qdate-time-traits.hxx | 4 | ||||
-rw-r--r-- | odb/qt/date-time/mysql/qdate-traits.hxx | 5 | ||||
-rw-r--r-- | odb/qt/date-time/mysql/qtime-traits.hxx | 4 |
3 files changed, 13 insertions, 0 deletions
diff --git a/odb/qt/date-time/mysql/qdate-time-traits.hxx b/odb/qt/date-time/mysql/qdate-time-traits.hxx index ac4c1a6..c3be3e1 100644 --- a/odb/qt/date-time/mysql/qdate-time-traits.hxx +++ b/odb/qt/date-time/mysql/qdate-time-traits.hxx @@ -61,6 +61,8 @@ namespace odb i.hour = static_cast<unsigned int> (t.hour ()); i.minute = static_cast<unsigned int> (t.minute ()); i.second = static_cast<unsigned int> (t.second ()); + + i.second_part = 0; } } }; @@ -111,6 +113,8 @@ namespace odb i.hour = static_cast<unsigned int> (t.hour ()); i.minute = static_cast<unsigned int> (t.minute ()); i.second = static_cast<unsigned int> (t.second ()); + + i.second_part = 0; } } }; diff --git a/odb/qt/date-time/mysql/qdate-traits.hxx b/odb/qt/date-time/mysql/qdate-traits.hxx index d3dc1f1..e41cc03 100644 --- a/odb/qt/date-time/mysql/qdate-traits.hxx +++ b/odb/qt/date-time/mysql/qdate-traits.hxx @@ -52,6 +52,11 @@ namespace odb i.year = static_cast<unsigned int> (v.year ()); i.month = static_cast<unsigned int> (v.month ()); i.day = static_cast<unsigned int> (v.day ()); + + i.hour = 0; + i.minute = 0; + i.second = 0; + i.second_part = 0; } } }; diff --git a/odb/qt/date-time/mysql/qtime-traits.hxx b/odb/qt/date-time/mysql/qtime-traits.hxx index b7cf84b..a6daf24 100644 --- a/odb/qt/date-time/mysql/qtime-traits.hxx +++ b/odb/qt/date-time/mysql/qtime-traits.hxx @@ -47,11 +47,15 @@ namespace odb is_null = false; i.neg = false; + i.year = 0; + i.month = 0; i.day = 0; i.hour = static_cast<unsigned int> (v.hour ()); i.minute = static_cast<unsigned int> (v.minute ()); i.second = static_cast<unsigned int> (v.second ()); + + i.second_part = 0; } } }; |