aboutsummaryrefslogtreecommitdiff
path: root/odb/mssql/simple-object-statements.txx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/mssql/simple-object-statements.txx')
-rw-r--r--odb/mssql/simple-object-statements.txx11
1 files changed, 8 insertions, 3 deletions
diff --git a/odb/mssql/simple-object-statements.txx b/odb/mssql/simple-object-statements.txx
index a0626fa..1cdffb2 100644
--- a/odb/mssql/simple-object-statements.txx
+++ b/odb/mssql/simple-object-statements.txx
@@ -20,11 +20,14 @@ namespace odb
template <typename T>
optimistic_data<T, true>::
- optimistic_data (bind* b)
+ optimistic_data (bind* b, std::size_t skip, SQLUSMALLINT* status)
: id_image_binding_ (
b,
object_traits::id_column_count +
- object_traits::managed_optimistic_column_count)
+ object_traits::managed_optimistic_column_count,
+ object_traits::batch,
+ skip,
+ status)
{
}
@@ -59,7 +62,9 @@ namespace odb
object_traits::batch,
sizeof (images),
status_),
- od_ (update_image_bind_ + update_column_count)
+ od_ (update_image_bind_ + update_column_count,
+ sizeof (images),
+ status_)
{
images_[0].obj.version = 0; // @@ TODO [0]
images_[0].id.version = 0; // @@ TODO