Re: Malformed Array Literal in PL/pgSQL Exception Block

From: "David E(dot) Wheeler" <david(at)justatheory(dot)com>
To: Andrew Gierth <andrew(at)tao11(dot)riddles(dot)org(dot)uk>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Malformed Array Literal in PL/pgSQL Exception Block
Date: 2017-04-10 04:53:42
Message-ID: C07D650C-A941-446A-83E3-FB6C07E9CD1B@justatheory.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Apr 9, 2017, at 9:52 PM, Andrew Gierth <andrew(at)tao11(dot)riddles(dot)org(dot)uk> wrote:

> This "raise" statement is not reached, because the previous line raises
> the "malformed array literal" error.

Bah!

> David> EXCEPTION WHEN OTHERS THEN
>
> If you change this to EXCEPTION WHEN division_by_zero THEN, the
> reported error becomes:
>
> ERROR: malformed array literal: "foo"
> LINE 1: SELECT things || 'foo'

So the issue stands, yes?

D

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Gierth 2017-04-10 04:59:04 Re: Malformed Array Literal in PL/pgSQL Exception Block
Previous Message Andrew Gierth 2017-04-10 04:52:40 Re: Malformed Array Literal in PL/pgSQL Exception Block