11 messages in com.mysql.lists.ndb-connectorsRe: NdbScanFilter with strings
FromSent OnAttachments
John David Duncan18 Aug 2007 23:38 
Monty Taylor19 Aug 2007 14:35 
John David Duncan19 Aug 2007 18:01 
Frazer Clement20 Aug 2007 07:09 
John David Duncan22 Aug 2007 10:21 
Monty Taylor22 Aug 2007 10:24 
John David Duncan22 Aug 2007 10:26 
Monty Taylor22 Aug 2007 10:32 
Monty Taylor29 Aug 2007 22:41 
John David Duncan29 Aug 2007 22:52 
Monty Taylor29 Aug 2007 23:47 
Subject:Re: NdbScanFilter with strings
From:John David Duncan (jd@mysql.com)
Date:08/19/2007 06:01:43 PM
List:com.mysql.lists.ndb-connectors

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.