how to count $PARAMS? #902
-
Super confused here. I'm writing a function to load with
I think I understand that
And it looks like that's what it's doing, but then the comparison isn't doing what I expect it to?
Thinking I might be running into some kind of data type issue, I tried casting explicitly to JSON, and I think this is how to do that?
What am I missing? Waving the white flag. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Weird it's gone this long without being detected in either the test suites nor every day usage. It shouldn't be too hard to fix though. I have a feeling I know the cause. Do you mind if I convert this discussion to an "issue"? |
Beta Was this translation helpful? Give feedback.
-
I've found the issue. eg
I still consider this a bug because by default Murex is relaxed when comparing numeric types (hence why comparing an I'll get a fix for this in the next release. |
Beta Was this translation helpful? Give feedback.
@JeffMelton
I've found the issue.
count
is returning anint
while numeric constants in expressions arenum
(floating point numbers).eg
I still consider this a bug because by default Murex is relaxed when comparing numeric types (hence why comparing an
int
to astr
works) so it should just compare the value of those two numeric types. But it does explain why this bug hasn't been picked up before:int
is rarely used sincenum
is the default numeric data type.I'll get a fix for this in the next release.