09.05.2014 15:37, Dmitry Yemanov wrote: > Looking at the code, the problem is that the first successfully matched > WHEN block clears the status vector, so only WHEN ANY can be matched > after that. And this code (inherited from InterBase) seems to be written > intentionally.
BTW, this is not the only problem in current code with exception handlers. Because BlockNode::handlers became a class, conditions like "if (handlers)" is always true now, even if handlers->statements->count == 0. It causes unnecessary code execution and may be have other side effects. -- WBR, SD. ------------------------------------------------------------------------------ Is your legacy SCM system holding you back? Join Perforce May 7 to find out: • 3 signs your SCM is hindering your productivity • Requirements for releasing software faster • Expert tips and advice for migrating your SCM now http://p.sf.net/sfu/perforce Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel