Subject | Re: [IBO] IBO bug: parameters ouside where clause produce wrong datatype |
---|---|
Author | Helen Borrie |
Post date | 2003-07-18T07:58:53Z |
Leon,
At 09:32 AM 18/07/2003 +0200, you wrote:
Helen
At 09:32 AM 18/07/2003 +0200, you wrote:
>Hi,Are you using Firebird 1.5?
>
>If I put parameters outside the WHERE clause (works perfectly in combination
>with firebird) IBO (latest build) messes up the parameters
>In this case mydate processes as "string" in stead of "date" and myEMployee
>processes as "date" in stead of "string"
>
>SELECT
> SUM( CASE WHEN date = :mydate THEN hours ELSE 0 END ) as TotalThisDay,
> SUM( hours ) as TotalThisWeek,
>FROM
> mytable
>WHERE
> employee = :myemployee
>AND
> date >= :myMonday and date <= :mySunday
Helen