Forum OpenACS Q&A: Re: querying multiple datababe server..

Collapse
Posted by Jonathan Ellis on
db_with_handle doesn't allow you to specify the pool you use.  the first argument it takes is the _handle_ name to provide to the codeblock, not the pool name.

you do have to use ns_db if you want to specify a specific pool.

I wonder, though, if it would be possible to add a db_with_pool <poolname> <codeblock using db_ calls> function...