Fix for bug#19088: NDBAPI: Segfault in NdbIndexScanOperation::setBound(...)

This commit is contained in:
unknown 2006-04-21 10:17:55 +02:00
parent 316c96fa81
commit 8b35dc5738

View file

@ -1086,6 +1086,11 @@ int
NdbIndexScanOperation::setBound(const NdbColumnImpl* tAttrInfo,
int type, const void* aValue, Uint32 len)
{
if (!tAttrInfo)
{
setErrorCodeAbort(4318); // Invalid attribute
return -1;
}
if (theOperationType == OpenRangeScanRequest &&
(0 <= type && type <= 4) &&
len <= 8000) {