Keep It Simple, Stupid | |
PerlMonks |
Re: DBI Oracle error LongReadLen too smallby Rhose (Priest) |
on Nov 14, 2001 at 04:00 UTC ( [id://125176]=note: print w/replies, xml ) | Need Help?? |
I played with this and could not get it to fail -- I was not sure if a long (length) CHAR would trigger the error. Either it does not, or the fact I am using Oracle 8 is masking it.
Oracle version: 8.1.7.2 Play table used:
Since my queries worked correctly, I am going to make some assumptions (I know, bad *smiles*) and offer some thing which might help. First off, it looks like you have RaiseError => 1 (True) in your DBI->connect. This is not a bad thing, but causes your program to terminate on the error; the error, I believe, is in your "while (@data = $handle->fetchrow_array())" statement (more specifically, fetchrow_array.) This raises an error because a column being returned exceeds LongReadLen and you have LongTruncOk set to 0 (False). To find out more information on these, I used perldoc DBI. (A lot to read there.) Anyway, increasing the size of LongReadLen will consume additional memory, but should have the benefit of actually letting your script run. *Grins* If you would like to post more of your code, I will gladly look at it. Also, I would like to thank you. I had never read a lot of the "extra" setting for DBI, and now have some new things with which to play -- like ChopBlanks.
In Section
Seekers of Perl Wisdom
|
|