Subject | Re: date conversion issue |
---|---|
Author | Milan Babuskov |
Post date | 2007-02-11T15:31:14Z |
--- d_dude_2003 wrote:
CURRENT_DATE - cast(:DeleteRawAttendance as integer)
--
Milan Babuskov
http://www.guacosoft.com
> I have the following statementWhere is it declared? Delphi?
>
> DELETE FROM HRM_ATTENDANCERAW
> WHERE HRM_ATTENDANCERAW.ADATE <
> CURRENT_DATE - :DeleteRawAttendance;
>
> DeleteRawAttendance is declared as INTEGER
> The statement results in conversion error.Do you get the error from Firebird or by your connectivity library?
> How do i correct it?Try:
CURRENT_DATE - cast(:DeleteRawAttendance as integer)
--
Milan Babuskov
http://www.guacosoft.com