From ffa829ac964ec0932a08192d718bad774a49cbe2 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 20 Jan 2016 18:51:44 +0200 Subject: Add note on PG UUID format --- odb/boost/uuid/pgsql/uuid-traits.hxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/odb/boost/uuid/pgsql/uuid-traits.hxx b/odb/boost/uuid/pgsql/uuid-traits.hxx index f0f10ac..235e316 100644 --- a/odb/boost/uuid/pgsql/uuid-traits.hxx +++ b/odb/boost/uuid/pgsql/uuid-traits.hxx @@ -31,6 +31,11 @@ namespace odb typedef value_type query_type; typedef unsigned char* image_type; + // PostgreSQL binary UUID representation is big-endian in the RFC 4122, + // section 4.1.2 order. Lucky for us, that also the representation used + // by Boost. + // + static void set_value (value_type& v, const unsigned char* i, bool is_null) { -- cgit v1.1