Icon View Thread

The following is the text of the current message along with any replies.
Messages 11 to 11 of 11 total
Thread Passing lists of items as a param
Thu, Dec 12 2013 3:58 AMPermanent Link

Uli Becker

Peter,

> This fails:
> WHERE ("R"."Resource" IN (' + (ResourceList) + '))
>   AND (CAST("R"."StartDT", DATE) BETWEEN ? AND ?)';
>   PREPARE Stmt FROM SQLStatement;
>   OPEN Result USING ResourceList, DateFrom, DateTo;

That's wrong:

USING ResourceList, DateFrom, DateTo

It has to be:

USING DateFrom, DateTo;

Otherwise EDB tries to use "RecourseList" for the first ? param and
that's a DATE type.

In the second query EDB just skips the param because it's at the end.

Uli
« Previous PagePage 2 of 2
Jump to Page:  1 2
Image