blob: 95579b48143f48fe7e2f4fbc16951f2a4ec62c6f (
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
|
// file : odb/mysql/statement.txx
// author : Boris Kolpackov <boris@codesynthesis.com>
// copyright : Copyright (c) 2005-2010 Code Synthesis Tools CC
// license : GNU GPL v2; see accompanying LICENSE file
#include <cstddef> // std::size_t
#include <cstring> // std::memset
namespace odb
{
namespace mysql
{
// object_statements
//
template <typename T>
object_statements<T>::
object_statements (connection& conn)
: object_statements_base (conn),
image_binding_ (image_bind_, object_traits::column_count),
id_image_binding_ (image_bind_ + object_traits::column_count, 1)
{
std::memset (image_bind_, 0, sizeof (image_bind_));
std::memset (image_error_, 0, sizeof (image_error_));
for (std::size_t i (0); i < object_traits::column_count; ++i)
image_bind_[i].error = image_error_ + i;
}
}
}
|