in reply to Re: DBD::ODBC and FreeTDS / limited to one statement handle
in thread DBD::ODBC and FreeTDS / limited to one statement handle
Relevant code:
Here's the error:27 my $sth1 = $dbh->prepare ( $q1 ); 28 my $sth2 = $dbh->prepare ( $q2 ); 29 30 print "INFO: If we got this far, we were able to create two \ statement handles.\n"; 31 32 $sth1->execute or 33 die ( "FATAL: Unable to execute q1: " . $sth1->errstr ); 34 $sth2->execute or 35 die ( "FATAL: Unable to execute q2: " . $sth1->errstr );
So FreeTDS is reporting on an invalid cursor state .. but I don't know if it's FreeTDS' error, or if that's coming from DBD::ODBC. I may need to start spelunking.INFO: If we got this far, we were able to create two statement handles +. DBD::ODBC::st execute failed: [FreeTDS][SQL Server]Invalid cursor stat +e (SQL-24000) at two_handles.pl line 34. FATAL: Unable to execute q2: [FreeTDS][SQL Server]Invalid cursor state + (SQL-24000) at two_handles.pl line 34. Issuing rollback() due to DESTROY without explicit disconnect() of DBD +::ODBC::db handle Driver=FreeTDS;ServerName=SqlServer;Database=FOOBAR + at two_handles.pl line 34.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: DBD::ODBC and FreeTDS / limited to one statement handle
by talexb (Chancellor) on May 15, 2024 at 00:48 UTC | |
by talexb (Chancellor) on May 15, 2024 at 02:08 UTC | |
by Corion (Patriarch) on May 15, 2024 at 10:26 UTC | |
by stevieb (Canon) on May 15, 2024 at 07:04 UTC |