Use correct Avro function

The avrorouter used the 32-bit function to store 64-bit integers. This
caused incorrect values to be stored.
This commit is contained in:
Markus Mäkelä 2017-02-13 08:25:26 +02:00
parent 65caaab77b
commit 4bd743d3ce

View File

@ -391,7 +391,7 @@ void set_numeric_field_value(avro_value_t *field, uint8_t type, uint8_t *metadat
case TABLE_COL_TYPE_LONGLONG:
{
long l = gw_mysql_get_byte8(value);
avro_value_set_int(field, l);
avro_value_set_long(field, l);
break;
}