8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 22:43:03 +01:00

Fixed CORE-5367 - Regression: (boolean) parameters as search condition no longer allowed.

This commit is contained in:
Adriano dos Santos Fernandes 2016-10-04 11:50:43 -03:00
parent 19788ff96d
commit 8a4b7e3b79

View File

@ -451,7 +451,7 @@ BoolExprNode* ComparativeBoolNode::dsqlPass(DsqlCompilerScratch* dsqlScratch)
dsc desc;
MAKE_desc(dsqlScratch, &desc, node->arg1);
if (desc.dsc_dtype != dtype_boolean && !desc.isNull())
if (desc.dsc_dtype != dtype_boolean && desc.dsc_dtype != dtype_unknown && !desc.isNull())
{
ERRD_post(Arg::Gds(isc_sqlerr) << Arg::Num(-104) <<
Arg::Gds(isc_invalid_boolean_usage));