I have the following code:
// email is a string field with index="yes"
$email = 'thisisareallyreallylongstringtomakesurewerelongerthantheindex@unitteststheproblemshowedupwith86chrs.fx';
$person = new openpsa_person;
$person->email = $email;
$person->create();
$qb = new midgard_query_builder('openpsa_person');
$qb->add_constraint('email', '=', $email);
$results = $qb->execute();
echo count($results); // Expected: 1, Actual: 0
what is interesting is that if you use this constraint instead:
$qb->add_constraint('email', 'LIKE', $email);
then it works as expected. I also tried a plain mysql select with "=", and it works, too, so this is something that midgard does
I have the following code:
what is interesting is that if you use this constraint instead:
then it works as expected. I also tried a plain mysql select with "=", and it works, too, so this is something that midgard does