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?
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?
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
-~----------~----~----~----~------~----~------~--~---