On Tue, Sep 23, 2008 at 9:01 AM, Joneksi <[EMAIL PROTECTED]> wrote:
>
> Looks like a bug to me:
> %% @doc Create a a number of database connections in the pool.
> make_connection(PoolSize, PoolId, Database, Hostname, Port,
>                  Username, Password, Encoding, LinkConnections) ->
>    if PoolSize > 0 ->
>            connect(PoolId, Hostname, Port, Username, Password,
> Database,
>                    Encoding, LinkConnections),
>            make_connection(PoolSize-1, PoolId, Database, Hostname,
> Port,
>                            Username, Password, Encoding,
>                            LinkConnections);
>       true ->
>            ok
>    end.
>
> But the connect/8 has the Reconnect parameter as last parameter, it
> should actually call connect/9?

Yes, this looks like a bug. Thanks for reporting.

>
> Found this, when I tries to figure out, how to disconnect (and make a
> new connection). I have two databases, which have exactly the same
> structure, but different data (different instruments). Thus pool_id
> would? work nicely on the erlydb level, but on the erlyweb level I
> cannot change the pool_id/database ... Any changes to have an extra
> parameter for that? Should I hack it in for my own use?

You can't change the pool_id, but you can let different erlydb modules
use different pool ids. This is documented in the erlydb.erl page on
the website.


>
> regards
> Jouni
> >
>

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

Reply via email to