SQL Case Support

Posts   
 
    
ScottCate
User
Posts: 48
Joined: 11-May-2005
# Posted on: 04-Nov-2006 02:10:22   
ScottCate
User
Posts: 48
Joined: 11-May-2005
# Posted on: 04-Nov-2006 02:13:34   

Sorry, this should have been posted in the Architecture forum, not Bugs/Issues.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39749
Joined: 17-Aug-2003
# Posted on: 04-Nov-2006 10:57:05   

ScottCate wrote:

Sorry, this should have been posted in the Architecture forum, not Bugs/Issues.

done simple_smile

And to answer your question: CASE Isn't implemented as it's data-consumer oriented. If you want to have a CASE statement which selects a or b based on a NULL value, you could use DbFunctionCall and COALESCE, but IMHO, you should solve case statements in the data consuming side.

Frans Bouma | Lead developer LLBLGen Pro
Posts: 1263
Joined: 10-Mar-2006
# Posted on: 16-Nov-2006 05:56:19   

Really would like to have this support though. Would like to sort on a case statement, cannot solve that on data consuming side.

Maybe you can roll support for this in along with the CAST and other such functions that are not supported yet....

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39749
Joined: 17-Aug-2003
# Posted on: 16-Nov-2006 07:57:32   

The problem with implementing support for case is that it will be an awkward construct I'm afraid, as in: verbose lines of code. The functions you talk about are something else, that's a different feature.

Frans Bouma | Lead developer LLBLGen Pro
Posts: 1263
Joined: 10-Mar-2006
# Posted on: 16-Nov-2006 15:20:20   

If you can pull it off, would love to have the ability - I know it is on your list and you know people want it - so I will leave you alone... simple_smile

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39749
Joined: 17-Aug-2003
# Posted on: 16-Nov-2006 15:33:00   

WayneBrantley wrote:

If you can pull it off, would love to have the ability - I know it is on your list and you know people want it - so I will leave you alone... simple_smile

simple_smile

Frans Bouma | Lead developer LLBLGen Pro