[freetds] Odd statement execution problem
WillS at housing.ufl.edu
Mon Jun 23 16:05:09 EDT 2003
> -----Original Message-----
> From: Lowden, James K [mailto:LowdenJK at bernstein.com]
> Sent: Monday, June 23, 2003 3:21 PM
> To: 'FreeTDS Development Group'
> Subject: RE: [freetds] Odd statement execution problem
> > From: Will Saxon [mailto:WillS at housing.ufl.edu]
> DBI includes a trace mechanism. Between that and the TDSDUMP
> log, perhaps
> you'll be able to tell what's wrong. To me, it looks like
> $dbh is being
> closed on you; $sql is probably fine. You can generate that
> same message
> this way:
> $ perl -e'print $s->state'
> Can't call method "state" on an undefined value at -e line 1.
> Have you installed an error handler (syb_err_handler)? If
> not, you might be
> missing a runtime error.
This problem has caused me to reevaluate the design of the script anyway - I think actually my problem may be a 'my' where a 'local' would be more appropriate. I hope this is the case, although I certainly spent a good hour just fighting with that...
Thanks for the reply James.
More information about the FreeTDS