diff options
-rw-r--r-- | odb/oracle/simple-object-statements.hxx | 3 |
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 |