Re: BUG #16726: Invalid input syntax is not a useful error message

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Christophe Pettus <xof(at)thebuild(dot)com>
Cc: nozdrum(at)gmx(dot)de, PostgreSQL mailing lists <pgsql-bugs(at)lists(dot)postgresql(dot)org>
Subject: Re: BUG #16726: Invalid input syntax is not a useful error message
Date: 2020-11-19 00:22:11
Message-ID: CAKFQuwaAMEoAZK8fj2F1WDFjB=VL6qt50_0dnKR8rx6NvtG2RQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Wed, Nov 18, 2020 at 5:20 PM Christophe Pettus <xof(at)thebuild(dot)com> wrote:

> > 123e4567-e89b-12d3-a456-426614174000
> > xxxxxxxx-xxxx-Mxxx-Nxxx-xxxxxxxxxxxx
>
> The error message is exactly correct: You did not give the correct format
> for the character representation of the UUID.
>
>
I wouldn't oppose a "Hint: expected length is 32 hex characters but the
input only has 28."

UUIDs aren't exactly friendly to the eyes, even hyphenated.

David J.

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Andres Freund 2020-11-19 00:22:25 Re: BUG #16726: Invalid input syntax is not a useful error message
Previous Message Christophe Pettus 2020-11-19 00:19:57 Re: BUG #16726: Invalid input syntax is not a useful error message