aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-07-27 16:04:12 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-07-27 16:04:12 +0200
commitdde6187c8aa81329435d9f1dde1f81eb588ca63e (patch)
tree46d2336cd9db9bd1b365ef6fc8a3d5988b2486e9
parent6600ffb83cc88ab8b34d9fc7754656c95b0355e3 (diff)
Handle special case of array of zero elements
-rw-r--r--odb/oracle/simple-object-statements.hxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/odb/oracle/simple-object-statements.hxx b/odb/oracle/simple-object-statements.hxx
index dfaf8c4..e33a7e7 100644
--- a/odb/oracle/simple-object-statements.hxx
+++ b/odb/oracle/simple-object-statements.hxx
@@ -462,7 +462,8 @@ namespace odb
//
std::size_t insert_image_version_;
binding insert_image_binding_;
- bind insert_image_bind_[insert_column_count];
+ bind insert_image_bind_[
+ insert_column_count != 0 ? insert_column_count : 1];
// Update binding. Note that the id suffix is bound to id_image_
// below instead of image_ which makes this binding effectively