On Mar 17, 8:34 am, "Bhinderwala, Shoeb" <sabhinderw...@wellington.com> wrote: ...use the strint *MACRO*... ...works when I specify my string [as a literal]... ...but doesn't work when I pass the string through a variable.
Macros are not functions. << is receiving as arguments a list with the two elements 'str and 'q. It must operate on them at compile time, before q has been given a run-time value: it cannot know what the value of q is. >From my uninformed position, strint looks like it should have been written as a function, not a macro, but probably there are reasons it was not. As an aside: it is sheer folly to interpolate strings for use in SQL queries. Do not do it; it will end in tears. PHP makes it easy, which is why there are so many SQL injection issues in PHP-powered sites. Be happy that this did not work: it has provided the mailing list with an opportunity to steer you towards clojureql. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en