Subject | Re: [IBO] Filter |
---|---|
Author | Helen Borrie |
Post date | 2007-09-19T12:34:53Z |
At 10:08 PM 19/09/2007, you wrote:
before. What does the monitor show when you apply the original
syntax but with the qualifier added to the operand?
Helen
>Hi Helen, thanks for your reply!OK, then lack of outer parens wasn't what it was complaining about
>
> My sql statement is just like this:
>
> SELECT XX.ID, XX.STATE, XX.CUSTOMER_NAME
> FROM CUSTOMER_TABLE XX
> WHERE XX.STATE = 'CA'
>
> After this, I apply the filter. I put the parenthesis as you told
>me, but IBO parsed a wrong sql statement.
>
> My filter: (UPPER(XX.CUSTOMER_NAME) LIKE 'HELEN%')
>
> So, when I apply the filter, I got this sql:
>
> SELECT XX.ID, XX.STATE, XX.CUSTOMER_NAME
> FROM CUSTOMER_TABLE XX
> WHERE XX.STATE = 'CA'
> AND (UPPER(XX.CUSTOMER_NAME) AND LIKE 'HELEN%')
>
> What is wrong because there's an extra "and" in the middle. I think
>the whole problem is located at TIB_Dataset.ProcessSQLWhereStrings,
>but who knows?
before. What does the monitor show when you apply the original
syntax but with the qualifier added to the operand?
Helen