Re: returning the number of rows output by a copy command from a function

From: James Sharrett <jsharrett(at)tidemark(dot)net>
To: <pgsql-sql(at)postgresql(dot)org>
Subject: Re: returning the number of rows output by a copy command from a function
Date: 2013-01-16 17:26:05
Message-ID: CD1C4CC8.6D2C%jsharrett@tidemark.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Integer

On 1/16/13 12:21 PM, "Adrian Klaver" <adrian(dot)klaver(at)gmail(dot)com> wrote:

>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(dot)klaver(at)gmail(dot)com

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Adrian Klaver 2013-01-16 17:29:15 Re: returning the number of rows output by a copy command from a function
Previous Message Adrian Klaver 2013-01-16 17:21:35 Re: returning the number of rows output by a copy command from a function