Hi, folks!

I have a connection to 2 servers with a single sharded pool. I want to
run transaction with raw SQL on second server. How can I do it?

When I run:

conn.transaction(:server => :shard_2) do
   conn['SELECT pg_sleep(5)'].single_value
end

it creates 2 connections and run 'BEGIN; COMMIT;' in first connection
and 'SELECT pg_sleep(5)' in second. Is this a bug and how it might be
fixed?

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" 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/sequel-talk?hl=en.

Reply via email to