auto-handle.hxx | auto-handle.hxx | |||
---|---|---|---|---|
// file : odb/pgsql/auto-handle.hxx | // file : odb/pgsql/auto-handle.hxx | |||
// author : Constantin Michael <constantin@codesynthesis.com> | // copyright : Copyright (c) 2005-2012 Code Synthesis Tools CC | |||
// copyright : Copyright (c) 2005-2011 Code Synthesis Tools CC | ||||
// license : GNU GPL v2; see accompanying LICENSE file | // license : GNU GPL v2; see accompanying LICENSE file | |||
#ifndef ODB_PGSQL_AUTO_HANDLE_HXX | #ifndef ODB_PGSQL_AUTO_HANDLE_HXX | |||
#define ODB_PGSQL_AUTO_HANDLE_HXX | #define ODB_PGSQL_AUTO_HANDLE_HXX | |||
#include <odb/pre.hxx> | #include <odb/pre.hxx> | |||
#include <odb/pgsql/version.hxx> | #include <odb/pgsql/version.hxx> | |||
#include <odb/pgsql/pgsql-fwd.hxx> // PGconn, PGresult | #include <odb/pgsql/pgsql-fwd.hxx> // PGconn, PGresult | |||
End of changes. 1 change blocks. | ||||
2 lines changed or deleted | 1 lines changed or added | |||
binding.hxx | binding.hxx | |||
---|---|---|---|---|
// file : odb/pgsql/binding.hxx | // file : odb/pgsql/binding.hxx | |||
// author : Constantin Michael <constantin@codesynthesis.com> | // copyright : Copyright (c) 2005-2012 Code Synthesis Tools CC | |||
// copyright : Copyright (c) 2005-2011 Code Synthesis Tools CC | ||||
// license : GNU GPL v2; see accompanying LICENSE file | // license : GNU GPL v2; see accompanying LICENSE file | |||
#ifndef ODB_PGSQL_BINDING_HXX | #ifndef ODB_PGSQL_BINDING_HXX | |||
#define ODB_PGSQL_BINDING_HXX | #define ODB_PGSQL_BINDING_HXX | |||
#include <odb/pre.hxx> | #include <odb/pre.hxx> | |||
#include <cstddef> // std::size_t | #include <cstddef> // std::size_t | |||
#include <odb/pgsql/version.hxx> | #include <odb/pgsql/version.hxx> | |||
End of changes. 1 change blocks. | ||||
2 lines changed or deleted | 1 lines changed or added | |||
config.h | config.h | |||
---|---|---|---|---|
/* odb/pgsql/details/config.h. Generated from config.h.in by configure. * / | /* odb/pgsql/details/config.h. Generated from config.h.in by configure. * / | |||
/* file : odb/pgsql/details/config.h.in | /* file : odb/pgsql/details/config.h.in | |||
* author : Constantin Michael <constantin@codesynthesis.com> | * copyright : Copyright (c) 2009-2012 Code Synthesis Tools CC | |||
* copyright : Copyright (c) 2009-2011 Code Synthesis Tools CC | ||||
* license : GNU GPL v2; see accompanying LICENSE file | * license : GNU GPL v2; see accompanying LICENSE file | |||
*/ | */ | |||
/* This file is automatically processed by configure. */ | /* This file is automatically processed by configure. */ | |||
#ifndef ODB_PGSQL_DETAILS_CONFIG_H | #ifndef ODB_PGSQL_DETAILS_CONFIG_H | |||
#define ODB_PGSQL_DETAILS_CONFIG_H | #define ODB_PGSQL_DETAILS_CONFIG_H | |||
/* #undef LIBODB_PGSQL_STATIC_LIB */ | /* #undef LIBODB_PGSQL_STATIC_LIB */ | |||
End of changes. 1 change blocks. | ||||
2 lines changed or deleted | 1 lines changed or added | |||
config.hxx | config.hxx | |||
---|---|---|---|---|
// file : odb/pgsql/details/config.hxx | // file : odb/pgsql/details/config.hxx | |||
// author : Constantin Michael <constantin@codesynthesis.com> | // copyright : Copyright (c) 2005-2012 Code Synthesis Tools CC | |||
// copyright : Copyright (c) 2005-2011 Code Synthesis Tools CC | ||||
// license : GNU GPL v2; see accompanying LICENSE file | // license : GNU GPL v2; see accompanying LICENSE file | |||
#ifndef ODB_PGSQL_DETAILS_CONFIG_HXX | #ifndef ODB_PGSQL_DETAILS_CONFIG_HXX | |||
#define ODB_PGSQL_DETAILS_CONFIG_HXX | #define ODB_PGSQL_DETAILS_CONFIG_HXX | |||
// no pre | // no pre | |||
#ifdef _MSC_VER | #ifdef _MSC_VER | |||
#elif defined(ODB_COMPILER) | #elif defined(ODB_COMPILER) | |||
# error libodb-pgsql header included in odb-compiled header | # error libodb-pgsql header included in odb-compiled header | |||
End of changes. 1 change blocks. | ||||
2 lines changed or deleted | 1 lines changed or added | |||
connection-factory.hxx | connection-factory.hxx | |||
---|---|---|---|---|
// file : odb/pgsql/connection-factory.hxx | // file : odb/pgsql/connection-factory.hxx | |||
// author : Constantin Michael <constantin@codesynthesis.com> | // copyright : Copyright (c) 2009-2012 Code Synthesis Tools CC | |||
// copyright : Copyright (c) 2009-2011 Code Synthesis Tools CC | ||||
// license : GNU GPL v2; see accompanying LICENSE file | // license : GNU GPL v2; see accompanying LICENSE file | |||
#ifndef ODB_PGSQL_CONNECTION_FACTORY_HXX | #ifndef ODB_PGSQL_CONNECTION_FACTORY_HXX | |||
#define ODB_PGSQL_CONNECTION_FACTORY_HXX | #define ODB_PGSQL_CONNECTION_FACTORY_HXX | |||
#include <odb/pre.hxx> | #include <odb/pre.hxx> | |||
#include <vector> | #include <vector> | |||
#include <cstddef> // std::size_t | #include <cstddef> // std::size_t | |||
End of changes. 1 change blocks. | ||||
2 lines changed or deleted | 1 lines changed or added | |||
connection.hxx | connection.hxx | |||
---|---|---|---|---|
// file : odb/pgsql/connection.hxx | // file : odb/pgsql/connection.hxx | |||
// author : Constantin Michael <constantin@codesynthesis.com> | // copyright : Copyright (c) 2005-2012 Code Synthesis Tools CC | |||
// copyright : Copyright (c) 2005-2011 Code Synthesis Tools CC | ||||
// license : GNU GPL v2; see accompanying LICENSE file | // license : GNU GPL v2; see accompanying LICENSE file | |||
#ifndef ODB_PGSQL_CONNECTION_HXX | #ifndef ODB_PGSQL_CONNECTION_HXX | |||
#define ODB_PGSQL_CONNECTION_HXX | #define ODB_PGSQL_CONNECTION_HXX | |||
#include <odb/pre.hxx> | #include <odb/pre.hxx> | |||
#include <memory> // std::auto_ptr | #include <memory> // std::auto_ptr | |||
#include <odb/forward.hxx> | #include <odb/forward.hxx> | |||
End of changes. 1 change blocks. | ||||
2 lines changed or deleted | 1 lines changed or added | |||
container-statements.hxx | container-statements.hxx | |||
---|---|---|---|---|
// file : odb/pgsql/container-statements.hxx | // file : odb/pgsql/container-statements.hxx | |||
// author : Constantin Michael <constantin@codesynthesis.com> | // copyright : Copyright (c) 2005-2012 Code Synthesis Tools CC | |||
// copyright : Copyright (c) 2005-2011 Code Synthesis Tools CC | ||||
// license : GNU GPL v2; see accompanying LICENSE file | // license : GNU GPL v2; see accompanying LICENSE file | |||
#ifndef ODB_PGSQL_CONTAINER_STATEMENTS_HXX | #ifndef ODB_PGSQL_CONTAINER_STATEMENTS_HXX | |||
#define ODB_PGSQL_CONTAINER_STATEMENTS_HXX | #define ODB_PGSQL_CONTAINER_STATEMENTS_HXX | |||
#include <odb/pre.hxx> | #include <odb/pre.hxx> | |||
#include <cstddef> // std::size_t | #include <cstddef> // std::size_t | |||
#include <odb/forward.hxx> | #include <odb/forward.hxx> | |||
skipping to change at line 173 | skipping to change at line 172 | |||
{ | { | |||
return data_image_truncated_; | return data_image_truncated_; | |||
} | } | |||
native_binding& | native_binding& | |||
data_image_native_binding () | data_image_native_binding () | |||
{ | { | |||
return data_image_native_binding_; | return data_image_native_binding_; | |||
} | } | |||
binding& | ||||
select_image_binding () | ||||
{ | ||||
return select_image_binding_; | ||||
} | ||||
bool* | ||||
select_image_truncated () | ||||
{ | ||||
return select_image_truncated_; | ||||
} | ||||
// | // | |||
// Statements. | // Statements. | |||
// | // | |||
insert_statement_type& | insert_statement_type& | |||
insert_one_statement () | insert_one_statement () | |||
{ | { | |||
if (insert_one_ == 0) | if (insert_one_ == 0) | |||
{ | { | |||
insert_one_.reset ( | insert_one_.reset ( | |||
skipping to change at line 212 | skipping to change at line 223 | |||
{ | { | |||
select_all_.reset ( | select_all_.reset ( | |||
new (details::shared) select_statement_type ( | new (details::shared) select_statement_type ( | |||
conn_, | conn_, | |||
select_all_name_, | select_all_name_, | |||
select_all_text_, | select_all_text_, | |||
select_all_types_, | select_all_types_, | |||
select_all_count_, | select_all_count_, | |||
cond_image_binding_, | cond_image_binding_, | |||
cond_image_native_binding_, | cond_image_native_binding_, | |||
data_image_binding_, | select_image_binding_, | |||
false)); | false)); | |||
} | } | |||
return *select_all_; | return *select_all_; | |||
} | } | |||
delete_statement_type& | delete_statement_type& | |||
delete_all_statement () | delete_all_statement () | |||
{ | { | |||
if (delete_all_ == 0) | if (delete_all_ == 0) | |||
skipping to change at line 253 | skipping to change at line 264 | |||
protected: | protected: | |||
connection_type& conn_; | connection_type& conn_; | |||
functions_type functions_; | functions_type functions_; | |||
const binding* id_binding_; | const binding* id_binding_; | |||
cond_image_type cond_image_; | cond_image_type cond_image_; | |||
std::size_t cond_image_version_; | std::size_t cond_image_version_; | |||
std::size_t cond_id_binding_version_; | std::size_t cond_id_binding_version_; | |||
binding cond_image_binding_; | binding cond_image_binding_; | |||
bind* cond_image_bind_; | ||||
native_binding cond_image_native_binding_; | native_binding cond_image_native_binding_; | |||
data_image_type data_image_; | data_image_type data_image_; | |||
std::size_t data_image_version_; | std::size_t data_image_version_; | |||
std::size_t data_id_binding_version_; | std::size_t data_id_binding_version_; | |||
binding data_image_binding_; | binding data_image_binding_; | |||
bind* data_image_bind_; | ||||
bool* data_image_truncated_; | bool* data_image_truncated_; | |||
native_binding data_image_native_binding_; | native_binding data_image_native_binding_; | |||
// Skips the id from data_image_binding. | ||||
// | ||||
binding select_image_binding_; | ||||
bool* select_image_truncated_; | ||||
const char* insert_one_name_; | const char* insert_one_name_; | |||
const char* insert_one_text_; | const char* insert_one_text_; | |||
const Oid* insert_one_types_; | const Oid* insert_one_types_; | |||
std::size_t insert_one_count_; | std::size_t insert_one_count_; | |||
const char* select_all_name_; | const char* select_all_name_; | |||
const char* select_all_text_; | const char* select_all_text_; | |||
const Oid* select_all_types_; | const Oid* select_all_types_; | |||
std::size_t select_all_count_; | std::size_t select_all_count_; | |||
skipping to change at line 301 | skipping to change at line 316 | |||
typedef typename T::statements_type base; | typedef typename T::statements_type base; | |||
typedef pgsql::connection connection_type; | typedef pgsql::connection connection_type; | |||
container_statements_impl (connection_type&); | container_statements_impl (connection_type&); | |||
private: | private: | |||
container_statements_impl (const container_statements_impl&); | container_statements_impl (const container_statements_impl&); | |||
container_statements_impl& operator= (const container_statements_impl &); | container_statements_impl& operator= (const container_statements_impl &); | |||
private: | private: | |||
bind cond_image_bind_array_[traits::cond_column_count]; | bind cond_image_bind_[traits::cond_column_count]; | |||
char* cond_image_values_[traits::cond_column_count]; | char* cond_image_values_[traits::cond_column_count]; | |||
int cond_image_lengths_[traits::cond_column_count]; | int cond_image_lengths_[traits::cond_column_count]; | |||
int cond_image_formats_[traits::cond_column_count]; | int cond_image_formats_[traits::cond_column_count]; | |||
bind data_image_bind_array_[traits::data_column_count]; | bind data_image_bind_[traits::data_column_count]; | |||
char* data_image_values_[traits::data_column_count]; | char* data_image_values_[traits::data_column_count]; | |||
int data_image_lengths_[traits::data_column_count]; | int data_image_lengths_[traits::data_column_count]; | |||
int data_image_formats_[traits::data_column_count]; | int data_image_formats_[traits::data_column_count]; | |||
bool data_image_truncated_array_[traits::data_column_count]; | bool data_image_truncated_array_[traits::data_column_count]; | |||
}; | }; | |||
} | } | |||
} | } | |||
#include <odb/pgsql/container-statements.txx> | #include <odb/pgsql/container-statements.txx> | |||
End of changes. 9 change blocks. | ||||
7 lines changed or deleted | 22 lines changed or added | |||
container-statements.txx | container-statements.txx | |||
---|---|---|---|---|
// file : odb/pgsql/container-statements.txx | // file : odb/pgsql/container-statements.txx | |||
// author : Constantin Michael <constantin@codesynthesis.com> | // copyright : Copyright (c) 2005-2012 Code Synthesis Tools CC | |||
// copyright : Copyright (c) 2005-2011 Code Synthesis Tools CC | ||||
// license : GNU GPL v2; see accompanying LICENSE file | // license : GNU GPL v2; see accompanying LICENSE file | |||
#include <cstddef> // std::size_t | #include <cstddef> // std::size_t | |||
#include <cstring> // std::memset | #include <cstring> // std::memset | |||
namespace odb | namespace odb | |||
{ | { | |||
namespace pgsql | namespace pgsql | |||
{ | { | |||
// container_statements | // container_statements | |||
skipping to change at line 25 | skipping to change at line 24 | |||
template <typename T> | template <typename T> | |||
container_statements<T>:: | container_statements<T>:: | |||
container_statements (connection_type& conn) | container_statements (connection_type& conn) | |||
: conn_ (conn), | : conn_ (conn), | |||
functions_ (this, | functions_ (this, | |||
&traits::insert_one, | &traits::insert_one, | |||
&traits::load_all, | &traits::load_all, | |||
&traits::delete_all), | &traits::delete_all), | |||
id_binding_ (0), | id_binding_ (0), | |||
cond_image_binding_ (0, 0), // Initialized by impl. | cond_image_binding_ (0, 0), // Initialized by impl. | |||
cond_image_native_binding_ (0, 0, 0, 0), // Initialized by impl. | cond_image_native_binding_ (0, 0, 0, 0), // Initialized by impl. | |||
data_image_binding_ (0, 0), // Initialized by impl. | data_image_binding_ (0, 0), // Initialized by impl. | |||
data_image_native_binding_ (0, 0, 0, 0) // Initialized by impl. | data_image_native_binding_ (0, 0, 0, 0), // Initialized by impl. | |||
select_image_binding_ (0, 0) // Initialized by impl. | ||||
{ | { | |||
cond_image_.version = 0; | cond_image_.version = 0; | |||
cond_image_version_ = 0; | cond_image_version_ = 0; | |||
cond_id_binding_version_ = 0; | cond_id_binding_version_ = 0; | |||
data_image_.version = 0; | data_image_.version = 0; | |||
data_image_version_ = 0; | data_image_version_ = 0; | |||
data_id_binding_version_ = 0; | data_id_binding_version_ = 0; | |||
} | } | |||
template <typename T> | template <typename T> | |||
container_statements_impl<T>:: | container_statements_impl<T>:: | |||
container_statements_impl (connection_type& conn) | container_statements_impl (connection_type& conn) | |||
: base (conn) | : base (conn) | |||
{ | { | |||
this->cond_image_bind_ = cond_image_bind_array_; | ||||
this->data_image_bind_ = data_image_bind_array_; | ||||
this->data_image_truncated_ = data_image_truncated_array_; | this->data_image_truncated_ = data_image_truncated_array_; | |||
this->select_image_truncated_ = data_image_truncated_array_ + | ||||
traits::id_column_count; | ||||
this->cond_image_binding_.bind = this->cond_image_bind_; | this->cond_image_binding_.bind = cond_image_bind_; | |||
this->cond_image_binding_.count = traits::cond_column_count; | this->cond_image_binding_.count = traits::cond_column_count; | |||
this->data_image_binding_.bind = this->data_image_bind_; | this->data_image_binding_.bind = data_image_bind_; | |||
this->data_image_binding_.count = traits::data_column_count; | this->data_image_binding_.count = traits::data_column_count; | |||
this->select_image_binding_.bind = data_image_bind_ + | ||||
traits::id_column_count; | ||||
this->select_image_binding_.count = traits::data_column_count - | ||||
traits::id_column_count; | ||||
this->cond_image_native_binding_.values = cond_image_values_; | this->cond_image_native_binding_.values = cond_image_values_; | |||
this->cond_image_native_binding_.lengths = cond_image_lengths_; | this->cond_image_native_binding_.lengths = cond_image_lengths_; | |||
this->cond_image_native_binding_.formats = cond_image_formats_; | this->cond_image_native_binding_.formats = cond_image_formats_; | |||
this->cond_image_native_binding_.count = traits::cond_column_count; | this->cond_image_native_binding_.count = traits::cond_column_count; | |||
this->data_image_native_binding_.values = data_image_values_; | this->data_image_native_binding_.values = data_image_values_; | |||
this->data_image_native_binding_.lengths = data_image_lengths_; | this->data_image_native_binding_.lengths = data_image_lengths_; | |||
this->data_image_native_binding_.formats = data_image_formats_; | this->data_image_native_binding_.formats = data_image_formats_; | |||
this->data_image_native_binding_.count = traits::data_column_count; | this->data_image_native_binding_.count = traits::data_column_count; | |||
std::memset (cond_image_bind_array_, 0, sizeof (cond_image_bind_array | std::memset (cond_image_bind_, 0, sizeof (cond_image_bind_)); | |||
_)); | std::memset (data_image_bind_, 0, sizeof (data_image_bind_)); | |||
std::memset (data_image_bind_array_, 0, sizeof (data_image_bind_array | ||||
_)); | ||||
std::memset (data_image_truncated_array_, | std::memset (data_image_truncated_array_, | |||
0, | 0, | |||
sizeof (data_image_truncated_array_)); | sizeof (data_image_truncated_array_)); | |||
for (std::size_t i (0); i < traits::data_column_count; ++i) | for (std::size_t i (0); i < traits::data_column_count; ++i) | |||
data_image_bind_array_[i].truncated = data_image_truncated_array_ + i; | data_image_bind_[i].truncated = data_image_truncated_array_ + i; | |||
this->insert_one_name_ = traits::insert_one_name; | this->insert_one_name_ = traits::insert_one_name; | |||
this->insert_one_text_ = traits::insert_one_statement; | this->insert_one_text_ = traits::insert_one_statement; | |||
this->insert_one_types_ = traits::insert_one_types; | this->insert_one_types_ = traits::insert_one_types; | |||
this->insert_one_count_ = traits::data_column_count; | this->insert_one_count_ = traits::data_column_count; | |||
this->select_all_name_ = traits::select_all_name; | this->select_all_name_ = traits::select_all_name; | |||
this->select_all_text_ = traits::select_all_statement; | this->select_all_text_ = traits::select_all_statement; | |||
this->select_all_types_ = traits::select_all_types; | this->select_all_types_ = traits::select_all_types; | |||
this->select_all_count_ = traits::cond_column_count; | this->select_all_count_ = traits::cond_column_count; | |||
End of changes. 9 change blocks. | ||||
15 lines changed or deleted | 18 lines changed or added | |||
database.hxx | database.hxx | |||
---|---|---|---|---|
// file : odb/pgsql/database.hxx | // file : odb/pgsql/database.hxx | |||
// author : Constantin Michael <constantin@codesynthesis.com> | // copyright : Copyright (c) 2009-2012 Code Synthesis Tools CC | |||
// copyright : Copyright (c) 2009-2011 Code Synthesis Tools CC | ||||
// license : GNU GPL v2; see accompanying LICENSE file | // license : GNU GPL v2; see accompanying LICENSE file | |||
#ifndef ODB_PGSQL_DATABASE_HXX | #ifndef ODB_PGSQL_DATABASE_HXX | |||
#define ODB_PGSQL_DATABASE_HXX | #define ODB_PGSQL_DATABASE_HXX | |||
#include <odb/pre.hxx> | #include <odb/pre.hxx> | |||
#include <string> | #include <string> | |||
#include <memory> // std::auto_ptr | #include <memory> // std::auto_ptr | |||
#include <iosfwd> // std::ostream | #include <iosfwd> // std::ostream | |||
End of changes. 1 change blocks. | ||||
2 lines changed or deleted | 1 lines changed or added | |||
database.ixx | database.ixx | |||
---|---|---|---|---|
// file : odb/pgsql/database.ixx | // file : odb/pgsql/database.ixx | |||
// author : Constantin Michael <constantin@codesynthesis.com> | // copyright : Copyright (c) 2009-2012 Code Synthesis Tools CC | |||
// copyright : Copyright (c) 2009-2011 Code Synthesis Tools CC | ||||
// license : GNU GPL v2; see accompanying LICENSE file | // license : GNU GPL v2; see accompanying LICENSE file | |||
namespace odb | namespace odb | |||
{ | { | |||
namespace pgsql | namespace pgsql | |||
{ | { | |||
inline connection_ptr database:: | inline connection_ptr database:: | |||
connection () | connection () | |||
{ | { | |||
// Go through the virtual connection_() function instead of | // Go through the virtual connection_() function instead of | |||
End of changes. 1 change blocks. | ||||
2 lines changed or deleted | 1 lines changed or added | |||
endian-traits.hxx | endian-traits.hxx | |||
---|---|---|---|---|
// file : odb/pgsql/details/endian-traits.hxx | // file : odb/pgsql/details/endian-traits.hxx | |||
// author : Constantin Michael <constantin@codesynthesis.com> | // copyright : Copyright (c) 2009-2012 Code Synthesis Tools CC | |||
// copyright : Copyright (c) 2009-2011 Code Synthesis Tools CC | ||||
// license : GNU GPL v2; see accompanying LICENSE file | // license : GNU GPL v2; see accompanying LICENSE file | |||
#ifndef ODB_PGSQL_DETAILS_ENDIAN_TRAITS_HXX | #ifndef ODB_PGSQL_DETAILS_ENDIAN_TRAITS_HXX | |||
#define ODB_PGSQL_DETAILS_ENDIAN_TRAITS_HXX | #define ODB_PGSQL_DETAILS_ENDIAN_TRAITS_HXX | |||
#include <cstddef> // std::size_t | #include <cstddef> // std::size_t | |||
#include <algorithm> // std::reverse | #include <algorithm> // std::reverse | |||
#include <odb/pgsql/details/export.hxx> | #include <odb/pgsql/details/export.hxx> | |||
End of changes. 1 change blocks. | ||||
2 lines changed or deleted | 1 lines changed or added | |||
error.hxx | error.hxx | |||
---|---|---|---|---|
// file : odb/pgsql/error.hxx | // file : odb/pgsql/error.hxx | |||
// author : Constantin Michael <constantin@codesynthesis.com> | // copyright : Copyright (c) 2005-2012 Code Synthesis Tools CC | |||
// copyright : Copyright (c) 2005-2011 Code Synthesis Tools CC | ||||
// license : GNU GPL v2; see accompanying LICENSE file | // license : GNU GPL v2; see accompanying LICENSE file | |||
#ifndef ODB_PGSQL_ERROR_HXX | #ifndef ODB_PGSQL_ERROR_HXX | |||
#define ODB_PGSQL_ERROR_HXX | #define ODB_PGSQL_ERROR_HXX | |||
#include <odb/pre.hxx> | #include <odb/pre.hxx> | |||
#include <libpq-fe.h> | #include <libpq-fe.h> | |||
#include <odb/pgsql/version.hxx> | #include <odb/pgsql/version.hxx> | |||
End of changes. 1 change blocks. | ||||
2 lines changed or deleted | 1 lines changed or added | |||
error.ixx | error.ixx | |||
---|---|---|---|---|
// file : odb/pgsql/error.ixx | // file : odb/pgsql/error.ixx | |||
// author : Constantin Michael <constantin@codesynthesis.com> | // copyright : Copyright (c) 2009-2012 Code Synthesis Tools CC | |||
// copyright : Copyright (c) 2009-2011 Code Synthesis Tools CC | ||||
// license : GNU GPL v2; see accompanying LICENSE file | // license : GNU GPL v2; see accompanying LICENSE file | |||
namespace odb | namespace odb | |||
{ | { | |||
namespace pgsql | namespace pgsql | |||
{ | { | |||
bool | bool | |||
inline is_good_result (PGresult* r, ExecStatusType* s) | inline is_good_result (PGresult* r, ExecStatusType* s) | |||
{ | { | |||
if (r != 0) | if (r != 0) | |||
End of changes. 1 change blocks. | ||||
2 lines changed or deleted | 1 lines changed or added | |||
exceptions.hxx | exceptions.hxx | |||
---|---|---|---|---|
// file : odb/pgsql/exceptions.hxx | // file : odb/pgsql/exceptions.hxx | |||
// author : Constantin Michael <constantin@codesynthesis.com> | // copyright : Copyright (c) 2005-2012 Code Synthesis Tools CC | |||
// copyright : Copyright (c) 2005-2011 Code Synthesis Tools CC | ||||
// license : GNU GPL v2; see accompanying LICENSE file | // license : GNU GPL v2; see accompanying LICENSE file | |||
#ifndef ODB_PGSQL_EXCEPTIONS_HXX | #ifndef ODB_PGSQL_EXCEPTIONS_HXX | |||
#define ODB_PGSQL_EXCEPTIONS_HXX | #define ODB_PGSQL_EXCEPTIONS_HXX | |||
#include <odb/pre.hxx> | #include <odb/pre.hxx> | |||
#include <string> | #include <string> | |||
#include <odb/exceptions.hxx> | #include <odb/exceptions.hxx> | |||
End of changes. 1 change blocks. | ||||
2 lines changed or deleted | 1 lines changed or added | |||
export.hxx | export.hxx | |||
---|---|---|---|---|
// file : odb/pgsql/details/export.hxx | // file : odb/pgsql/details/export.hxx | |||
// author : Constantin Michael <constantin@codesynthesis.com> | // copyright : Copyright (c) 2005-2012 Code Synthesis Tools CC | |||
// copyright : Copyright (c) 2005-2011 Code Synthesis Tools CC | ||||
// license : GNU GPL v2; see accompanying LICENSE file | // license : GNU GPL v2; see accompanying LICENSE file | |||
#ifndef ODB_PGSQL_DETAILS_EXPORT_HXX | #ifndef ODB_PGSQL_DETAILS_EXPORT_HXX | |||
#define ODB_PGSQL_DETAILS_EXPORT_HXX | #define ODB_PGSQL_DETAILS_EXPORT_HXX | |||
#include <odb/pre.hxx> | #include <odb/pre.hxx> | |||
#include <odb/pgsql/details/config.hxx> | #include <odb/pgsql/details/config.hxx> | |||
#ifdef LIBODB_PGSQL_STATIC_LIB | #ifdef LIBODB_PGSQL_STATIC_LIB | |||
End of changes. 1 change blocks. | ||||
2 lines changed or deleted | 1 lines changed or added | |||
forward.hxx | forward.hxx | |||
---|---|---|---|---|
// file : odb/pgsql/forward.hxx | // file : odb/pgsql/forward.hxx | |||
// author : Constantin Michael <constantin@codesynthesis.com> | // copyright : Copyright (c) 2009-2012 Code Synthesis Tools CC | |||
// copyright : Copyright (c) 2009-2011 Code Synthesis Tools CC | ||||
// license : GNU GPL v2; see accompanying LICENSE file | // license : GNU GPL v2; see accompanying LICENSE file | |||
#ifndef ODB_PGSQL_FORWARD_HXX | #ifndef ODB_PGSQL_FORWARD_HXX | |||
#define ODB_PGSQL_FORWARD_HXX | #define ODB_PGSQL_FORWARD_HXX | |||
#include <odb/pre.hxx> | #include <odb/pre.hxx> | |||
#include <odb/forward.hxx> | #include <odb/forward.hxx> | |||
namespace odb | namespace odb | |||
End of changes. 1 change blocks. | ||||
2 lines changed or deleted | 1 lines changed or added | |||
object-result.hxx | object-result.hxx | |||
---|---|---|---|---|
// file : odb/pgsql/object-result.hxx | // file : odb/pgsql/object-result.hxx | |||
// author : Constantin Michael <constantin@codesynthesis.com> | // copyright : Copyright (c) 2009-2012 Code Synthesis Tools CC | |||
// copyright : Copyright (c) 2009-2011 Code Synthesis Tools CC | ||||
// license : GNU GPL v2; see accompanying LICENSE file | // license : GNU GPL v2; see accompanying LICENSE file | |||
#ifndef ODB_PGSQL_OBJECT_RESULT_HXX | #ifndef ODB_PGSQL_OBJECT_RESULT_HXX | |||
#define ODB_PGSQL_OBJECT_RESULT_HXX | #define ODB_PGSQL_OBJECT_RESULT_HXX | |||
#include <odb/pre.hxx> | #include <odb/pre.hxx> | |||
#include <cstddef> // std::size_t | #include <cstddef> // std::size_t | |||
#include <odb/details/shared-ptr.hxx> | #include <odb/details/shared-ptr.hxx> | |||
End of changes. 1 change blocks. | ||||
2 lines changed or deleted | 1 lines changed or added | |||
object-result.txx | object-result.txx | |||
---|---|---|---|---|
// file : odb/pgsql/object-result.txx | // file : odb/pgsql/object-result.txx | |||
// author : Constantin Michael <constantin@codesynthesis.com> | // copyright : Copyright (c) 2009-2012 Code Synthesis Tools CC | |||
// copyright : Copyright (c) 2009-2011 Code Synthesis Tools CC | ||||
// license : GNU GPL v2; see accompanying LICENSE file | // license : GNU GPL v2; see accompanying LICENSE file | |||
#include <cassert> | ||||
#include <odb/callback.hxx> | #include <odb/callback.hxx> | |||
#include <odb/pgsql/object-statements.hxx> | #include <odb/pgsql/object-statements.hxx> | |||
namespace odb | namespace odb | |||
{ | { | |||
namespace pgsql | namespace pgsql | |||
{ | { | |||
// | // | |||
// object_result_impl | // object_result_impl | |||
End of changes. 2 change blocks. | ||||
2 lines changed or deleted | 3 lines changed or added | |||
object-statements.hxx | object-statements.hxx | |||
---|---|---|---|---|
// file : odb/pgsql/object-statements.hxx | // file : odb/pgsql/object-statements.hxx | |||
// author : Constantin Michael <constantin@codesynthesis.com> | // copyright : Copyright (c) 2005-2012 Code Synthesis Tools CC | |||
// copyright : Copyright (c) 2005-2011 Code Synthesis Tools CC | ||||
// license : GNU GPL v2; see accompanying LICENSE file | // license : GNU GPL v2; see accompanying LICENSE file | |||
#ifndef ODB_PGSQL_OBJECT_STATEMENTS_HXX | #ifndef ODB_PGSQL_OBJECT_STATEMENTS_HXX | |||
#define ODB_PGSQL_OBJECT_STATEMENTS_HXX | #define ODB_PGSQL_OBJECT_STATEMENTS_HXX | |||
#include <odb/pre.hxx> | #include <odb/pre.hxx> | |||
#include <vector> | #include <vector> | |||
#include <cassert> | #include <cassert> | |||
#include <cstddef> // std::size_t | #include <cstddef> // std::size_t | |||
End of changes. 1 change blocks. | ||||
2 lines changed or deleted | 1 lines changed or added | |||
object-statements.ixx | object-statements.ixx | |||
---|---|---|---|---|
// file : odb/pgsql/object-statements.ixx | // file : odb/pgsql/object-statements.ixx | |||
// author : Constantin Michael <constantin@codesynthesis.com> | // copyright : Copyright (c) 2005-2012 Code Synthesis Tools CC | |||
// copyright : Copyright (c) 2005-2011 Code Synthesis Tools CC | ||||
// license : GNU GPL v2; see accompanying LICENSE file | // license : GNU GPL v2; see accompanying LICENSE file | |||
namespace odb | namespace odb | |||
{ | { | |||
namespace pgsql | namespace pgsql | |||
{ | { | |||
// | // | |||
// auto_unlock | // auto_unlock | |||
// | // | |||
inline object_statements_base::auto_unlock:: | inline object_statements_base::auto_unlock:: | |||
End of changes. 1 change blocks. | ||||
2 lines changed or deleted | 1 lines changed or added | |||
object-statements.txx | object-statements.txx | |||
---|---|---|---|---|
// file : odb/pgsql/object-statements.txx | // file : odb/pgsql/object-statements.txx | |||
// author : Constantin Michael <constantin@codesynthesis.com> | // copyright : Copyright (c) 2005-2012 Code Synthesis Tools CC | |||
// copyright : Copyright (c) 2005-2011 Code Synthesis Tools CC | ||||
// license : GNU GPL v2; see accompanying LICENSE file | // license : GNU GPL v2; see accompanying LICENSE file | |||
#include <cstddef> // std::size_t | #include <cstddef> // std::size_t | |||
#include <cstring> // std::memset | #include <cstring> // std::memset | |||
#include <odb/session.hxx> | #include <odb/session.hxx> | |||
#include <odb/callback.hxx> | #include <odb/callback.hxx> | |||
#include <odb/exceptions.hxx> | #include <odb/exceptions.hxx> | |||
#include <odb/pgsql/connection.hxx> | #include <odb/pgsql/connection.hxx> | |||
End of changes. 1 change blocks. | ||||
2 lines changed or deleted | 1 lines changed or added | |||
pgsql-fwd.hxx | pgsql-fwd.hxx | |||
---|---|---|---|---|
// file : odb/pgsql/pgsql-fwd.hxx | // file : odb/pgsql/pgsql-fwd.hxx | |||
// author : Boris Kolpackov <boris@codesynthesis.com> | // copyright : Copyright (c) 2005-2012 Code Synthesis Tools CC | |||
// copyright : Copyright (c) 2005-2011 Code Synthesis Tools CC | ||||
// license : GNU GPL v2; see accompanying LICENSE file | // license : GNU GPL v2; see accompanying LICENSE file | |||
#ifndef ODB_PGSQL_PGSQL_FWD_HXX | #ifndef ODB_PGSQL_PGSQL_FWD_HXX | |||
#define ODB_PGSQL_PGSQL_FWD_HXX | #define ODB_PGSQL_PGSQL_FWD_HXX | |||
#include <odb/pre.hxx> | #include <odb/pre.hxx> | |||
// Forward declaration for some of the types defined in libpq-fe.h. This | // Forward declaration for some of the types defined in libpq-fe.h. This | |||
// allows us to avoid having to include libpq-fe.h in public headers. | // allows us to avoid having to include libpq-fe.h in public headers. | |||
// | // | |||
End of changes. 1 change blocks. | ||||
2 lines changed or deleted | 1 lines changed or added | |||
pgsql-oid.hxx | pgsql-oid.hxx | |||
---|---|---|---|---|
// file : odb/pgsql/pgsql-oid.hxx | // file : odb/pgsql/pgsql-oid.hxx | |||
// author : Constantin Michael <constantin@codesynthesis.com> | // copyright : Copyright (c) 2005-2012 Code Synthesis Tools CC | |||
// copyright : Copyright (c) 2005-2011 Code Synthesis Tools CC | ||||
// license : GNU GPL v2; see accompanying LICENSE file | // license : GNU GPL v2; see accompanying LICENSE file | |||
// Generated file of OIDs extracted from the PostgreSQL 8.4.8 source file | // Generated file of OIDs extracted from the PostgreSQL 8.4.8 source file | |||
// src/include/catalog/pg_type.h | // src/include/catalog/pg_type.h | |||
// | // | |||
#ifndef ODB_PGSQL_PGSQL_OID_HXX | #ifndef ODB_PGSQL_PGSQL_OID_HXX | |||
#define ODB_PGSQL_PGSQL_OID_HXX | #define ODB_PGSQL_PGSQL_OID_HXX | |||
#include <odb/pre.hxx> | #include <odb/pre.hxx> | |||
End of changes. 1 change blocks. | ||||
2 lines changed or deleted | 1 lines changed or added | |||
pgsql-types.hxx | pgsql-types.hxx | |||
---|---|---|---|---|
// file : odb/pgsql/pgsql-types.hxx | // file : odb/pgsql/pgsql-types.hxx | |||
// author : Constantin Michael <constantin@codesynthesis.com> | // copyright : Copyright (c) 2005-2012 Code Synthesis Tools CC | |||
// copyright : Copyright (c) 2005-2011 Code Synthesis Tools CC | ||||
// license : GNU GPL v2; see accompanying LICENSE file | // license : GNU GPL v2; see accompanying LICENSE file | |||
#ifndef ODB_PGSQL_PGSQL_TYPES_HXX | #ifndef ODB_PGSQL_PGSQL_TYPES_HXX | |||
#define ODB_PGSQL_PGSQL_TYPES_HXX | #define ODB_PGSQL_PGSQL_TYPES_HXX | |||
#include <odb/pre.hxx> | #include <odb/pre.hxx> | |||
#include <cstddef> // std::size_t | #include <cstddef> // std::size_t | |||
#include <odb/pgsql/pgsql-fwd.hxx> // Oid | #include <odb/pgsql/pgsql-fwd.hxx> // Oid | |||
End of changes. 1 change blocks. | ||||
2 lines changed or deleted | 1 lines changed or added | |||
query.hxx | query.hxx | |||
---|---|---|---|---|
// file : odb/pgsql/query.hxx | // file : odb/pgsql/query.hxx | |||
// author : Constantin Michael <constantin@codesynthesis.com> | // copyright : Copyright (c) 2009-2012 Code Synthesis Tools CC | |||
// copyright : Copyright (c) 2009-2011 Code Synthesis Tools CC | ||||
// license : GNU GPL v2; see accompanying LICENSE file | // license : GNU GPL v2; see accompanying LICENSE file | |||
#ifndef ODB_PGSQL_QUERY_HXX | #ifndef ODB_PGSQL_QUERY_HXX | |||
#define ODB_PGSQL_QUERY_HXX | #define ODB_PGSQL_QUERY_HXX | |||
#include <odb/pre.hxx> | #include <odb/pre.hxx> | |||
#include <string> | #include <string> | |||
#include <vector> | #include <vector> | |||
#include <cstddef> // std::size_t | #include <cstddef> // std::size_t | |||
End of changes. 1 change blocks. | ||||
2 lines changed or deleted | 1 lines changed or added | |||
query.ixx | query.ixx | |||
---|---|---|---|---|
// file : odb/pgsql/query.ixx | // file : odb/pgsql/query.ixx | |||
// author : Constantin Michael <constantin@codesynthesis.com> | // copyright : Copyright (c) 2009-2012 Code Synthesis Tools CC | |||
// copyright : Copyright (c) 2009-2011 Code Synthesis Tools CC | ||||
// license : GNU GPL v2; see accompanying LICENSE file | // license : GNU GPL v2; see accompanying LICENSE file | |||
namespace odb | namespace odb | |||
{ | { | |||
namespace pgsql | namespace pgsql | |||
{ | { | |||
template <typename T, database_type_id ID> | template <typename T, database_type_id ID> | |||
inline void query:: | inline void query:: | |||
append (val_bind<T> v) | append (val_bind<T> v) | |||
{ | { | |||
End of changes. 1 change blocks. | ||||
2 lines changed or deleted | 1 lines changed or added | |||
query.txx | query.txx | |||
---|---|---|---|---|
// file : odb/pgsql/query.txx | // file : odb/pgsql/query.txx | |||
// author : Constantin Michael <constantin@codesynthesis.com> | // copyright : Copyright (c) 2009-2012 Code Synthesis Tools CC | |||
// copyright : Copyright (c) 2009-2011 Code Synthesis Tools CC | ||||
// license : GNU GPL v2; see accompanying LICENSE file | // license : GNU GPL v2; see accompanying LICENSE file | |||
namespace odb | namespace odb | |||
{ | { | |||
namespace pgsql | namespace pgsql | |||
{ | { | |||
// query | // query | |||
// | // | |||
template <database_type_id ID> | template <database_type_id ID> | |||
End of changes. 1 change blocks. | ||||
2 lines changed or deleted | 1 lines changed or added | |||
result.hxx | result.hxx | |||
---|---|---|---|---|
// file : odb/pgsql/result.hxx | // file : odb/pgsql/result.hxx | |||
// author : Constantin Michael <constantin@codesynthesis.com> | // copyright : Copyright (c) 2009-2012 Code Synthesis Tools CC | |||
// copyright : Copyright (c) 2009-2011 Code Synthesis Tools CC | ||||
// license : GNU GPL v2; see accompanying LICENSE file | // license : GNU GPL v2; see accompanying LICENSE file | |||
#ifndef ODB_PGSQL_RESULT_HXX | #ifndef ODB_PGSQL_RESULT_HXX | |||
#define ODB_PGSQL_RESULT_HXX | #define ODB_PGSQL_RESULT_HXX | |||
#include <odb/pre.hxx> | #include <odb/pre.hxx> | |||
#include <odb/traits.hxx> | #include <odb/traits.hxx> | |||
#include <odb/result.hxx> | #include <odb/result.hxx> | |||
End of changes. 1 change blocks. | ||||
2 lines changed or deleted | 1 lines changed or added | |||
statement-cache.hxx | statement-cache.hxx | |||
---|---|---|---|---|
// file : odb/pgsql/statement-cache.hxx | // file : odb/pgsql/statement-cache.hxx | |||
// author : Constantin Michael <constantin@codesynthesis.com> | // copyright : Copyright (c) 2005-2012 Code Synthesis Tools CC | |||
// copyright : Copyright (c) 2005-2011 Code Synthesis Tools CC | ||||
// license : GNU GPL v2; see accompanying LICENSE file | // license : GNU GPL v2; see accompanying LICENSE file | |||
#ifndef ODB_PGSQL_STATEMENT_CACHE_HXX | #ifndef ODB_PGSQL_STATEMENT_CACHE_HXX | |||
#define ODB_PGSQL_STATEMENT_CACHE_HXX | #define ODB_PGSQL_STATEMENT_CACHE_HXX | |||
#include <odb/pre.hxx> | #include <odb/pre.hxx> | |||
#include <map> | #include <map> | |||
#include <typeinfo> | #include <typeinfo> | |||
End of changes. 1 change blocks. | ||||
2 lines changed or deleted | 1 lines changed or added | |||
statement.hxx | statement.hxx | |||
---|---|---|---|---|
// file : odb/pgsql/statement.hxx | // file : odb/pgsql/statement.hxx | |||
// author : Constantin Michael <constantin@codesynthesis.com> | // copyright : Copyright (c) 2005-2012 Code Synthesis Tools CC | |||
// copyright : Copyright (c) 2005-2011 Code Synthesis Tools CC | ||||
// license : GNU GPL v2; see accompanying LICENSE file | // license : GNU GPL v2; see accompanying LICENSE file | |||
#ifndef ODB_PGSQL_STATEMENT_HXX | #ifndef ODB_PGSQL_STATEMENT_HXX | |||
#define ODB_PGSQL_STATEMENT_HXX | #define ODB_PGSQL_STATEMENT_HXX | |||
#include <odb/pre.hxx> | #include <odb/pre.hxx> | |||
#include <string> | #include <string> | |||
#include <cstddef> // std::size_t | #include <cstddef> // std::size_t | |||
End of changes. 1 change blocks. | ||||
2 lines changed or deleted | 1 lines changed or added | |||
statements-base.hxx | statements-base.hxx | |||
---|---|---|---|---|
// file : odb/pgsql/statements-base.hxx | // file : odb/pgsql/statements-base.hxx | |||
// author : Boris Kolpackov <boris@codesynthesis.com> | // copyright : Copyright (c) 2005-2012 Code Synthesis Tools CC | |||
// copyright : Copyright (c) 2005-2011 Code Synthesis Tools CC | ||||
// license : GNU GPL v2; see accompanying LICENSE file | // license : GNU GPL v2; see accompanying LICENSE file | |||
#ifndef ODB_PGSQL_STATEMENTS_BASE_HXX | #ifndef ODB_PGSQL_STATEMENTS_BASE_HXX | |||
#define ODB_PGSQL_STATEMENTS_BASE_HXX | #define ODB_PGSQL_STATEMENTS_BASE_HXX | |||
#include <odb/pre.hxx> | #include <odb/pre.hxx> | |||
#include <odb/details/shared-ptr.hxx> | #include <odb/details/shared-ptr.hxx> | |||
#include <odb/pgsql/version.hxx> | #include <odb/pgsql/version.hxx> | |||
End of changes. 1 change blocks. | ||||
2 lines changed or deleted | 1 lines changed or added | |||
tracer.hxx | tracer.hxx | |||
---|---|---|---|---|
// file : odb/pgsql/tracer.hxx | // file : odb/pgsql/tracer.hxx | |||
// author : Boris Kolpackov <boris@codesynthesis.com> | // copyright : Copyright (c) 2009-2012 Code Synthesis Tools CC | |||
// copyright : Copyright (c) 2009-2011 Code Synthesis Tools CC | ||||
// license : GNU GPL v2; see accompanying LICENSE file | // license : GNU GPL v2; see accompanying LICENSE file | |||
#ifndef ODB_PGSQL_TRACER_HXX | #ifndef ODB_PGSQL_TRACER_HXX | |||
#define ODB_PGSQL_TRACER_HXX | #define ODB_PGSQL_TRACER_HXX | |||
#include <odb/pre.hxx> | #include <odb/pre.hxx> | |||
#include <odb/tracer.hxx> | #include <odb/tracer.hxx> | |||
#include <odb/pgsql/version.hxx> | #include <odb/pgsql/version.hxx> | |||
End of changes. 1 change blocks. | ||||
2 lines changed or deleted | 1 lines changed or added | |||
traits.hxx | traits.hxx | |||
---|---|---|---|---|
// file : odb/pgsql/traits.hxx | // file : odb/pgsql/traits.hxx | |||
// author : Constantin Michael <constantin@codesynthesis.com> | // copyright : Copyright (c) 2005-2012 Code Synthesis Tools CC | |||
// copyright : Copyright (c) 2005-2011 Code Synthesis Tools CC | ||||
// license : GNU GPL v2; see accompanying LICENSE file | // license : GNU GPL v2; see accompanying LICENSE file | |||
#ifndef ODB_PGSQL_TRAITS_HXX | #ifndef ODB_PGSQL_TRAITS_HXX | |||
#define ODB_PGSQL_TRAITS_HXX | #define ODB_PGSQL_TRAITS_HXX | |||
#include <odb/pre.hxx> | #include <odb/pre.hxx> | |||
#include <string> | #include <string> | |||
#include <vector> | #include <vector> | |||
#include <cstddef> // std::size_t | #include <cstddef> // std::size_t | |||
End of changes. 1 change blocks. | ||||
2 lines changed or deleted | 1 lines changed or added | |||
transaction-impl.hxx | transaction-impl.hxx | |||
---|---|---|---|---|
// file : odb/pgsql/transaction-impl.hxx | // file : odb/pgsql/transaction-impl.hxx | |||
// author : Constantin Michael <constantin@codesynthesis.com> | // copyright : Copyright (c) 2009-2012 Code Synthesis Tools CC | |||
// copyright : Copyright (c) 2009-2011 Code Synthesis Tools CC | ||||
// license : GNU GPL v2; see accompanying LICENSE file | // license : GNU GPL v2; see accompanying LICENSE file | |||
#ifndef ODB_PGSQL_TRANSACTION_IMPL_HXX | #ifndef ODB_PGSQL_TRANSACTION_IMPL_HXX | |||
#define ODB_PGSQL_TRANSACTION_IMPL_HXX | #define ODB_PGSQL_TRANSACTION_IMPL_HXX | |||
#include <odb/pre.hxx> | #include <odb/pre.hxx> | |||
#include <odb/transaction.hxx> | #include <odb/transaction.hxx> | |||
#include <odb/pgsql/version.hxx> | #include <odb/pgsql/version.hxx> | |||
End of changes. 1 change blocks. | ||||
2 lines changed or deleted | 1 lines changed or added | |||
transaction-impl.ixx | transaction-impl.ixx | |||
---|---|---|---|---|
// file : odb/pgsql/transaction-impl.ixx | // file : odb/pgsql/transaction-impl.ixx | |||
// author : Constantin Michael <constantin@codesynthesis.com> | // copyright : Copyright (c) 2009-2012 Code Synthesis Tools CC | |||
// copyright : Copyright (c) 2009-2011 Code Synthesis Tools CC | ||||
// license : GNU GPL v2; see accompanying LICENSE file | // license : GNU GPL v2; see accompanying LICENSE file | |||
namespace odb | namespace odb | |||
{ | { | |||
namespace pgsql | namespace pgsql | |||
{ | { | |||
inline transaction_impl::connection_type& transaction_impl:: | inline transaction_impl::connection_type& transaction_impl:: | |||
connection () | connection () | |||
{ | { | |||
return *connection_; | return *connection_; | |||
End of changes. 1 change blocks. | ||||
2 lines changed or deleted | 1 lines changed or added | |||
transaction.hxx | transaction.hxx | |||
---|---|---|---|---|
// file : odb/pgsql/transaction.hxx | // file : odb/pgsql/transaction.hxx | |||
// author : Constantin Michael <constantin@codesynthesis.com> | // copyright : Copyright (c) 2009-2012 Code Synthesis Tools CC | |||
// copyright : Copyright (c) 2009-2011 Code Synthesis Tools CC | ||||
// license : GNU GPL v2; see accompanying LICENSE file | // license : GNU GPL v2; see accompanying LICENSE file | |||
#ifndef ODB_PGSQL_TRANSACTION_HXX | #ifndef ODB_PGSQL_TRANSACTION_HXX | |||
#define ODB_PGSQL_TRANSACTION_HXX | #define ODB_PGSQL_TRANSACTION_HXX | |||
#include <odb/pre.hxx> | #include <odb/pre.hxx> | |||
#include <odb/transaction.hxx> | #include <odb/transaction.hxx> | |||
#include <odb/pgsql/version.hxx> | #include <odb/pgsql/version.hxx> | |||
End of changes. 1 change blocks. | ||||
2 lines changed or deleted | 1 lines changed or added | |||
transaction.ixx | transaction.ixx | |||
---|---|---|---|---|
// file : odb/pgsql/transaction.ixx | // file : odb/pgsql/transaction.ixx | |||
// author : Constantin Michael <constantin@codesynthesis.com> | // copyright : Copyright (c) 2009-2012 Code Synthesis Tools CC | |||
// copyright : Copyright (c) 2009-2011 Code Synthesis Tools CC | ||||
// license : GNU GPL v2; see accompanying LICENSE file | // license : GNU GPL v2; see accompanying LICENSE file | |||
#include <odb/pgsql/database.hxx> | #include <odb/pgsql/database.hxx> | |||
#include <odb/pgsql/transaction-impl.hxx> | #include <odb/pgsql/transaction-impl.hxx> | |||
namespace odb | namespace odb | |||
{ | { | |||
namespace pgsql | namespace pgsql | |||
{ | { | |||
inline transaction:: | inline transaction:: | |||
End of changes. 1 change blocks. | ||||
2 lines changed or deleted | 1 lines changed or added | |||
version.hxx | version.hxx | |||
---|---|---|---|---|
// file : odb/pgsql/version.hxx | // file : odb/pgsql/version.hxx | |||
// author : Constantin Michael <constantin@codesynthesis.com> | // copyright : Copyright (c) 2005-2012 Code Synthesis Tools CC | |||
// copyright : Copyright (c) 2005-2011 Code Synthesis Tools CC | ||||
// license : GNU GPL v2; see accompanying LICENSE file | // license : GNU GPL v2; see accompanying LICENSE file | |||
#ifndef ODB_PGSQL_VERSION_HXX | #ifndef ODB_PGSQL_VERSION_HXX | |||
#define ODB_PGSQL_VERSION_HXX | #define ODB_PGSQL_VERSION_HXX | |||
#include <odb/pre.hxx> | #include <odb/pre.hxx> | |||
#include <odb/pgsql/details/config.hxx> | #include <odb/pgsql/details/config.hxx> | |||
#include <odb/version.hxx> | #include <odb/version.hxx> | |||
skipping to change at line 33 | skipping to change at line 32 | |||
// Version AABBCCDD | // Version AABBCCDD | |||
// 2.0.0 02000000 | // 2.0.0 02000000 | |||
// 2.1.0 02010000 | // 2.1.0 02010000 | |||
// 2.1.1 02010100 | // 2.1.1 02010100 | |||
// 2.2.0.a1 02019901 | // 2.2.0.a1 02019901 | |||
// 3.0.0.b2 02999952 | // 3.0.0.b2 02999952 | |||
// | // | |||
// Check that we have compatible ODB version. | // Check that we have compatible ODB version. | |||
// | // | |||
#if ODB_VERSION != 10700 | #if ODB_VERSION != 10800 | |||
# error incompatible odb interface version detected | # error incompatible odb interface version detected | |||
#endif | #endif | |||
// libodb-pgsql version: odb interface version plus the bugfix | // libodb-pgsql version: odb interface version plus the bugfix | |||
// version. | // version. | |||
// | // | |||
#define LIBODB_PGSQL_VERSION 1070000 | #define LIBODB_PGSQL_VERSION 1080000 | |||
#define LIBODB_PGSQL_VERSION_STR "1.7.0" | #define LIBODB_PGSQL_VERSION_STR "1.8.0" | |||
#include <odb/post.hxx> | #include <odb/post.hxx> | |||
#endif // ODB_PGSQL_VERSION_HXX | #endif // ODB_PGSQL_VERSION_HXX | |||
End of changes. 3 change blocks. | ||||
5 lines changed or deleted | 4 lines changed or added | |||
view-result.hxx | view-result.hxx | |||
---|---|---|---|---|
// file : odb/pgsql/view-result.hxx | // file : odb/pgsql/view-result.hxx | |||
// author : Constantin Michael <constantin@codesynthesis.com> | // copyright : Copyright (c) 2009-2012 Code Synthesis Tools CC | |||
// copyright : Copyright (c) 2009-2011 Code Synthesis Tools CC | ||||
// license : GNU GPL v2; see accompanying LICENSE file | // license : GNU GPL v2; see accompanying LICENSE file | |||
#ifndef ODB_PGSQL_VIEW_RESULT_HXX | #ifndef ODB_PGSQL_VIEW_RESULT_HXX | |||
#define ODB_PGSQL_VIEW_RESULT_HXX | #define ODB_PGSQL_VIEW_RESULT_HXX | |||
#include <odb/pre.hxx> | #include <odb/pre.hxx> | |||
#include <cstddef> // std::size_t | #include <cstddef> // std::size_t | |||
#include <odb/details/shared-ptr.hxx> | #include <odb/details/shared-ptr.hxx> | |||
End of changes. 1 change blocks. | ||||
2 lines changed or deleted | 1 lines changed or added | |||
view-result.txx | view-result.txx | |||
---|---|---|---|---|
// file : odb/pgsql/view-result.txx | // file : odb/pgsql/view-result.txx | |||
// author : Constantin Michael <constantin@codesynthesis.com> | // copyright : Copyright (c) 2009-2012 Code Synthesis Tools CC | |||
// copyright : Copyright (c) 2009-2011 Code Synthesis Tools CC | ||||
// license : GNU GPL v2; see accompanying LICENSE file | // license : GNU GPL v2; see accompanying LICENSE file | |||
#include <odb/callback.hxx> | #include <odb/callback.hxx> | |||
#include <odb/pgsql/view-statements.hxx> | #include <odb/pgsql/view-statements.hxx> | |||
namespace odb | namespace odb | |||
{ | { | |||
namespace pgsql | namespace pgsql | |||
{ | { | |||
End of changes. 1 change blocks. | ||||
2 lines changed or deleted | 1 lines changed or added | |||
view-statements.hxx | view-statements.hxx | |||
---|---|---|---|---|
// file : odb/pgsql/view-statements.hxx | // file : odb/pgsql/view-statements.hxx | |||
// author : Constantin Michael <constantin@codesynthesis.com> | // copyright : Copyright (c) 2005-2012 Code Synthesis Tools CC | |||
// copyright : Copyright (c) 2005-2011 Code Synthesis Tools CC | ||||
// license : GNU GPL v2; see accompanying LICENSE file | // license : GNU GPL v2; see accompanying LICENSE file | |||
#ifndef ODB_PGSQL_VIEW_STATEMENTS_HXX | #ifndef ODB_PGSQL_VIEW_STATEMENTS_HXX | |||
#define ODB_PGSQL_VIEW_STATEMENTS_HXX | #define ODB_PGSQL_VIEW_STATEMENTS_HXX | |||
#include <odb/pre.hxx> | #include <odb/pre.hxx> | |||
#include <cstddef> // std::size_t | #include <cstddef> // std::size_t | |||
#include <odb/forward.hxx> | #include <odb/forward.hxx> | |||
End of changes. 1 change blocks. | ||||
2 lines changed or deleted | 1 lines changed or added | |||
view-statements.txx | view-statements.txx | |||
---|---|---|---|---|
// file : odb/pgsql/view-statements.txx | // file : odb/pgsql/view-statements.txx | |||
// author : Constantin Michael <constantin@codesynthesis.com> | // copyright : Copyright (c) 2005-2012 Code Synthesis Tools CC | |||
// copyright : Copyright (c) 2005-2011 Code Synthesis Tools CC | ||||
// license : GNU GPL v2; see accompanying LICENSE file | // license : GNU GPL v2; see accompanying LICENSE file | |||
#include <cstddef> // std::size_t | #include <cstddef> // std::size_t | |||
#include <cstring> // std::memset | #include <cstring> // std::memset | |||
namespace odb | namespace odb | |||
{ | { | |||
namespace pgsql | namespace pgsql | |||
{ | { | |||
template <typename T> | template <typename T> | |||
End of changes. 1 change blocks. | ||||
2 lines changed or deleted | 1 lines changed or added | |||