From: Michael Davis <michael.davis@prevuenet.com>
To: 'pgsql-interfaces@postgresql.org' <pgsql-interfaces@postgreSQL.org>
Subject: RE: [INTERFACES] fetchrow reset???
Date: Fri, 26 Feb 1999 01:40:23 -0600
Message-ID: <93C04F1F5173D211A27900105AA8FCFC145203@lambic.prevuenet.com> (raw)
With ODBC and Informix I had to create two different database connections,
even though you are connecting to the same database.
-----Original Message-----
From: Kevin Meldorf [SMTP:kmeldorf@magnitudenetwork.net]
Sent: Thursday, February 25, 1999 5:43 PM
To: 'pgsql-interfaces@postgresql.org'
Subject: [INTERFACES] fetchrow reset???
I have a perl script in which I have 2 while loops that are nested.
I am comparing the rows of the outer loop against rows of the inner
loop.
while (@stuff = $foo->fetchrow)
{
yadda yadda yadda
while (@otherstuff= $otherfoo->fetchrow)
{
yadda yadda yadda
}
}
Whenever I reach the end of the inner loop, I can't get it to go to
the beginning of $otherfoo. I need to be able to reset the object so
I
can take the next row from the outerloop and check it against the
entire
inner loop structure again. How do I do this????
I have tried reset amongst a bunch of other attempted hacks, but
nothing
works!
HELP!
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-interfaces@postgresql.org
Cc: michael.davis@prevuenet.com
Subject: Re: [INTERFACES] fetchrow reset???
In-Reply-To: <93C04F1F5173D211A27900105AA8FCFC145203@lambic.prevuenet.com>
References: <93C04F1F5173D211A27900105AA8FCFC145203@lambic.prevuenet.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox