Closed lgebing closed 5 months ago
We'll take a look at this.
One thing you can probably do in the mean time is append the operator and your value, and don't use the operator parameter. Operators like that aren't really a thing in FileMaker, and they end up getting concatenated down the line anyway.
Does concatenating the operator and value allow that to go through successfully for you?
That does work, thanks.
Yeah, I'm not really familiar with FileMaker itself, though I have noticed the operator being concatenated to the value in the past. Just didn't think of that here.
I'm closing this then. If something comes out of it, great. If not, no worries ✌️
This is resolved in version 2.0.2
Dependencies
Description of the issue:
Since updating to
2.x.x
, when making a query like the following, where$description
is equal tonull
, I get an error sayingIllegal operator and value combination.
The exception gets thrown while evaluating value & operator in
prepareValueAndOperator()
of theFMBaseBuilder
class.Here
$this->invalidOperatorAndValue($operator, $value)
gets called:The method is not present in the
FMBaseBuilder
class, but inIlluminate\Database\Query\Builder
:Problem here are the hardcoded operator values, which don't include the FileMaker specific
==
.I guess this hasn't been a problem prior to version
2.x.x
because of the different handling of empty values introduced there, though I'm not completely sure. However I think those changes shouldn't really matter, since from my understanding they revealed the underlying issue of the==
operator not being accounted for.It would probably be easiest to overwrite
invalidOperatorAndValue()
inside of theFMBaseBuilder
class and add the missing value.