On Dec 9, 1:04 pm, John Firebaugh <[email protected]> wrote:
> That is, in the absence of any explicit connection management, will a
> given thread always use the same connection from the pool throughout
> its lifetime? This would matter, for example, if it was using local
> temporary tables.

No.  If you need to ensure you get same connection, surround the block
of code in a DB.synchronize call (or DB.transaction if you want it
inside a transaction).

  DB.synchronize do
    create_table(:table1, :temp=>true){...}
    create_table(:table2, :temp=>true){...}
  end

Jeremy

--

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