Re: cursor "x" does not exist

Поиск
Список
Период
Сортировка
От Adrian Klaver
Тема Re: cursor "x" does not exist
Дата
Msg-id d321a3c8-7f31-fb1d-6954-35b6d1d1cd08@aklaver.com
обсуждение исходный текст
Ответ на Re: cursor "x" does not exist  (Bob Jones <r.a.n.d.o.m.d.e.v.4+postgres@gmail.com>)
Список pgsql-general
On 04/14/2018 09:36 AM, Bob Jones wrote:
> On 14 April 2018 at 16:38, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Bob Jones <r.a.n.d.o.m.d.e.v.4+postgres@gmail.com> writes:
>>> My apologies if I'm being incredibly stupid here, but I've reviewed
>>> what the docs have to say about naming portals and I still can't see
>>> where I'm going wrong here ?
>>
>> I think you're forgetting to double-quote an upper case identifier.
>>
>>> FETCH ALL IN B;
>>> ERROR:  cursor "b" does not exist
>>
>> The cursor is named "B" not "b", but B without quotes folds to the latter.
>>
>>                          regards, tom lane
> 
> 
> Thank you tom for showing me the error in my ways.
> 
> Now where's that dunce cap gone ?  Maybe I don't deserve to use
> anything better than MySQL.   ;-)

Or read the below and be illuminated:)

https://www.postgresql.org/docs/10/static/sql-syntax-lexical.html#SQL-SYNTAX-IDENTIFIERS

> 
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com


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

Предыдущее
От: Bob Jones
Дата:
Сообщение: Re: cursor "x" does not exist
Следующее
От: Mike Martin
Дата:
Сообщение: Regex on field value