8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-24 06:43:03 +01:00

Correction by Dmitry Kovalenko.

This commit is contained in:
dimitr 2008-08-25 07:02:17 +00:00
parent 6520ff8f9c
commit a8d62d83db

View File

@ -279,7 +279,9 @@ void TimeStamp::encode(const struct tm* times, int fractions)
// Decode timestamp into UNIX datetime structure // Decode timestamp into UNIX datetime structure
void TimeStamp::decode(struct tm* times, int* fractions) const 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); decode_timestamp(mValue, times, fractions);
} }