expression evaluation error in SQL select with case-statemnt

Discussion of open issues, suggestions and bugs regarding IBDAC (InterBase Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
mischerr
Posts: 3
Joined: Wed 09 Dec 2009 09:25

expression evaluation error in SQL select with case-statemnt

Post by mischerr » Mon 18 Jan 2010 09:49

Hi.

I'm getting a "Dynamic SQL Error expression evaluation not supported." when running the following SQL statement.

Code: Select all

select case when max(nummer) is null then 10000 else max(nummer)+1 end from kunden
While this was running fine using the old BDE I can only run a workaround changing the statement to:

Code: Select all

select case when max(nummer) is null then 9999 else max(nummer) end from kunden
... and then increment the result by code.

Any idea on this issue?

Michael

Using IBDAC 3.1, FB2.1

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Tue 19 Jan 2010 12:14

Please provide us a script for creating the table.

Post Reply