Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: fetchrow_array loop in perl 5.10

by McA (Priest)
on Sep 18, 2014 at 07:20 UTC ( #1101002=note: print w/replies, xml ) Need Help??


in reply to fetchrow_array loop in perl 5.10

Hi,

I can't say much about that issue. The only thing I can see from the code is the line

$insertSQL->finish;

which makes me wonder. Why do you have this statement in the loop body? As soon as you have more than one record to fetch your insertSQL statement handle isn't valid anymore.

At least I would expect to have this statement at the end of the script outside of the while loop when you've executed all insert statements.

Probably a point to start from.

Regards
McA

Replies are listed 'Best First'.
Re^2: fetchrow_array loop in perl 5.10
by Anonymous Monk on Sep 18, 2014 at 07:34 UTC
    thanks for the reply,I tried commenting it out, issue is still there (didn't loop thru all the records).

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1101002]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2019-07-18 08:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?