Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set dynamic conditions #2

Open
gaspar-tovar-civitas opened this issue Jan 4, 2016 · 5 comments
Open

Set dynamic conditions #2

gaspar-tovar-civitas opened this issue Jan 4, 2016 · 5 comments

Comments

@gaspar-tovar-civitas
Copy link

Hi!

Am trying to set something like this

SELECT {{ fields }}
FROM {{ schema }}.{{ table }}
WHERE {{ conditions }}

fields, schema and table are working just fine, the issue is on the conditions. When I use something like

field = 1

works well, but when using

field > 1

Is not actually an issue but if there is an answer out there it would be much appreciated.

@RasterBurn
Copy link
Contributor

It's probably trying to escape the >. You probably need to apply a "raw" filter or something like that

@erikswedberg
Copy link

:shipit:

@RasterBurn
Copy link
Contributor

🌮

@RasterBurn
Copy link
Contributor

also, why template a query like that? At this point you might as well just write out the whole query. You're not saving yourself any trouble by factoring out "SELECT" "FROM" and "WHERE".

@gaspar-tovar-civitas
Copy link
Author

You do have a good point Ill check it out, and it did work with the 'raw' filter. Thanks for the help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants