Re: perl mysql DBI::db question

2002-02-28 Thread Paul van den Berg
Shon wrote > i am trying to write a program in perl and am getting a mysql error from my > module. here is the error: > > DBI::db=HASH(0x294738)->disconnect invalidates 1 active statement handle > (either destroy statement handles or call finish on them before > disconnecting) at ./pop.pl line 12

Re: perl mysql DBI::db question

2002-02-27 Thread Shon Stephens
Message - From: "Mike(mickalo)Blezien" <[EMAIL PROTECTED]> To: "Shon Stephens" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, February 27, 2002 11:32 AM Subject: Re: perl mysql DBI::db question Try moving your $dbh->disconnect call afte

Re: perl mysql DBI::db question

2002-02-27 Thread Mike(mickalo)Blezien
On Wed, 27 Feb 2002 10:40:21 -0600, "nickg" <[EMAIL PROTECTED]> wrote: >> >>You need to tell the handler you are finished with your statement, this will >>free resources, etc.. >> >>http://www.savebaseball.com/mysql/DBD_3.21.X.php3#finish >> >> >>$sql_check->finish; EXTREMELY out-dated! MySQL

RE: perl mysql DBI::db question

2002-02-27 Thread nickg
inish; $dbh->disconnect; if($debug_state) { print "S: $t_user,$t_password,$t_prefs\n"; } nickg -Original Message- From: Shon Stephens [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 27, 2002 10:08 AM To: [EMAIL PROTECTED] Subject: per

Re: perl mysql DBI::db question

2002-02-27 Thread Mike(mickalo)Blezien
Try moving your $dbh->disconnect call after it prints out the fetchrow_array() my ($t_user,$t_password,$t_prefs) = $sql_check->fetchrow_array(); if($debug_state) { print "S: $t_user,$t_password,$t_prefs\n"; } $dbh->disconnect(); If your using an older version of DBI, like 1.13 or

perl mysql DBI::db question

2002-02-27 Thread Shon Stephens
i am trying to write a program in perl and am getting a mysql error from my module. here is the error: DBI::db=HASH(0x294738)->disconnect invalidates 1 active statement handle (either destroy statement handles or call finish on them before disconnecting) at ./pop.pl line 124, line 2." i think a