]> granicus.if.org Git - postgresql/commit
Rewrite uuid input and output routines to avoid dependency on the
authorNeil Conway <neilc@samurai.com>
Wed, 31 Jan 2007 19:33:54 +0000 (19:33 +0000)
committerNeil Conway <neilc@samurai.com>
Wed, 31 Jan 2007 19:33:54 +0000 (19:33 +0000)
commit05ce7d6a418633c665e8c2ace4f51deaf05846d7
tree24632e839f0fe11a6749527ba69684bd63db8855
parent068bf6534f698e0b235ae362db7c68d438979e07
Rewrite uuid input and output routines to avoid dependency on the
nonportable "hh" sprintf(3) length modifier. Instead, do the parsing
and output by hand. The code to do this isn't ideal, but this is
an interim measure anyway: the uuid type should probably use the
in-memory struct layout specified by RFC 4122. For now, this patch
should hopefully rectify the buildfarm failures for the uuid test.

Along the way, re-add pg_cast entries for uuid <-> varchar, which
I mistakenly removed earlier, and bump the catversion.
src/backend/utils/adt/uuid.c
src/include/catalog/catversion.h
src/include/catalog/pg_cast.h
src/test/regress/expected/uuid.out
src/test/regress/sql/uuid.sql