aboutsummaryrefslogtreecommitdiff
path: root/odb/mssql/view-statements.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2014-11-19 13:54:38 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2014-11-19 13:54:38 +0200
commitb10fcbcb273704026641a07e3d09643798a431dd (patch)
tree986c6be1c79f489ae14b113999616d61430cf97d /odb/mssql/view-statements.hxx
parent3b3c82b31116cc55f0e752fe69b15861e8f13d97 (diff)
Allow empty runtime and execute views
Use them to handle INSERT/UPDATE SQL Server stored procedures.
Diffstat (limited to 'odb/mssql/view-statements.hxx')
-rw-r--r--odb/mssql/view-statements.hxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/odb/mssql/view-statements.hxx b/odb/mssql/view-statements.hxx
index beb8d62..7a315a9 100644
--- a/odb/mssql/view-statements.hxx
+++ b/odb/mssql/view-statements.hxx
@@ -70,7 +70,9 @@ namespace odb
image_type image_;
std::size_t image_version_;
binding image_binding_;
- bind image_bind_[view_traits::column_count];
+ bind image_bind_[view_traits::column_count != 0
+ ? view_traits::column_count
+ : 1];
};
}
}