valdez has asked for the wisdom of the Perl Monks concerning the following question:
Dear Monks,
while porting an application from MySQL to Oracle I discovered two horrible problems in my code:
my $pos = 1; while ($hash = $sth->fetchrow_hashref()) { if ($pos > $skip) { push(@data, $hash); last if ($pos == ($skip+$slice)); } $pos++; }
First I recreated the LIMIT clause missing in Oracle; after that I found that keys of hashrefs returned are all in UPPERCASE instead of lowercase like in MySQL. Do you know how to tell Oracle to give me lowercase field names? I could lc all keys, but it seems too stupid to me...
Any help is welcome! Thank you very much, Valerio
update: fixed typo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: selectrow_hashref upper/lower case
by runrig (Abbot) on Oct 02, 2002 at 00:36 UTC | |
by valdez (Monsignor) on Oct 02, 2002 at 09:26 UTC | |
|
Re: selectrow_hashref upper/lower case
by Ovid (Cardinal) on Oct 02, 2002 at 00:22 UTC | |
by valdez (Monsignor) on Oct 02, 2002 at 09:22 UTC | |
|
Re: selectrow_hashref upper/lower case
by panix (Monk) on Oct 02, 2002 at 00:43 UTC | |
by runrig (Abbot) on Oct 02, 2002 at 00:49 UTC | |
by valdez (Monsignor) on Oct 02, 2002 at 09:34 UTC |