Skip to content

Commit

Permalink
Backported improvement CORE-3248: Set unused bytes of varchar values …
Browse files Browse the repository at this point in the history
…in message buffer to 0
  • Loading branch information
AlexPeshkoff committed Nov 19, 2010
1 parent e6ae6b7 commit d4fdc5d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/common/cvt.cpp
Expand Up @@ -1393,9 +1393,11 @@ void CVT_move_common(const dsc* from, dsc* to, Callbacks* cb)
}
break;

case dtype_varying:
MOVE_CLEAR(to->dsc_address, to->dsc_length);
// fall through ...
case dtype_text:
case dtype_cstring:
case dtype_varying:
switch (from->dsc_dtype)
{
case dtype_dbkey:
Expand Down

0 comments on commit d4fdc5d

Please sign in to comment.