Re: Concern about new PL/Perl

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: PL/Perl <plperlng-devel(at)pgfoundry(dot)org>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Concern about new PL/Perl
Date: 2004-11-15 12:35:16
Message-ID: 4198A284.7070202@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Peter Eisentraut wrote:

>It seems that in the new PL/Perl, the result of the spi_exec_query
>function changes in meaning depending on the command. For a SELECT,
>the value of
>
>$res->{rows}
>
>is a reference to an array of the result rows.
>
>For a different command
>
>$res->{rows}
>
>is a scalar containing the number of affected rows. I think this is a
>poor design. Couldn't we have a different result field that always
>contains the number of rows?
>
>

I don't recall seeing any reply to this, but I'm inclined to agree with it.

Joshua, any comment from CP?

cheers

andrew

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Oleg Bartunov 2004-11-15 12:43:07 Re: GiST: PickSplit and multi-attr indexes
Previous Message Mike Rylander 2004-11-15 11:36:29 Re: Odd plpgsql behaviour