Hey

I currently use the following to add WITH (NOLOCK) to tables in a query:

transactions = db[:transactions]
    .nolock
    .join(:accounts, :id => :account_id)
    .select(:transaction_date)

It adds the WITH (NOLOCK), but only on the transactions table. I need it to 
be added to the accounts table as well. I tried

transactions = db[:transactions]
    .nolock
    .join(:accounts, :id => :account_id)
    .nolock
    .select(:transaction_date)

and 

transactions = db[:transactions]
    .join(:accounts, :id => :account_id)
    .nolock
    .select(:transaction_date)

Neither worked. Is this possible?

Jrgns

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to