Posted By: giga Generated QBE is wrong - 06/20/05 12:12 PM
Hi, can you help me? I have oracle dataset and perform QBE.

This values are entered into fields:

CRCO: in ('*', 'B')
LM_LSTART: not 'LK*' and 'EP*'

Generated QBE:
Code
SELECT *
  FROM l_lety_main
 WHERE NOT (UPPER (LM_LSTART) LIKE 'LK%' OR UPPER (LM_LSTART) LIKE 'EP%')
    OR UPPER (LM_LSTART) IS NULL AND (UPPER (LM_CRCO) IN ('*', 'B'))
Problem is OR UPPER (LM_LSTART) IS NULL because, there is not parenthesis.

Correct SQL must be like:
Code
SELECT *
  FROM l_lety_main
 WHERE (   NOT (UPPER (LM_LSTART) LIKE 'LK%' OR UPPER (LM_LSTART) LIKE 'EP%')
        OR UPPER (LM_LSTART) IS NULL
       )
   AND (UPPER (LM_CRCO) IN ('*', 'B'))
Sorry my poor English.

DOA 4.0.6.2
DELPHI 6.0
Posted By: Marco Kalter Re: Generated QBE is wrong - 06/20/05 07:57 PM
This is indeed not correct. We'll fix it.

If you need a pre-release, let me know.
Posted By: giga Re: Generated QBE is wrong - 06/21/05 11:36 AM
Hi Marco,

thanks for your answer. Yes I need pre-release, because on another way I must write my own QBE SQL builder.

Can you tell me, is another way to test char "*" if "Allow file Widcards" is checked? Char "*" is not converted to "%" only during use of "in('*')" operator, I think.

Thanks for your support.
Posted By: Jens Fudickar Re: Generated QBE is wrong - 06/21/05 04:02 PM
Hi Marco,

any chance of a public pre release?

Or will there be a new version in the near future? I think you suggested it the last time for april.

Greetings and thanks
Jens
Posted By: Marco Kalter Re: Generated QBE is wrong - 06/21/05 06:56 PM
We don't have a date for 4.0.7 yet.
Posted By: giga Re: Generated QBE is wrong - 07/07/05 12:34 PM
Hi Marco!

Can you tell me, when will be pre-release with this bug fixed?

Greetings and thanks
Vlada
© Allround Automations forums