From a8d62d83dbd31a7efa841304550a8de397e66e25 Mon Sep 17 00:00:00 2001 From: dimitr Date: Mon, 25 Aug 2008 07:02:17 +0000 Subject: [PATCH] Correction by Dmitry Kovalenko. --- src/common/classes/timestamp.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/common/classes/timestamp.cpp b/src/common/classes/timestamp.cpp index bfd7e43e96..ac93c8d45c 100644 --- a/src/common/classes/timestamp.cpp +++ b/src/common/classes/timestamp.cpp @@ -279,7 +279,9 @@ void TimeStamp::encode(const struct tm* times, int fractions) // Decode timestamp into UNIX datetime structure void TimeStamp::decode(struct tm* times, int* fractions) const { - fb_assert(!isEmpty()); + fb_assert(mValue.timestamp_date != BAD_DATE); + fb_assert(mValue.timestamp_time != BAD_TIME); + decode_timestamp(mValue, times, fractions); }