Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#115 DatabaseLayer FirebirdResultSet SetDateTimeFromTm invalid

open
nobody
any (18)
5
2012-12-15
2010-04-11
Anonymous
No

FirebirdResultSet::SetDateTimeFromTm
Setting with struct tm& timeInTm causes an assert because of the following
dateReturn.Set(..., timeInTm.tm_year + 1900
It adds 1900 to an absent date so day = 0, month = 0, year = 1900 causing an assert.

Discussion