aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--odb/pgsql/container-statements.txx4
1 files changed, 3 insertions, 1 deletions
diff --git a/odb/pgsql/container-statements.txx b/odb/pgsql/container-statements.txx
index 74948f2..7008cbb 100644
--- a/odb/pgsql/container-statements.txx
+++ b/odb/pgsql/container-statements.txx
@@ -70,7 +70,9 @@ namespace odb
0,
sizeof (select_image_truncated_array_));
- for (std::size_t i (0); i < traits::data_column_count; ++i)
+ for (std::size_t i (0);
+ i < traits::data_column_count - traits::id_column_count;
+ ++i)
data_image_bind_[i + traits::id_column_count].truncated =
select_image_truncated_array_ + i;