From: Adrian Klaver <adrian.klaver@gmail.com>
To: James Sharrett <jsharrett@tidemark.net>
Cc: pgsql-sql@postgresql.org
Subject: Re: returning the number of rows output by a copy command from a function
Date: Wed, 16 Jan 2013 09:21:35 -0800
Message-ID: <50F6E19F.20609@gmail.com> (raw)
In-Reply-To: <CD1C4A00.6D1D%jsharrett@tidemark.net>
References: <CD1C4A00.6D1D%jsharrett@tidemark.net>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-sql>
On 01/16/2013 09:16 AM, James Sharrett wrote:
> The problem I have is that I get nothing back when the COPY is run inside
> the function other than what I explicitly return from the function so I
> don't have anything to parse. It's odd that the record count in the
> function is treated differently than from sql query in GET DIAGNOSTIC
> since the format and information in the string (when run outside of the
> function) are exactly the same.
>
Execute strSQL into export_count;
What is export_count DECLAREd as?
--
Adrian Klaver
adrian.klaver@gmail.com
--
Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql
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-sql@postgresql.org
Cc: adrian.klaver@gmail.com, jsharrett@tidemark.net
Subject: Re: returning the number of rows output by a copy command from a function
In-Reply-To: <50F6E19F.20609@gmail.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