Thank you,

however, I am at loss to the syntax of specifying the bind variables for the
raw Django query! I've tried everything (like separating the select
statement and the "exec" addition with ;) and still  get a variety of error
messages.

Do you know how to write a query with binds that will go through?

Thanks
Maxim 


Ian Kelly-2 wrote:
> 
> On Aug 17, 4:59 pm, buddhasystem <[email protected]> wrote:
>> I guess the problem is that I need to use raw queries to provide "hints"
>> to
>> Oracle.
> 
> There has been some chatter recently on the developers list about
> adding support for optimizer hints, but I don't believe the syntax has
> settled yet.  For now you're correct in that you'll need to use raw
> queries for this.
> 
>> The class RawQuerySet does not have the "extra" method, as it appears.
> 
> The "extra" method is for adding custom columns, where clauses, etc.
> to a query constructed via the Django ORM.  A raw query is written
> entirely by the developer, so there is no reason for it to have an
> "extra" method.
> 
> Cheers,
> Ian
> 
> -- 
> You received this message because you are subscribed to the Google Groups
> "Django users" 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/django-users?hl=en.
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Bind-variables-in-Oracle-backend---how-to-use-them--tp29431038p29472095.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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to