mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-05-28 13:01:26 +03:00
Fix MCOL-1635 where an "insert into table select query" crashes the server. This happens
for a MEDIUMBLOB column type.
This commit is contained in:
parent
150171b714
commit
5df447b6ec
@ -1615,8 +1615,11 @@ int ha_calpont_impl_write_batch_row_(uchar *buf, TABLE* table, cal_impl_if::cal_
|
|||||||
}
|
}
|
||||||
else if (ci.columnTypes[colpos].colWidth < 16777216)
|
else if (ci.columnTypes[colpos].colWidth < 16777216)
|
||||||
{
|
{
|
||||||
dataLength = *(uint32_t*) buf;
|
dataLength = *(uint16_t*) buf;
|
||||||
buf = buf + 3 ;
|
buf = buf + 2 ;
|
||||||
|
if (*(uint8_t*)buf)
|
||||||
|
dataLength += 256*256*(*(uint8_t*)buf) ;
|
||||||
|
buf++;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user