diff --git a/src/dsql/gen.cpp b/src/dsql/gen.cpp index 18b5eed0ba..3d1c2b9ea5 100644 --- a/src/dsql/gen.cpp +++ b/src/dsql/gen.cpp @@ -2557,6 +2557,8 @@ static void gen_select(DsqlCompilerScratch* dsqlScratch, dsql_nod* rse) parameter = MAKE_parameter(statement->getReceiveMsg(), false, false, 0, NULL); parameter->par_rec_version_relname = relation->rel_name; + paramContexts.put(parameter, context); + parameter->par_desc.dsc_dtype = dtype_text; parameter->par_desc.dsc_ttype() = ttype_binary; parameter->par_desc.dsc_length = relation->rel_dbkey_length / 2;