pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Bob Jones <r.a.n.d.o.m.d.e.v.4+postgres@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: cursor "x" does not exist
Date: Sat, 14 Apr 2018 09:40:11 -0700
Message-ID: <d321a3c8-7f31-fb1d-6954-35b6d1d1cd08@aklaver.com> (raw)
In-Reply-To: <CA+HuS5GCPy3xchcH5nc2uCZ3jC1SVdxrBtG7N0wXn81n7+TPtw@mail.gmail.com>
References: <CA+HuS5F_anOtn+jJjF1VPuWX_pkOiN_FC2vPDDgkJhFs-s8CZQ@mail.gmail.com>
	<14390.1523720333@sss.pgh.pa.us>
	<CA+HuS5GCPy3xchcH5nc2uCZ3jC1SVdxrBtG7N0wXn81n7+TPtw@mail.gmail.com>

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




view thread (5+ messages)  latest in thread

Message-ID: <d321a3c8-7f31-fb1d-6954-35b6d1d1cd08@aklaver.com>
Permalink:  ../d321a3c8-7f31-fb1d-6954-35b6d1d1cd08@aklaver.com/
Also on:    postgresql.org/message-id/d321a3c8-7f31-fb1d-6954-35b6d1d1cd08@aklaver.com

 · 

reply

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-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, r.a.n.d.o.m.d.e.v.4+postgres@gmail.com, tgl@sss.pgh.pa.us
  Subject: Re: cursor "x" does not exist
  In-Reply-To: <d321a3c8-7f31-fb1d-6954-35b6d1d1cd08@aklaver.com>
  References: <CA+HuS5F_anOtn+jJjF1VPuWX_pkOiN_FC2vPDDgkJhFs-s8CZQ@mail.gmail.com> <14390.1523720333@sss.pgh.pa.us> <CA+HuS5GCPy3xchcH5nc2uCZ3jC1SVdxrBtG7N0wXn81n7+TPtw@mail.gmail.com> <d321a3c8-7f31-fb1d-6954-35b6d1d1cd08@aklaver.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