double arguments translations in subqueries #78

Closed
Ciki opened this Issue Dec 20, 2012 · 3 comments

Comments

Projects
None yet
3 participants
Contributor

Ciki commented Dec 20, 2012

Arguments in subqueries gets translated twice.

use case: https://gist.github.com/4348734

Owner

dg commented Apr 3, 2013

I think it this case you must use %SQL instead of %sql.

Contributor

milo commented Apr 3, 2013

Agree with DG. One confusion thing is that translate() converts " to '. A litte bit annoing with PostgreSQL. But when you keep one simple rule: Everything from translate() or DibiFluent pass as %SQL, because it is already escaped.

dg closed this Apr 3, 2013

Contributor

Ciki commented Apr 3, 2013

Oh, I wasn't aware of this option. I use quick-start as a quick reference and this option is missing there. Thanks for pointing this out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment