So I'm getting errors when there's a call to COALESCE with only a single 
parameter. (Why would we write code like that? - because nobody thought 
to spot it as a special case in our query generation code, perhaps.)

So what does the Firebird book say? - well, my copy appears to say

COALESCE (value 1> { , value 2 [, ...value n })

where {} indicates "mandatory", so it looks like there must be at least 
two parameters, so our query generation code is wrong.

Jolly good. So why am I pointing this out? (Other than that if the 
designer of the syntax for COALESCE had considered the possibility of 
machine-generated code they might have reached a different decision 
about the second parameter, or even the first, being mandatory?)

I'm just pointing out the typo in the book - there's no closing square 
bracket in that definition.

-- 
Tim Ward



------------------------------------

------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Visit http://www.firebirdsql.org and click the Documentation item
on the main (top) menu.  Try FAQ and other links from the left-side menu there.

Also search the knowledgebases at http://www.ibphoenix.com/resources/documents/ 

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
------------------------------------

Yahoo Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/firebird-support/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/firebird-support/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo Groups is subject to:
    https://info.yahoo.com/legal/us/yahoo/utos/terms/

Reply via email to