From 8a19e7ade59bc8a89a54c6192e0a78987d37c692 Mon Sep 17 00:00:00 2001 From: asfernandes Date: Sun, 4 Aug 2013 19:39:13 +0000 Subject: [PATCH] Fixed CORE-4156 - RDB$GET_CONTEXT/RDB$SET_CONTEXT parameters incorrectly described as CHAR NOT NULL instead of VARCHAR NULLABLE. --- src/jrd/SysFunction.cpp | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/jrd/SysFunction.cpp b/src/jrd/SysFunction.cpp index 4796e2c08b..e4b1b0d092 100644 --- a/src/jrd/SysFunction.cpp +++ b/src/jrd/SysFunction.cpp @@ -375,13 +375,22 @@ void setParamsDateDiff(DataTypeUtilBase*, const SysFunction*, int argsCount, dsc void setParamsGetSetContext(DataTypeUtilBase*, const SysFunction*, int argsCount, dsc** args) { if (argsCount >= 1 && args[0]->isUnknown()) - args[0]->makeText(80, ttype_none); + { + args[0]->makeVarying(80, ttype_none); + args[0]->setNullable(true); + } if (argsCount >= 2 && args[1]->isUnknown()) - args[1]->makeText(80, ttype_none); + { + args[1]->makeVarying(80, ttype_none); + args[1]->setNullable(true); + } if (argsCount >= 3 && args[2]->isUnknown()) - args[2]->makeText(255, ttype_none); + { + args[2]->makeVarying(255, ttype_none); + args[2]->setNullable(true); + } }