PL/PgSQL: RAISE and the number of parameters

From: Marko Tiikkaja <marko(at)joh(dot)to>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: PL/PgSQL: RAISE and the number of parameters
Date: 2014-07-26 18:39:15
Message-ID: 53D3F5D3.4070900@joh.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Me again,

Here's a patch for making PL/PgSQL throw an error during compilation
(instead of runtime) if the number of parameters passed to RAISE don't
match the number of placeholders in error message. I'm sure people can
see the pros of doing it this way.

.marko

Attachment Content-Type Size
raise_check_number_of_arguments.v1.patch text/plain 4.4 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2014-07-26 18:39:50 Re: PL/PgSQL: EXIT USING ROLLBACK
Previous Message Marko Tiikkaja 2014-07-26 18:27:26 Re: PL/PgSQL: EXIT USING ROLLBACK