Hello,
I have not used DBD::ODBC, but i have done quite a bit of work with ither DBD drivers. In looking at the trace info provided, it appears that the fetchrow_array() call returns SQLFetch rc of 0 once, and returns data :
-> fetchrow_array for DBD::ODBC::st (DBI::st=HASH(0x1cabf7c)~0x1cabf34
+)
SQLFetch rc 0
dbih_setup_fbav for 3 fields => 0x1cabef8
fetch num_fields=3
<- fetchrow_array= ( '89959' '11097840' '1237' ) 3 items at tkttest.pl
+ line 24.
But, the next call gets a SQLFetch rc of 100 (an error of some sort), which exists the whil loop and calls the standard DESTROY method because
$sth is no longer referenced. Assuming this is just an unlucky circumstance in DBD::ODBC's xs code (which is what i would guess), adding
$sth->finish() after the while loop may cause explisit object destruction and fix the error ... just a guess.
Calm begets calm
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.