diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-11-03 08:16:50 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-11-03 08:16:50 +0200 |
commit | 219bdeab80c06ea4ffc4f5333b58d27d0e588b4b (patch) | |
tree | db8ca657babb9be64d45bc62dd6cb1ddcc222a79 /doc | |
parent | c7bac911f0d0c2c542841426f870ef882eb4303d (diff) |
Add support for mapping std::vector<unsigned char> to BLOB types
Diffstat (limited to 'doc')
-rw-r--r-- | doc/manual.xhtml | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/doc/manual.xhtml b/doc/manual.xhtml index 57e7338..3925dea 100644 --- a/doc/manual.xhtml +++ b/doc/manual.xhtml @@ -9788,9 +9788,10 @@ aCC +W2161 ... it is mapped to <code>TEXT</code>.</p> <p>The MySQL ODB runtime library also provides support for mapping the - <code>std::vector<char></code> type to the MySQL BLOB types. - However, this mapping is not enabled by default (by default, - <code>std::vector<char></code> will be treated as a container). + <code>std::vector<char></code> and + <code>std::vector<unsigned char></code> types to the MySQL + BLOB types. However, this mapping is not enabled by default (by + default, <code>std::vector</code> will be treated as a container). To enable the BLOB mapping for this type we need to specify the database type explicitly using the <code>db type</code> pragma (<a href="#11.4.3">Section 11.4.3, "<code>type</code>"</a>), @@ -10413,9 +10414,10 @@ namespace odb </table> <p>The SQLite ODB runtime library also provides support for mapping the - <code>std::vector<char></code> type to the SQLite BLOB type. - However, this mapping is not enabled by default (by default, - <code>std::vector<char></code> will be treated as a container). + <code>std::vector<char></code> and + <code>std::vector<unsigned char></code> types to the SQLite + BLOB type. However, this mapping is not enabled by default (by default, + <code>std::vector</code> will be treated as a container). To enable the BLOB mapping for this type we need to specify the database type explicitly using the <code>db type</code> pragma (<a href="#11.4.3">Section 11.4.3, "<code>type</code>"</a>), @@ -11150,9 +11152,10 @@ CREATE TABLE Employee ( </table> <p>The PostgreSQL ODB runtime library also provides support for mapping the - <code>std::vector<char></code> type to the PostgreSQL <code>BYTEA</code> - type. However, this mapping is not enabled by default (by default, - <code>std::vector<char></code> will be treated as a container). + <code>std::vector<char></code> and + <code>std::vector<unsigned char></code> types to the PostgreSQL + <code>BYTEA</code> type. However, this mapping is not enabled by default + (by default, <code>std::vector</code> will be treated as a container). To enable the <code>BYTEA</code> mapping for this type we need to specify the database type explicitly using the <code>db type</code> pragma (<a href="#11.4.3">Section 11.4.3, "<code>type</code>"</a>), |