]> granicus.if.org Git - postgresql/commit
Improve regression tests for uuid-ossp.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 28 May 2014 18:21:17 +0000 (14:21 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 28 May 2014 18:21:17 +0000 (14:21 -0400)
commitc0f27628d2fb53e8e5d190da2132739a2bb2f500
tree7e4c65bde6d72c62ef1ecece4e88f970dfc027e8
parent2103218dd4a0c6a44d05c09c066da20e1c2360fb
Improve regression tests for uuid-ossp.

On reflection, the timestamp-advances test might fail if we're unlucky
enough for the time_mid field to change between two calls, since uuid_cmp
is just bytewise comparison and the field ordering has more significant
fields later.  Build some field extraction functions so we can do a more
honest test of that.  Also check that the version and reserved fields
contain what they should.
contrib/uuid-ossp/expected/uuid_ossp.out
contrib/uuid-ossp/sql/uuid_ossp.sql