Fixed CORE-4177 (only the simple test case reported in fb-devel) - Problem with some boolean expressions not being allowed.

git-svn-id: svn+ssh://svn.code.sf.net/p/firebird/code/firebird/trunk@58488 65644016-39b1-43b1-bf79-96bc8fe82c15