diff --git a/src/jrd/execute_statement.cpp b/src/jrd/execute_statement.cpp index c332437d3e..1ca065bf13 100644 --- a/src/jrd/execute_statement.cpp +++ b/src/jrd/execute_statement.cpp @@ -255,6 +255,9 @@ rec_err: src.dsc_sub_type = var->sqlsubtype; src.dsc_address = (UCHAR*) var->sqldata; + if ((var->sqltype & ~1) == SQL_VARYING) + src.dsc_length += sizeof(SSHORT); + // and assign to the target EXE_assignment(tdbb, *JrdVar, &src, (var->sqltype & 1) && (*var->sqlind < 0), NULL, NULL); }