allowed keywords in filter expression

Discussion of open issues, suggestions and bugs regarding IBDAC (InterBase Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Dokkie
Posts: 43
Joined: Wed 08 Oct 2008 21:58

allowed keywords in filter expression

Post by Dokkie » Wed 08 Aug 2012 20:23

I'm trying to write a filter using one the following expressions:

exists (select taxid from tax where Itemseq = 1135)

IBDAC complains that 'exists' is not a field.

The following expression results in an illegal sql expression

TAXID IN (SELECT TAXID FROM TAX WHERE ITEMSEQ = 1135)

Is there a list of allowed keywords for the IBDAC filter statement?

ZEuS
Devart Team
Posts: 240
Joined: Thu 05 Apr 2012 07:32

Re: allowed keywords in filter expression

Post by ZEuS » Fri 10 Aug 2012 08:27

The Filter property does not support IN and EXISTS keywords. For more information about the syntax of the Filter property, please refer to the "Setting the Filter Property" article in the Delphi documentation. In addition, the LIKE, IS NULL and IS NOT NULL expressions are allowed in the Filter property in IBDAC.
In order to use the IN and EXISTS expressions to filter the TIBCTable contents, you should use the FilterSQL property instead of the Filter property. Please refer to the IBDAC documentation to get more information about the TIBCTable.FilterSQL property.

Dokkie
Posts: 43
Joined: Wed 08 Oct 2008 21:58

Re: allowed keywords in filter expression

Post by Dokkie » Fri 10 Aug 2012 16:58

In fact the Delphi documentation specifically gives an example of using the IN keyword in a filter.

Post Reply