You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As I explained in another issue, there are in fact two sort of operators in RulerZ: the classic ones and the inline ones.
When using classic operators, we - in fact - refer to a PHP callback that will be called at runtime. It's particularly useful for the ArrayVisitor because it compile rules to plain PHP code.
On the other hand, when you use inline operators, the callback provided in the operator's definition is used at compile-time to generate code. That's how all the built-in SQL operators are implemented in RulerZ and that's what you will want to use most of the time (in an SQL context).
That being said, classic operators should work even for SQL targets. In that regard, I consider this issue as a bug. I doubt that fixing it would be trivial though.
And in addition to this bug, the documentation is clearly not as good as it should be (I'll create a new issue to fix that).
Hey,
I am trying to create a custom operator for range (between), but I always end up with the same error message
which occurs in the compiled file
/tmp/rulerz_executor_34868ebc
.Looking at the source, it generates
which is not a valid code. I managed to fix this by changing the source to
after this change my callback gets called (but wrong data is passed in due to eval issues I guess)
This is my initialization
I am not sure if this is a bug or I am doing something wrong.
Any ideas?
The text was updated successfully, but these errors were encountered: