[RCD] rcube_mdb2 with dsnr and dsnw

A.L.E.C alec at alec.pl
Fri Aug 20 08:09:14 CEST 2010

On 20.08.2010 02:16, Emerson Pinter wrote:

> I'm trying to use rcube_mdb2 to connect to another database.
> I need to connect to one database to execute insert/update/delete
> statements and to another database to execute select statements
> (performance reasons).
> I'm passing the second dsn to rcube_mdb2 constructor, but if the
> database is connected to the readonly db and I call db_connect("w"), the
> connection remains on readonly db and my insert statement fails. If I
> set db_connected to false on mdb2 object before db_connect("w") call, I
> got the new connection as desired.

Are you sure this is the reason? Did you add "?new_link=true" to DSN of
second connection?

Aleksander 'A.L.E.C' Machniak http://alec.pl gg:2275252
LAN Management System Developer http://lms.org.pl
Roundcube Webmail Developer http://roundcube.net
List info: http://lists.roundcube.net/dev/

More information about the Dev mailing list