diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2012-09-11 13:55:48 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2012-09-11 13:55:48 +0200 |
commit | d87a78e24d5988cfa3556707b7beffd1b0c15901 (patch) | |
tree | 32115e06a1bdade66efea1e304ba5863feaa5a21 /pgsql/types/driver.cxx | |
parent | 32fcd732e2535090174142dd15b8b74fc444a9c2 (diff) |
Add support for mapping std::array to BLOB and char[16] to UUID types
Diffstat (limited to 'pgsql/types/driver.cxx')
-rw-r--r-- | pgsql/types/driver.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pgsql/types/driver.cxx b/pgsql/types/driver.cxx index 724a068..8b51cc5 100644 --- a/pgsql/types/driver.cxx +++ b/pgsql/types/driver.cxx @@ -61,6 +61,10 @@ main (int argc, char* argv[]) o.bit_.c = 0; o.bit_.d = 1; + // 6F846D41-C89A-4E4D-B22F-56443CFA543F + memcpy (o.uuid_, "\x6F\x84\x6D\x41\xC8\x9A\x4E\x4D\xB2\x2F" + "\x56\x44\x3C\xFA\x54\x3F", 16); + o.enum_ = green; // Persist. |