/usr/include/odb/pgsql/section-statements.txx is in libodb-pgsql-dev 2.4.0-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | // file : odb/pgsql/section-statements.txx
// copyright : Copyright (c) 2005-2015 Code Synthesis Tools CC
// license : GNU GPL v2; see accompanying LICENSE file
#include <cstring> // std::memset
namespace odb
{
namespace pgsql
{
template <typename T, typename ST>
section_statements<T, ST>::
section_statements (connection_type& conn,
image_type& im,
id_image_type&,
binding& id,
binding& idv,
native_binding& idn,
const Oid* idt)
: conn_ (conn),
svm_ (0),
image_ (im),
id_binding_ (id),
idv_binding_ (idv),
id_native_binding_ (idn),
id_types_ (idt),
select_image_binding_ (select_image_bind_,
select_column_count +
managed_optimistic_load_column_count),
update_image_binding_ (update_image_bind_,
update_column_count + id_column_count +
managed_optimistic_update_column_count),
update_image_native_binding_ (update_image_values_,
update_image_lengths_,
update_image_formats_,
update_column_count + id_column_count +
managed_optimistic_update_column_count)
{
select_image_version_ = 0;
update_image_version_ = 0;
update_id_binding_version_ = 0;
std::memset (select_image_bind_, 0, sizeof (select_image_bind_));
std::memset (
select_image_truncated_, 0, sizeof (select_image_truncated_));
std::memset (update_image_bind_, 0, sizeof (update_image_bind_));
for (std::size_t i (0); i < select_bind_count; ++i)
select_image_bind_[i].truncated = select_image_truncated_ + i;
}
}
}
|