in reply to fetchrow_array loop in perl 5.10
Depending on (the version of) your database driver, it might be that your database driver does not like more than one statement handle being active at the same time. In your case, that would be $searchSQL during the loop and in that loop the $insertSQL.
A workaround could be to first fetch all items into an array and then execute the insert for each element of that array.
In my experience, at least SQLite had this behaviour of not really wanting more than one active statement handle.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: fetchrow_array loop in perl 5.10
by choroba (Cardinal) on Sep 18, 2014 at 10:39 UTC | |
by Anonymous Monk on Sep 18, 2014 at 13:43 UTC | |
|
Re^2: fetchrow_array loop in perl 5.10
by bulrush (Scribe) on Sep 18, 2014 at 19:33 UTC | |
by erix (Prior) on Sep 18, 2014 at 19:54 UTC |