On 15 Sep 2011 at 18:21, Jay A. Kreibich <j...@kreibi.ch> wrote: > On Thu, Sep 15, 2011 at 11:13:57AM -0500, Puneet Kishor scratched on the wall: > >> While your suggested documentation won't harm, and will likely help, >> actually the above does suggest to me a short-circuit-ish kind of >> logic from the assertion that "The coalesce() function returns a >> copy of its first non-NULL argument." > > Why? It is a function call. One would expect all the parameters to > be evaluated, and then the function called. In almost all languages, > short-circuit evaluation is reserved for operators, not function > parameters.
Really? I'd like to think that if a parameter is not used due to the particular logic of the function, then it's not evaluated but I wouldn't go into court on that :-) -- Cheers -- Tim
_______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users