gator_shawn has asked for the wisdom of the Perl Monks concerning the following question:
At this point, I print out the sql statement so I can run it myself directly through another DBI interface. SO that output may look like this:my $sth = $dbh->prepare("$Select_Statement"); $sth->execute();
Now, my printing of the sql statement notwithstanding, the program proceeds to step through the results of the sql statement as follows:select severity,class,status,date_event,hostname,msg,administrator,sou +rce,sub_source,rep.server_hndl,rep.event_hndl,rep.date_reception from + tec_t_evt_rep rep where rep.date_reception > 1157568225 and rep.date +_reception < 1157568525 and ( hostname like '%aixjcsa1%' )
There are no conditions inside the code block to drop or next on any records. In fact, I'd added a line at the very first line in the while statement to print @data for my troubleshooting processes.while (@data = $sth->fetchrow_array) { bleh blah bleh }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: fetchrow_array does not yield the same results as the sql query by itself does.
by graff (Chancellor) on Sep 06, 2006 at 19:21 UTC | |
|
Re: fetchrow_array does not yield the same results as the sql query by itself does.
by imp (Priest) on Sep 06, 2006 at 19:20 UTC | |
|
Re: fetchrow_array does not yield the same results as the sql query by itself does.
by perrin (Chancellor) on Sep 06, 2006 at 19:48 UTC | |
by Hue-Bond (Priest) on Sep 06, 2006 at 19:54 UTC | |
by perrin (Chancellor) on Sep 06, 2006 at 20:03 UTC | |
|
Re: fetchrow_array does not yield the same results as the sql query by itself does.
by TrekNoid (Pilgrim) on Sep 06, 2006 at 19:58 UTC |