dbTalk Databases Forums  

Re: [BUGS] plpgsql doesn't check a number of expressions and numberof target variables correctly

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss Re: [BUGS] plpgsql doesn't check a number of expressions and numberof target variables correctly in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Pavel Stehule
 
Posts: n/a

Default Re: [BUGS] plpgsql doesn't check a number of expressions and numberof target variables correctly - 03-05-2012 , 02:08 PM






2012/3/5 Tom Lane <tgl (AT) sss (DOT) pgh.pa.us>:
Quote:
Pavel Stehule <pavel.stehule (AT) gmail (DOT) com> writes:
Hello
I found a plpgsql bug:

create or replace function fx()
returns void as $$
declare a int; b int;
begin
Â* select 10,20 into a;
end;
$$ language plpgsql;

this is bug, or minimally potential source of strange behave.

AFAICS this is intentional --- see the comment in exec_move_row.

In any case, I think tightening it up is more likely to break working
applications than do anything helpful.
I agree with you about break working application But this is good
example what should be checked in CHECK statement.

but it should be bug - it has no sense - no in this form - it is
assign row to scalar.

I found a some mysterious and very difficult identified bugs in one
application based on this behave.

Regards

Pavel

Quote:
Â* Â* Â* Â* Â* Â* Â* Â* Â* Â* Â* Â*regards, tom lane
--
Sent via pgsql-bugs mailing list (pgsql-bugs (AT) postgresql (DOT) org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.