From 4503191a037be58e769613281f90efa5310e547e Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 5 Feb 2013 16:03:38 +0200 Subject: Initialize the sign member of MYSQL_TIME image --- odb/qt/date-time/mysql/qdate-time-traits.hxx | 2 ++ odb/qt/date-time/mysql/qdate-traits.hxx | 1 + odb/qt/date-time/mysql/qtime-traits.hxx | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/odb/qt/date-time/mysql/qdate-time-traits.hxx b/odb/qt/date-time/mysql/qdate-time-traits.hxx index 8e09251..ac4c1a6 100644 --- a/odb/qt/date-time/mysql/qdate-time-traits.hxx +++ b/odb/qt/date-time/mysql/qdate-time-traits.hxx @@ -50,6 +50,7 @@ namespace odb throw odb::qt::date_time::value_out_of_range (); is_null = false; + i.neg = false; const QDate& d (v.date ()); i.year = static_cast (d.year ()); @@ -99,6 +100,7 @@ namespace odb throw odb::qt::date_time::value_out_of_range (); is_null = false; + i.neg = false; const QDate& d (v.date ()); i.year = static_cast (d.year ()); diff --git a/odb/qt/date-time/mysql/qdate-traits.hxx b/odb/qt/date-time/mysql/qdate-traits.hxx index 716cc7f..d3dc1f1 100644 --- a/odb/qt/date-time/mysql/qdate-traits.hxx +++ b/odb/qt/date-time/mysql/qdate-traits.hxx @@ -47,6 +47,7 @@ namespace odb else { is_null = false; + i.neg = false; i.year = static_cast (v.year ()); i.month = static_cast (v.month ()); diff --git a/odb/qt/date-time/mysql/qtime-traits.hxx b/odb/qt/date-time/mysql/qtime-traits.hxx index ce277f0..b7cf84b 100644 --- a/odb/qt/date-time/mysql/qtime-traits.hxx +++ b/odb/qt/date-time/mysql/qtime-traits.hxx @@ -45,8 +45,8 @@ namespace odb else { is_null = false; - i.neg = false; + i.day = 0; i.hour = static_cast (v.hour ()); -- cgit v1.1