diff options
author | Constantin Michael <constantin@codesynthesis.com> | 2011-07-04 10:12:16 +0200 |
---|---|---|
committer | Constantin Michael <constantin@codesynthesis.com> | 2011-07-04 10:12:16 +0200 |
commit | 3a8e45edf5cf3b89093db368ec3b0aacd17b9523 (patch) | |
tree | 98641442a9d2261578e8971250799ea01f844ffb | |
parent | 0bf87e33b786fc64ae5bf059205de1fa674ab788 (diff) |
Add missing image buffer type cases to bind_result implementation
-rw-r--r-- | odb/pgsql/statement.cxx | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/odb/pgsql/statement.cxx b/odb/pgsql/statement.cxx index 2c2bd8b..233519c 100644 --- a/odb/pgsql/statement.cxx +++ b/odb/pgsql/statement.cxx @@ -191,6 +191,11 @@ namespace odb switch (b.type) { + case bind::boolean: + { + *static_cast<bool*> (b.buffer) = + reinterpret_cast<const bool*> (v); + } case bind::smallint: { *static_cast<short*> (b.buffer) = @@ -229,7 +234,8 @@ namespace odb case bind::numeric: case bind::text: case bind::bytea: - default: + case bind::bit: + case bind::varbit: { *b.size = static_cast<size_t> (PQgetlength (result, int_row, i)); @@ -246,6 +252,11 @@ namespace odb break; } + case bind::uuid: + { + memcpy (b.buffer, v, 16); + break; + } } } |