Using raw

23 views
Skip to first unread message

Daniel Bridges

unread,
May 25, 2013, 10:52:32 AM5/25/13
to sqlk...@googlegroups.com
Hi,

I'm trying to figure out how to use raw to add text to the end of a query. Basically I'm trying to do something like this:

(select users (raw "WHERE id=1"))

which would output:

SELECT "users".* FROM "users" WHERE "users".id = 1

but I receive an error saying there are too many arguments being passed to raw.

I am aware of the where function, the above is merely an example. Also, I realize this can be accomplished with exec-raw, but would like to avoid that if possible. 

Any help would be greatly appreciated!

Best,
Dan

Reply all
Reply to author
Forward
0 new messages