Concern about new PL/Perl - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Concern about new PL/Perl
Date
Msg-id 200411061435.23193.peter_e@gmx.net
Whole thread Raw
Responses Re: Concern about new PL/Perl  (Andrew Dunstan <andrew@dunslane.net>)
List pgsql-hackers
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?

-- 
Peter Eisentraut
http://developer.postgresql.org/~petere/



pgsql-hackers by date:

Previous
From: Simon Riggs
Date:
Subject: Re: Release schedule plans
Next
From: Joachim Wieland
Date:
Subject: Re: Documentation on PITR still scarce