Binary compatibility report for the PostgreSQL ODB library between 2.3.1 and 2.4.0 versions on x86
Test Info
Library Name | PostgreSQL ODB |
Version #1 | 2.3.1 |
Version #2 | 2.4.0 |
CPU Type | x86 |
GCC Version | 4.6.1 |
Test Results
Total Header Files | 39 |
Total Shared Libraries | 1 |
Total Symbols / Types | 277 / 274 |
Verdict | Incompatible (7.9%) |
Problem Summary
| Severity | Count |
---|
Added Symbols | - | 6 |
Removed Symbols | High | 4 |
Problems with Data Types | High | 6 |
Medium | 0 |
Low | 9 |
Problems with Symbols | High | 4 |
Medium | 0 |
Low | 0 |
Problems with Constants | Low | 0 |
Added Symbols (6)
exceptions.hxx,
libodb-pgsql-2.4.so
namespace odb::pgsql
cli_exception::clone ( ) const
[symbol: _ZNK3odb5pgsql13cli_exception5cloneEv]
database_exception::clone ( ) const
[symbol: _ZNK3odb5pgsql18database_exception5cloneEv]
statement.hxx,
libodb-pgsql-2.4.so
namespace odb::pgsql
insert_statement::insert_statement [in-charge] ( statement::connection_type& conn, char const* name, char const* text, bool process_text, Oid const* types, std::size_t types_count, binding& param, native_binding& native_param, binding* returning, bool copy_name_text )
[symbol: _ZN3odb5pgsql16insert_statementC1ERNS0_10connectionEPKcS5_bPKjjRNS0_7bindingERNS0_14native_bindingEPS8_b]
insert_statement::insert_statement [in-charge] ( statement::connection_type& conn, std::string const& name, std::string const& text, bool process_text, Oid const* types, std::size_t types_count, binding& param, native_binding& native_param, binding* returning )
[symbol: _ZN3odb5pgsql16insert_statementC1ERNS0_10connectionERKSsS5_bPKjjRNS0_7bindingERNS0_14native_bindingEPS8_]
insert_statement::insert_statement [not-in-charge] ( statement::connection_type& conn, char const* name, char const* text, bool process_text, Oid const* types, std::size_t types_count, binding& param, native_binding& native_param, binding* returning, bool copy_name_text )
[symbol: _ZN3odb5pgsql16insert_statementC2ERNS0_10connectionEPKcS5_bPKjjRNS0_7bindingERNS0_14native_bindingEPS8_b]
insert_statement::insert_statement [not-in-charge] ( statement::connection_type& conn, std::string const& name, std::string const& text, bool process_text, Oid const* types, std::size_t types_count, binding& param, native_binding& native_param, binding* returning )
[symbol: _ZN3odb5pgsql16insert_statementC2ERNS0_10connectionERKSsS5_bPKjjRNS0_7bindingERNS0_14native_bindingEPS8_]
to the top
Removed Symbols (4)
statement.hxx,
libodb-pgsql-2.3.so
namespace odb::pgsql
insert_statement::insert_statement [in-charge] ( statement::connection_type& conn, char const* name, char const* text, bool process_text, Oid const* types, std::size_t types_count, binding& param, native_binding& native_param, bool returning, bool copy_name_text )
[symbol: _ZN3odb5pgsql16insert_statementC1ERNS0_10connectionEPKcS5_bPKjjRNS0_7bindingERNS0_14native_bindingEbb]
insert_statement::insert_statement [in-charge] ( statement::connection_type& conn, std::string const& name, std::string const& text, bool process_text, Oid const* types, std::size_t types_count, binding& param, native_binding& native_param, bool returning )
[symbol: _ZN3odb5pgsql16insert_statementC1ERNS0_10connectionERKSsS5_bPKjjRNS0_7bindingERNS0_14native_bindingEb]
insert_statement::insert_statement [not-in-charge] ( statement::connection_type& conn, char const* name, char const* text, bool process_text, Oid const* types, std::size_t types_count, binding& param, native_binding& native_param, bool returning, bool copy_name_text )
[symbol: _ZN3odb5pgsql16insert_statementC2ERNS0_10connectionEPKcS5_bPKjjRNS0_7bindingERNS0_14native_bindingEbb]
insert_statement::insert_statement [not-in-charge] ( statement::connection_type& conn, std::string const& name, std::string const& text, bool process_text, Oid const* types, std::size_t types_count, binding& param, native_binding& native_param, bool returning )
[symbol: _ZN3odb5pgsql16insert_statementC2ERNS0_10connectionERKSsS5_bPKjjRNS0_7bindingERNS0_14native_bindingEb]
to the top
Problems with Data Types, High Severity (6)
exception.hxx
namespace odb
[+] class exception (3)
| Change |
Effect |
1 | Base class details::shared_base has been added. | 1) Size of the class has been changed from 4 bytes to 12 bytes. 2) The memory layout in this class has been shifted by 8 bytes. |
2 | Size of this class has been changed from 4 bytes to 12 bytes. | 1) The class has only inline or auto-generated constructors which will be copied to applications at compile time and will allocate an older memory layout. Call of any exported method of this class may access a memory outside the allocated objects or inside the older memory structure and result in crash or incorrect behavior of applications. 2) The memory layout and size of subclasses will be changed. |
3 | Pure virtual method exception::clone ( ) const has been added to this class. | 1) Applications will not provide the implementation for this pure virtual method and therefore cause a crash in the library trying to call this method. 2) The layout of v-table has been changed. Call of any virtual method at higher position in this class or its subclasses may result in crash or incorrect behavior of applications. |
[+] show v-table (old and new)
Offset | Virtual Table (Old) - 5 entries | Virtual Table (New) - 6 entries |
---|
0 |
(int (*)(...))0 |
(int (*)(...))0 |
4 |
(int (*)(...))(& typeinfo) |
(int (*)(...))(& typeinfo) |
8 |
~exception |
~exception |
12 |
~exception |
~exception |
16 |
__cxa_pure_virtual |
__cxa_pure_virtual |
20 |
|
__cxa_pure_virtual |
[+] affected symbols (9)
database_exception::~database_exception [in-charge] ( )This method is from derived class 'database_exception'.
exception::~exception [in-charge] ( )This method is from 'exception' class.
pgsql::cli_exception::cli_exception [in-charge] ( std::string const& what )This constructor is from derived class 'pgsql::cli_exception'.
pgsql::cli_exception::what ( ) constThis method is from derived class 'pgsql::cli_exception'.
pgsql::cli_exception::~cli_exception [in-charge] ( )This method is from derived class 'pgsql::cli_exception'.
pgsql::database_exception::database_exception [in-charge] ( std::string const& message )This constructor is from derived class 'pgsql::database_exception'.
pgsql::database_exception::database_exception [in-charge] ( std::string const& sqlstate, std::string const& message )This constructor is from derived class 'pgsql::database_exception'.
pgsql::database_exception::what ( ) constThis method is from derived class 'pgsql::database_exception'.
pgsql::database_exception::~database_exception [in-charge] ( )This method is from derived class 'pgsql::database_exception'.
exceptions.hxx
namespace odb
[+] class database_exception (1)
| Change |
Effect |
1 | Size of this class has been changed from 4 bytes to 12 bytes. | 1) The class has only inline or auto-generated constructors which will be copied to applications at compile time and will allocate an older memory layout. Call of any exported method of this class may access a memory outside the allocated objects or inside the older memory structure and result in crash or incorrect behavior of applications. 2) The memory layout and size of subclasses will be changed. |
[+] affected symbols (5)
database_exception::~database_exception [in-charge] ( )This method is from 'database_exception' class.
pgsql::database_exception::database_exception [in-charge] ( std::string const& message )This constructor is from derived class 'pgsql::database_exception'.
pgsql::database_exception::database_exception [in-charge] ( std::string const& sqlstate, std::string const& message )This constructor is from derived class 'pgsql::database_exception'.
pgsql::database_exception::what ( ) constThis method is from derived class 'pgsql::database_exception'.
pgsql::database_exception::~database_exception [in-charge] ( )This method is from derived class 'pgsql::database_exception'.
exceptions.hxx
namespace odb::pgsql
[+] class cli_exception (1)
| Change |
Effect |
1 | Size of this class has been increased from 8 bytes to 16 bytes. | 1) An object of this class can be allocated by the applications and old size will be hardcoded at the compile time. Call of any exported constructor will break the memory of neighboring objects on the stack or heap. 2) The memory layout and size of subclasses will be changed. |
[+] affected symbols (3)
cli_exception::cli_exception [in-charge] ( std::string const& what )This constructor is from 'cli_exception' class.
cli_exception::what ( ) constThis method is from 'cli_exception' class.
cli_exception::~cli_exception [in-charge] ( )This method is from 'cli_exception' class.
[+] class database_exception (1)
| Change |
Effect |
1 | Size of this class has been increased from 16 bytes to 24 bytes. | 1) An object of this class can be allocated by the applications and old size will be hardcoded at the compile time. Call of any exported constructor will break the memory of neighboring objects on the stack or heap. 2) The memory layout and size of subclasses will be changed. |
[+] affected symbols (4)
database_exception::database_exception [in-charge] ( std::string const& message )This constructor is from 'database_exception' class.
database_exception::database_exception [in-charge] ( std::string const& sqlstate, std::string const& message )This constructor is from 'database_exception' class.
database_exception::what ( ) constThis method is from 'database_exception' class.
database_exception::~database_exception [in-charge] ( )This method is from 'database_exception' class.
to the top
Problems with Symbols, High Severity (4)
statement.hxx,
libodb-pgsql-2.3.so
namespace odb::pgsql
[+] insert_statement::insert_statement [in-charge] ( statement::connection_type& conn, char const* name, char const* text, bool process_text, Oid const* types, std::size_t types_count, binding& param, native_binding& native_param, bool returning, bool copy_name_text ) (1)
changed to:insert_statement::insert_statement [in-charge] ( statement::connection_type& conn, char const* name, char const* text, bool process_text, Oid const* types, std::size_t types_count, binding& param, native_binding& native_param, binding* returning, bool copy_name_text )
[symbol: _ZN3odb5pgsql16insert_statementC1ERNS0_10connectionEPKcS5_bPKjjRNS0_7bindingERNS0_14native_bindingEbb]
| Change | Effect |
---|
1 | Parameters list has been changed. | The name of the appropriate symbol for this function on binary level has been changed from _ZN3odb5pgsql16insert_statementC1ERNS0_10connectionEPKcS5_bPKjjRNS0_7bindingERNS0_14native_bindingEbb to _ZN3odb5pgsql16insert_statementC1ERNS0_10connectionEPKcS5_bPKjjRNS0_7bindingERNS0_14native_bindingEPS8_b. This may cause "undefined reference" linker error in old client applications. |
[+] insert_statement::insert_statement [not-in-charge] ( statement::connection_type& conn, char const* name, char const* text, bool process_text, Oid const* types, std::size_t types_count, binding& param, native_binding& native_param, bool returning, bool copy_name_text ) (1)
changed to:insert_statement::insert_statement [not-in-charge] ( statement::connection_type& conn, char const* name, char const* text, bool process_text, Oid const* types, std::size_t types_count, binding& param, native_binding& native_param, binding* returning, bool copy_name_text )
[symbol: _ZN3odb5pgsql16insert_statementC2ERNS0_10connectionEPKcS5_bPKjjRNS0_7bindingERNS0_14native_bindingEbb]
| Change | Effect |
---|
1 | Parameters list has been changed. | The name of the appropriate symbol for this function on binary level has been changed from _ZN3odb5pgsql16insert_statementC2ERNS0_10connectionEPKcS5_bPKjjRNS0_7bindingERNS0_14native_bindingEbb to _ZN3odb5pgsql16insert_statementC2ERNS0_10connectionEPKcS5_bPKjjRNS0_7bindingERNS0_14native_bindingEPS8_b. This may cause "undefined reference" linker error in old client applications. |
[+] insert_statement::insert_statement [not-in-charge] ( statement::connection_type& conn, std::string const& name, std::string const& text, bool process_text, Oid const* types, std::size_t types_count, binding& param, native_binding& native_param, bool returning ) (1)
changed to:insert_statement::insert_statement [not-in-charge] ( statement::connection_type& conn, char const* name, char const* text, bool process_text, Oid const* types, std::size_t types_count, binding& param, native_binding& native_param, binding* returning, bool copy_name_text )
[symbol: _ZN3odb5pgsql16insert_statementC2ERNS0_10connectionERKSsS5_bPKjjRNS0_7bindingERNS0_14native_bindingEb]
| Change | Effect |
---|
1 | Parameters list has been changed. | The name of the appropriate symbol for this function on binary level has been changed from _ZN3odb5pgsql16insert_statementC2ERNS0_10connectionERKSsS5_bPKjjRNS0_7bindingERNS0_14native_bindingEb to _ZN3odb5pgsql16insert_statementC2ERNS0_10connectionEPKcS5_bPKjjRNS0_7bindingERNS0_14native_bindingEPS8_b. This may cause "undefined reference" linker error in old client applications. |
[+] insert_statement::insert_statement [in-charge] ( statement::connection_type& conn, std::string const& name, std::string const& text, bool process_text, Oid const* types, std::size_t types_count, binding& param, native_binding& native_param, bool returning ) (1)
changed to:insert_statement::insert_statement [in-charge] ( statement::connection_type& conn, char const* name, char const* text, bool process_text, Oid const* types, std::size_t types_count, binding& param, native_binding& native_param, binding* returning, bool copy_name_text )
[symbol: _ZN3odb5pgsql16insert_statementC1ERNS0_10connectionERKSsS5_bPKjjRNS0_7bindingERNS0_14native_bindingEb]
| Change | Effect |
---|
1 | Parameters list has been changed. | The name of the appropriate symbol for this function on binary level has been changed from _ZN3odb5pgsql16insert_statementC1ERNS0_10connectionERKSsS5_bPKjjRNS0_7bindingERNS0_14native_bindingEb to _ZN3odb5pgsql16insert_statementC1ERNS0_10connectionEPKcS5_bPKjjRNS0_7bindingERNS0_14native_bindingEPS8_b. This may cause "undefined reference" linker error in old client applications. |
to the top
Problems with Data Types, Low Severity (9)
database.hxx
namespace odb
[+] typedef database::query_factory_map (1)
| Change |
Effect |
1 | Base type has been changed from std::map<char const*,void(*)(char const*,connection&),details::c_string_comparator> to std::map<char const*,details::function_wrapper<...>,details::c_string_comparator>. | Replacement of the base data type may indicate a change in its semantic meaning. |
[+] affected symbols (1)
pgsql::database::connection_ ( )Field 'retval->database_->query_factory_map_' in return value (pointer) has type 'database::query_factory_map'.
exception.hxx
namespace details
[+] class exception (1)
| Change |
Effect |
1 | Size of this type has been changed from 4 bytes to 12 bytes. | The fields or parameters of such data type may be incorrectly initialized or accessed by old client applications. |
[+] affected symbols (1)
exception::~exception [in-charge] ( )This method is from 'exception' class.
exceptions.hxx
namespace odb
[+] class connection_lost (1)
| Change |
Effect |
1 | Size of this type has been changed from 4 bytes to 12 bytes. | The fields or parameters of such data type may be incorrectly initialized or accessed by old client applications. |
[+] affected symbols (1)
connection_lost::~connection_lost [in-charge] ( )This method is from 'connection_lost' class.
[+] class deadlock (1)
| Change |
Effect |
1 | Size of this type has been changed from 4 bytes to 12 bytes. | The fields or parameters of such data type may be incorrectly initialized or accessed by old client applications. |
[+] affected symbols (1)
deadlock::~deadlock [in-charge] ( )This method is from 'deadlock' class.
[+] class recoverable (1)
| Change |
Effect |
1 | Size of this type has been changed from 4 bytes to 12 bytes. | The fields or parameters of such data type may be incorrectly initialized or accessed by old client applications. |
[+] affected symbols (1)
recoverable::~recoverable [in-charge] ( )This method is from 'recoverable' class.
exceptions.hxx
namespace odb::details
[+] class posix_exception (1)
| Change |
Effect |
1 | Size of this type has been changed from 8 bytes to 16 bytes. | The fields or parameters of such data type may be incorrectly initialized or accessed by old client applications. |
[+] affected symbols (1)
posix_exception::~posix_exception [in-charge] ( )This method is from 'posix_exception' class.
statement.hxx
namespace odb::pgsql
[+] class insert_statement (3)
| Change |
Effect |
1 | Size of this type has been changed from 56 bytes to 48 bytes. | The fields or parameters of such data type may be incorrectly initialized or accessed by old client applications. |
2 | Type of field returning_ has been changed from bool (1 byte) to binding* (4 bytes). | Size of the inclusive type has been changed. |
3 | Field id_ has been removed from this type. | Size of the inclusive type has been changed. |
[+] affected symbols (2)
insert_statement::execute ( )This method is from 'insert_statement' class.
insert_statement::~insert_statement [in-charge] ( )This method is from 'insert_statement' class.
to the top
Header Files (39)
auto-handle.hxx
binding.hxx
config.h
config.hxx
connection-factory.hxx
connection.hxx
container-statements.hxx
conversion.hxx
database.hxx
endian-traits.hxx
error.hxx
exceptions.hxx
export.hxx
forward.hxx
no-id-object-result.hxx
no-id-object-statements.hxx
options.hxx
pgsql-fwd.hxx
pgsql-oid.hxx
pgsql-types.hxx
polymorphic-object-result.hxx
polymorphic-object-statements.hxx
prepared-query.hxx
query-dynamic.hxx
query.hxx
section-statements.hxx
simple-object-result.hxx
simple-object-statements.hxx
statement-cache.hxx
statement.hxx
statements-base.hxx
tracer.hxx
traits-calls.hxx
traits.hxx
transaction-impl.hxx
transaction.hxx
version.hxx
view-result.hxx
view-statements.hxx
to the top
Shared Libraries (1)
libodb-pgsql-2.3.so
to the top