On Fri, Nov 16, 2018 at 10:38 AM wrote:
> Hi! If you want to list all databases then use DBI's data_sources method:
> https://metacpan.org/pod/DBI#data_sources
And DBD::mysql points to this method for a while:
Ken Marks k...@ken-marks.com wrote:
I wrote a simplified script that demonstrated the problem
You could simplify it even more:
use strict;
use warnings;
use DBI;
my $dbh = DBI-connect(...);
print $dbh-selectrow_array(select $_), $/ for qw(
2.775557561562E-17
2.7755575615629E-17
);
) - no leaks occurred.
'HTH
- --
Marius Feraru
-BEGIN PGP SIGNATURE-
iD8DBQFHHBXMtZHp/AYZiNkRAplfAJ0WRP25rSmzrLyodLYcbH/LiENmwQCgjGqJ
E/8XgF7wgZxEoBd4Dfk8Pvc=
=N2Zd
-END PGP SIGNATURE-
leak_pgsql.pl
Description: Perl program
attributes aren't available). I wrote
this snippet with DBD::mysql and DBD::Pg in mind.
cheers
- --
Marius Feraru
-BEGIN PGP SIGNATURE-
iD8DBQFFlIbAtZHp/AYZiNkRAjm/AKDuD+0jA48Eqh2KIpBB6chidyuK+wCgiD0s
iLl8SgRHW7bn6MwWcrHFm4k=
=YaLE
-END PGP SIGNATURE-
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Ron Savage wrote:
On Fri, 29 Dec 2006 05:08:48 +0200, Marius Feraru wrote:
You forgot to notice Louis' ugly way (and error prone) of
No I didn't - I was just too polite to hammer OP despite the low
quality of the code, so I chose a gentle hint