aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--odb/mssql/simple-object-statements.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/odb/mssql/simple-object-statements.hxx b/odb/mssql/simple-object-statements.hxx
index 7002ecb..f892153 100644
--- a/odb/mssql/simple-object-statements.hxx
+++ b/odb/mssql/simple-object-statements.hxx
@@ -431,7 +431,7 @@ namespace odb
(object_traits::auto_id ? id_column_count : 0);
static const std::size_t update_column_count = insert_column_count -
- (object_traits::auto_id ? 0 : object_traits::id_column_count) -
+ (object_traits::auto_id ? 0 : id_column_count) -
object_traits::readonly_column_count;
private: