pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Dave Page <dpage@vale-housing.co.uk>
Cc: 'pgsql-interfaces@postgresql.org' <pgsql-interfaces@postgresql.org>
Subject: Re: ODBC: Declare/Fetch & SELECT INTO
Date: Thu, 31 Aug 2000 17:47:07 -0400
Message-ID: <11286.967758427@sss.pgh.pa.us> (raw)
In-Reply-To: <8568FC767B4AD311AC33006097BCD3D6091945@woody.vale-housing.co.uk>
References: <8568FC767B4AD311AC33006097BCD3D6091945@woody.vale-housing.co.uk>

Dave Page <dpage@vale-housing.co.uk> writes:
> The following is from the commlog - the table is not created, and no error
> is raised:
> conn=52758652, query='declare SQL_CUR0325413C cursor for SELECT * INTO
> pgadmin_desc FROM pg_description WHERE objoid > 18655'

Hmm.  I'd say that that should raise an error, since you are giving the
backend conflicting instructions about where to deliver the selected
tuples (through the cursor, or into a new table).  I think right now
the code simply ignores the INTO clause when the context is a cursor
declaration, but giving an error if both are specified seems more
appropriate.

However, that might not help you very much :-(.  I take it you are
just issuing a SELECT INTO command yourself, and ODBC is tacking on
the DECLARE CURSOR part?  Seems ODBC needs to know not to do that
for a SELECT INTO.

			regards, tom lane



view thread (3+ messages)  latest in thread

Message-ID: <11286.967758427@sss.pgh.pa.us>
Permalink:  ../11286.967758427@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/11286.967758427@sss.pgh.pa.us

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: tgl@sss.pgh.pa.us, dpage@vale-housing.co.uk
  Subject: Re: ODBC: Declare/Fetch & SELECT INTO
  In-Reply-To: <11286.967758427@sss.pgh.pa.us>

* 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