AW: [HACKERS] Standards question

Поиск
Список
Период
Сортировка
От Andreas Zeugswetter
Тема AW: [HACKERS] Standards question
Дата
Msg-id 01BDC051.94402E40@zeugswettera.user.lan.at
обсуждение исходный текст
Ответы Re: [HACKERS] Standards question
Список 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


В списке pgsql-hackers по дате отправления:

Предыдущее
От: "Dr. Michael Meskes"
Дата:
Сообщение: Standards question
Следующее
От: David Hartwig
Дата:
Сообщение: Re: [HACKERS] OR clause status