Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: fetchrow_array loop in perl 5.10

by McA (Priest)
on Sep 18, 2014 at 07:20 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1101002]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (4)
As of 2024-04-19 23:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found