There's more than one way to do things | |
PerlMonks |
Re^4: DBD::Oracle::st fetchrow_hashref failed: ORA-25401by perldigious (Priest) |
on Jan 30, 2020 at 17:35 UTC ( [id://11112116]=note: print w/replies, xml ) | Need Help?? |
It runs fine when I leave out "NOTE" and "LOV_DISPLAY_KEY" which are VARCHAR2. The others are just NUMBER type. I'm guessing the issue is with the "NOTE" data. If I leave out just "NOTE", it runs and gets all the rows, but then hangs when it attempts to execute the sql again for a second time through a loop it's inside... I'm guessing that's an issue with my code and trying to do it in a loop that way, this is my first time attempting stuff like this so I'm still learning. A broader snip of my perl script:
And the error message I get in that case, which seems to be just telling me "hey dummy, you can't do that with a loop that way" or something of that nature:
EDIT: Yes, it runs fine when I moved the prepare statement outside the loop (derp on my part), so the problem is presumably in the "NOTE" column data for those particular rows it's hanging on.
Just another Perl hooker - My clients appreciate that I keep my code clean but my comments dirty.
In Section
Seekers of Perl Wisdom
|
|