Unfortunately I have to disagree a bit with the other posters. It is not necessary to call $sth->finish() and if you find it so I suspect it is due to an old version of the DBD::ODBC module. I had the same problem earlier this year and reported it on the DBI-users mailing list. The author of DBI had this reply. The problem was fixed in subsequent releases of DBD::ODBC (1.02 and onwards).
So, if you see this problem you should upgrade DBD::ODBC. If you are running ActivePerl you can do so by going to a command line and typing:
ppm install ftp://ftp.esoftmatic.com/outgoing/DBI
(My memory might be off, but I think you might need a .ppd on the end of that -- not sure). Hope this helps!
-Tats
In reply to Re: DBI (Prepare once execute many fails)
by Itatsumaki
in thread DBI (Prepare once execute many fails)
by ColtsFoot
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |