On Aug 8, 10:54 am, Yehuda Katz <[email protected]> wrote:
> Understood. It's part of why a more general purpose solution is
> difficult (for DO). But I think that it's reasonable to require the
> usage of String literals *or* bind variables, but not both.

By "string literals" do you mean the question mark - ?

And by "bind variables" do you mean things starting with a colon
- :var1

If so, the problem with that distinction is that ? is a perfectly
valid bind variable for Oracle.  The OCI driver natively supports the
AR syntax of ["select * from users where id = ? and name = ?, 1",
'Nate']

In fact in the old school Perl DBI that statement would be passed
directly to OCI.  Any ? is bound in order left-to-right by Oracle

So a ? and a :var have to be treated the same way.

If I totally missed your point please let me know.

-Nate
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to