aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--odb/pgsql/statement.cxx13
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;
+ }
}
}