aboutsummaryrefslogtreecommitdiff
path: root/odb/qt/date-time/oracle/qtime-traits.hxx
diff options
context:
space:
mode:
authorConstantin Michael <constantin@codesynthesis.com>2011-11-15 11:44:16 +0200
committerConstantin Michael <constantin@codesynthesis.com>2011-11-15 11:44:16 +0200
commitd59ac6134105611fb8d0d2349f0acf720c88e7d6 (patch)
treef51764f42cc98ce59cecc1e4be81ac2537258cad /odb/qt/date-time/oracle/qtime-traits.hxx
parenta926388f73aed90d1aa9743d32ed4c049af6bf84 (diff)
Correct second precision handling
Diffstat (limited to 'odb/qt/date-time/oracle/qtime-traits.hxx')
-rw-r--r--odb/qt/date-time/oracle/qtime-traits.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/odb/qt/date-time/oracle/qtime-traits.hxx b/odb/qt/date-time/oracle/qtime-traits.hxx
index b56bad5..7692779 100644
--- a/odb/qt/date-time/oracle/qtime-traits.hxx
+++ b/odb/qt/date-time/oracle/qtime-traits.hxx
@@ -37,7 +37,7 @@ namespace odb
sb4 d (0), h (0), m (0), s (0), ns (0);
i.get (d, h, m, s, ns);
- v.setHMS (h, m, s, ns / 1000);
+ v.setHMS (h, m, s, ns / 1000000);
}
}
@@ -50,7 +50,7 @@ namespace odb
{
is_null = false;
- i.set (0, v.hour (), v.minute (), v.second (), v.msec () * 1000);
+ i.set (0, v.hour (), v.minute (), v.second (), v.msec () * 1000000);
}
}
};