|
Re: Same $dbh under different pids?: msg#00583apache.mod-perl
harm wrote: Moi,You haven't initialised this, so each request will get the same object that is made below. $Apache::DBI::DEBUG = 1;This should be in a start up file really. You could just put, print "ok"; $dbh ||= DBI->connect("dbi:mysql: ... etc);Apache::DBI takes care of pooling connections. Use, my $dbh = DBI->connect(@CONNECT); and get rid of the global $dbh above. Richard |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Same $dbh under different pids?: 00583, harm |
|---|---|
| Next by Date: | RE: FW: mod_perl / PerlAuthenHandler question: 00583, Mitchel, Jennifer (Jem) |
| Previous by Thread: | Same $dbh under different pids?i: 00583, harm |
| Next by Thread: | Re: Same $dbh under different pids?: 00583, harm |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |