aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--odb/mysql/container-statements.txx4
1 files changed, 3 insertions, 1 deletions
diff --git a/odb/mysql/container-statements.txx b/odb/mysql/container-statements.txx
index 4960d96..d4e8da6 100644
--- a/odb/mysql/container-statements.txx
+++ b/odb/mysql/container-statements.txx
@@ -58,7 +58,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].error =
select_image_truncated_array_ + i;