ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/PApp-SQL/SQL.pm
(Generate patch)

Comparing PApp-SQL/SQL.pm (file contents):
Revision 1.34 by root, Mon Jan 9 06:10:40 2006 UTC vs.
Revision 1.35 by elmex, Fri Jan 27 19:44:07 2006 UTC

408 408
409sub checked_dbh($) { 409sub checked_dbh($) {
410 my $dbh = $dbcache{$_[0][0]}; 410 my $dbh = $dbcache{$_[0][0]};
411 $dbh && $dbh->ping 411 $dbh && $dbh->ping
412 ? $dbh 412 ? $dbh
413 : PApp::SQL::connect_cached((split /\x00/, $_[0][0]), $_[0][1], $_[0][2]); 413 : PApp::SQL::connect_cached((split /\x00/, $_[0][0], 4), $_[0][1], $_[0][2]);
414} 414}
415 415
416=item $db->dsn 416=item $db->dsn
417 417
418Return the DSN (L<DBI>) fo the database object (e.g. for error messages). 418Return the DSN (L<DBI>) fo the database object (e.g. for error messages).

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines