Hi,

Thank you for providing a script, this is much easier comparing.
I can now reproduce the error you get.


Please enter a ticket with this script into the tracker, so they can fix this 
issue.

Enter these both queries, so they can quickly find the bug:

The query with the wrong results:

SELECT
  a.tnr, a.minb, coalesce(b.amount,0) as m
FROM
  t_main a
  left join t_stock b on (a.tnr = b.tnr)
WHERE
  ((a.minb > coalesce(b.amount,0)))


A workaround by ignoring use of index:

SELECT
  a.tnr, a.minb, coalesce(b.amount,0) as m
FROM
  t_main a
  left join t_stock b on (a.tnr = b.tnr || '')
WHERE
  ((a.minb > coalesce(b.amount,0)))


Kind Regards,
Arno


 
  • [firebird-support]... 'Checkmail' check_m...@satron.de [firebird-support]
    • Re: [firebird... Mark Rotteveel m...@lawinegevaar.nl [firebird-support]
      • AW: [fire... 'Checkmail' check_m...@satron.de [firebird-support]
        • AW: [... 'Checkmail' check_m...@satron.de [firebird-support]
          • R... Mark Rotteveel m...@lawinegevaar.nl [firebird-support]
          • R... 'Arno Brinkman' fbsupp...@abvisie.nl [firebird-support]
            • ... 'Checkmail' check_m...@satron.de [firebird-support]
              • ... 'Arno Brinkman' fbsupp...@abvisie.nl [firebird-support]
                • ... 'Checkmail' check_m...@satron.de [firebird-support]
                • ... 'Arno Brinkman' fbsupp...@abvisie.nl [firebird-support]

Reply via email to