From 84aa797292fab70e5c1bdbd863ff475981d0d22d Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Mon, 3 Nov 2008 22:14:40 +0000 Subject: Allow uuid_in() to parse a wider variety of variant input formats for the UUID data type. This patch takes the approach of allowing an optional hyphen after each group of four hex digits. Author: Robert Haas --- doc/src/sgml/datatype.sgml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/datatype.sgml b/doc/src/sgml/datatype.sgml index 26521661b7f..d3d2bb5c07b 100644 --- a/doc/src/sgml/datatype.sgml +++ b/doc/src/sgml/datatype.sgml @@ -1,4 +1,4 @@ - + Data Types @@ -3550,11 +3550,14 @@ a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 PostgreSQL also accepts the following alternative forms for input: use of upper-case digits, the standard format surrounded by - braces, and omitting the hyphens. Examples are: + braces, omitting some or all hyphens, adding a hyphen after any + group of four digits. Examples are: A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11 {a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11} a0eebc999c0b4ef8bb6d6bb9bd380a11 +a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11 +{a0eebc99-9c0b4ef8-bb6d6bb9-bd380a11} Output is always in the standard form. -- cgit v1.2.3