aboutsummaryrefslogtreecommitdiff
path: root/odb/mssql/view-statements.txx
blob: e4e47d8eed6c0e95dd530543d664c97f2fcb4594 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// file      : odb/mssql/view-statements.txx
// author    : Boris Kolpackov <boris@codesynthesis.com>
// copyright : Copyright (c) 2005-2011 Code Synthesis Tools CC
// license   : ODB NCUEL; see accompanying LICENSE file

#include <cstring> // std::memset

namespace odb
{
  namespace mssql
  {
    template <typename T>
    view_statements<T>::
    ~view_statements ()
    {
    }

    template <typename T>
    view_statements<T>::
    view_statements (connection_type& conn)
        : statements_base (conn),
          image_binding_ (image_bind_, view_traits::column_count)
    {
      image_.version = 0;
      image_version_ = 0;

      //@@ TODO
      // image_binding_.change_callback = image_.change_callback ();

      std::memset (image_bind_, 0, sizeof (image_bind_));
    }
  }
}