File to test MemoryLeak in perl DBI modules.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@43 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
slerena 2006-06-06 00:17:57 +00:00
parent a8ea16dd94
commit de05a4ffff
1 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,14 @@
#!/usr/bin/perl
use strict;
use warnings;
use DBI; # DB interface with MySQL
while (1){
keep_alive_check();
}
sub keep_alive_check {
my $dbh = DBI->connect("DBI:mysql:pandora:localhost:3306","pandora","pandora",{ RaiseError => 1, AutoCommit => 1 });
$dbh->disconnect;
}