1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-29 08:21:15 +03:00

Merge pull request #154 from mariadb-corporation/MCOL-670

MCOL-670 Fix UPDATE with BLOB/TEXT
This commit is contained in:
dhall-InfiniDB
2017-04-19 16:56:06 -05:00
committed by GitHub
2 changed files with 19 additions and 6 deletions

View File

@ -1374,7 +1374,9 @@ int Dctnry::updateDctnry(unsigned char* sigValue, int& sigSize,
sig.size = sigSize;
// Look for string in cache
if (m_arraySize < MAX_STRING_CACHE_SIZE)
// As long as the string <= 8000 bytes
if ((m_arraySize < MAX_STRING_CACHE_SIZE) &&
(sigSize <= MAX_SIGNATURE_SIZE))
{
bool found = false;
found = getTokenFromArray(sig);
@ -1389,7 +1391,9 @@ int Dctnry::updateDctnry(unsigned char* sigValue, int& sigSize,
rc = insertDctnry(sigSize, sigValue, token);
//Add the new signature and token into cache
if (m_arraySize < MAX_STRING_CACHE_SIZE)
//As long as the string is <= 8000 bytes
if ((m_arraySize < MAX_STRING_CACHE_SIZE) &&
(sigSize <= MAX_SIGNATURE_SIZE))
{
Signature sig;
sig.size = sigSize;