Fixed PL/Python hint about array of composites

From: Daniele Varrazzo <daniele(dot)varrazzo(at)gmail(dot)com>
To: pgsql-bugs <pgsql-bugs(at)postgresql(dot)org>
Subject: Fixed PL/Python hint about array of composites
Date: 2017-05-29 16:38:59
Message-ID: CA+mi_8YOnvOG79vm+XzQ+a5v3TmFM7ynaNiKzMoz-DhPkRT23g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The error message hint suggests [('foo')]. ('foo') is not a valid
Python tuple: it's a literal with redundant parentheses. ('foo',) is a
valid tuple.

Patch to correct the hints and an occurrence in the test suite attached.

-- Daniele

Attachment Content-Type Size
0001-Fixed-hint-about-returning-composite-type-from-Pytho.patch text/x-patch 2.6 KB

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Daniele Varrazzo 2017-05-29 16:43:24 Re: Fixed PL/Python hint about array of composites
Previous Message marko 2017-05-29 15:38:47 BUG #14676: neqsel is NULL dumb