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
The @querify macro is.... not built very well. The issue is that it is piecemeal converting Expr's to strings, and it is doing that directly, at compile-time, when what it should be doing is converting Exprs to other Expr's that result in Strings, so that the caller stitches all the Strings together. Without that fundamental change, the macro doesn't have access to the value of the variable you're trying to pass in at compile-time. Whoops.
Anyone who wants to try and rewrite this has my blessing. Even better, if there's a standard query parsing package, that would be even better!
I would expect the first query to work like the second one
I might try to fix it but macros are a pain so I'll stick with the second option for now
The text was updated successfully, but these errors were encountered: