mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-23 10:10:50 +00:00
Merge pull request #31990 from havardk/mysqldecimal
MaterializedMySQL: Fix corruption of DECIMAL data
This commit is contained in:
commit
9e034ee3a5
@ -501,6 +501,9 @@ namespace MySQLReplication
|
||||
UInt32 mask = 0;
|
||||
DecimalType res(0);
|
||||
|
||||
if (payload.eof())
|
||||
throw Exception("Attempt to read after EOF.", ErrorCodes::ATTEMPT_TO_READ_AFTER_EOF);
|
||||
|
||||
if ((*payload.position() & 0x80) == 0)
|
||||
mask = UInt32(-1);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user