Returning multiple MySQL rows from module



Hi all,

I am trying to modularize some standard MySQL queries that I frequently
do against our RADIUS DB.

The current setup feels very 'kludgy' to me. The code snip below comes
out of the module. I hope there is enough context to see why I think it
can be improved.

Essentially, I'd like a graceful way for the module to perform the
query, and then as neatly as possible pass back the result in a manner
that would require the minimal amount of processing when it's returned
back to the initial application. In almost all cases, there will be
multiple rows returned:

--- snip ---

$query->execute;

my @current_row;
my @total_rows;

while (@current_row = $query->fetchrow_array()) {
push (@total_rows, [@current_row]);
@current_row = ();
}

return (@total_rows);

--- end snip ---

Regards,

Steve
.



Relevant Pages

  • Re: WinCE/PPC device support WPA/802.1x?
    ... Ok I'm running the same thing and I have radius setup to grant wireless ... > The server do grant access to it, same as it do for the laptop... ...
    (microsoft.public.pocketpc.wireless)
  • setup and radius
    ... I'm having a spot of trouble getting my Yamaha RBX4-A2 setup how I want it. ... I like action kind of low, but the higher frets are choking out when I bend notes. ... As I understand it this is a result of the radius being smaller than I'm used to. ... holding down 1st fret measuring 17th fret 3/32" on the G string and 5/64" on the B string. ...
    (uk.music.guitar)
  • Radius
    ... I have a SBS 2003 setup. ... access point on my network set to use Radius via IAS. ... pick up an IP address via DHCP. ...
    (microsoft.public.windows.server.sbs)
  • Re: Les Paul neck problem?
    ... On a tunematic Les Paul bridge you can't "throw" the radius out. ... the guitar needs a setup. ...
    (alt.guitar)
  • Re: Outlook web access
    ... i dont know all the particulars of your setup but Ive had a PIX firewall ... The RADIUS server auths off the Active Directory so that the ... > from the dmz to an internal exchange server. ... > want to allow any communications from the outside to the internal network. ...
    (Security-Basics)