gopalr has asked for the wisdom of the Perl Monks concerning the following question:
Hi
I am getting the following error while running fetchrow_hashref below:
$sql='SELECT a.serial_num user_serial FROM device a WHERE (LOWER(a.nam +e) = ? OR a.mgmt_ip_addr = ?)'; $cmd = $dbh->prepare($sql); $cmd->execute('test','test'); while ($row = $cmd->fetchrow_hashref()) { ..... }
DBD::Oracle::st fetchrow_hashref failed: ORA-24345: A Truncation or nu +ll fetch error occurred (DBD ERROR: ORA-01406 error on field 1 of 1, +ora_type 1) [for Stat ement " SELECT a.serial_num user_serial FROM device a WHERE (LOWER(a.name) = ? OR a.mgmt_ip_addr = ?) " with ParamValues: :p1='test', :p2='test'] at data.cgi line 720.
NOTE:The column SERIAL_NUM has the type VARCHAR2(80) and it has many special characters
Please help me in this regardThanks,
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: DBD::Oracle::st fetchrow_hashref failed: ORA-24345
by runrig (Abbot) on Sep 06, 2013 at 16:38 UTC | |
by gopalr (Priest) on Sep 06, 2013 at 16:47 UTC | |
by runrig (Abbot) on Sep 06, 2013 at 16:54 UTC | |
|
Re: DBD::Oracle::st fetchrow_hashref failed: ORA-24345
by kennethk (Abbot) on Sep 06, 2013 at 16:48 UTC | |
by gopalr (Priest) on Sep 11, 2013 at 13:00 UTC | |
by kennethk (Abbot) on Sep 11, 2013 at 13:42 UTC | |
|
Re: DBD::Oracle::st fetchrow_hashref failed: ORA-24345
by MidLifeXis (Monsignor) on Sep 06, 2013 at 16:46 UTC | |
|
Re: DBD::Oracle::st fetchrow_hashref failed: ORA-24345
by keszler (Priest) on Sep 06, 2013 at 16:50 UTC |