From dde6187c8aa81329435d9f1dde1f81eb588ca63e Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 27 Jul 2012 16:04:12 +0200 Subject: Handle special case of array of zero elements --- odb/oracle/simple-object-statements.hxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'odb') 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 -- cgit v1.1