I guess the problem is that I need to use raw queries to provide "hints" to
Oracle.
The class RawQuerySet does not have the "extra" method, as it appears.



Ian Kelly-2 wrote:
> 
> On Aug 13, 11:04 am, buddhasystem <potek...@bnl.gov> wrote:
>> Friends,
>>
>> I'm in need of an implementation which calls for using bind variables (in
>> Oracle sense, not generic) in my SQL in a Django application.
>>
>> Any experience with that, anyone?
> 
> To use raw SQL with Django, see:
> http://docs.djangoproject.com/en/1.2/topics/db/sql/#topics-db-sql
> 
> To add parameters to an ordinary Django query, use the
> QuerySet.extra() method
> http://docs.djangoproject.com/en/1.2/ref/models/querysets/#extra-select-none-where-none-params-none-tables-none-order-by-none-select-params-none
> 
> Note that Django placeholders always use the %s syntax regardless of
> backend, so you'll need to use that rather than the named syntax
> normally used with Oracle.
> 
> HTH,
> Ian
> 
> -- 
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Bind-variables-in-Oracle-backend---how-to-use-them--tp29431038p29449301.html
Sent from the django-users mailing list archive at Nabble.com.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to