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 /mssql/types/test.hxx | |
parent | 32fcd732e2535090174142dd15b8b74fc444a9c2 (diff) |
Add support for mapping std::array to BLOB and char[16] to UUID types
Diffstat (limited to 'mssql/types/test.hxx')
-rw-r--r-- | mssql/types/test.hxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mssql/types/test.hxx b/mssql/types/test.hxx index b89a621..d735acf 100644 --- a/mssql/types/test.hxx +++ b/mssql/types/test.hxx @@ -241,6 +241,9 @@ struct object GUID guid_; #endif + #pragma db type ("UNIQUEIDENTIFIER") + char uuid_[16]; + bool operator== (const object& y) const { @@ -301,7 +304,7 @@ struct object #ifdef _WIN32 && std::memcmp (&guid_, &y.guid_, sizeof (guid_)) == 0 #endif - ; + && std::memcmp (uuid_, y.uuid_, sizeof (uuid_)) == 0; } }; |