AW: [HACKERS] Standards question

From: Andreas Zeugswetter <andreas(dot)zeugswetter(at)telecom(dot)at>
To: "'Dr(dot) Michael Meskes'" <meskes(at)online-club(dot)de>
Cc: "'hackers(at)postgresql(dot)org'" <hackers(at)postgresql(dot)org>
Subject: AW: [HACKERS] Standards question
Date: 1998-08-05 07:10:46
Message-ID: 01BDC051.94402E40@zeugswettera.user.lan.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Michael wrote:
>Let's say we have a table with two entries:
>
>name nr
>----------
>foo 1
>bar 2

>and a C program doing the following:
>
>..
>i=1;
>exec sql declare C cursor for select name from table where nr=:i;
>i=2;
>exec sql open C;
>..
>
>Which row will be selected?

Since it is usually allowed to do one declare and then many
open, fetch, fetch ...
open, fetch ....
it has to be i=2 (bar)

Andreas

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message David Hartwig 1998-08-05 13:14:27 Re: [HACKERS] OR clause status
Previous Message Roland Roberts 1998-08-05 02:00:09 Re: [HACKERS] Standards question