Skip to content

Commit

Permalink
[CBRD-24844] Garbage value when querying bit varying(n) column using …
Browse files Browse the repository at this point in the history
  • Loading branch information
beyondykk9 authored Jun 13, 2023
1 parent 52052ed commit d2d59b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/query/dblink_scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -859,12 +859,12 @@ dblink_scan_next (DBLINK_SCAN_INFO * scan_info, val_list_node * val_list)
if (utype == CCI_U_TYPE_BIT)
{
/* bit_val.size * 8 : bit length for the value */
(void) db_make_bit (&cci_value, bit_val.size * 8, bit_val.buf, prec);
(void) db_make_bit (&cci_value, prec, bit_val.buf, bit_val.size * 8);
}
else
{
/* bit_val.size * 8 : bit length for the value */
(void) db_make_varbit (&cci_value, bit_val.size * 8, bit_val.buf, prec);
(void) db_make_varbit (&cci_value, prec, bit_val.buf, bit_val.size * 8);
}
break;

Expand Down

0 comments on commit d2d59b8

Please sign in to comment.