int cmpString(NdbOperation * op, BinaryCondition cond, int ColId,
const
char * anInputString, size_t len ) {
const NdbDictionary::Column * theColumn =
op->getTable()->getColumn(ColId);
char * stringVal = ndbFormatString(theColumn,anInputString,len);
if (stringVal == NULL)
return -1;
int retval = self->cmp(cond,ColId,(void *)stringVal);
free(stringVal);
return retval;
};
where ndbFormatString returns the whole length-byte-string thing.
I'm not 100% I've tested this, though. But I think I remember
talking to
Johan about it at the time...
Yeah, I try essentially the same thing (with either CHAR or VARCHAR),
but I always get an empty result, as if the filter does not match
anything.