"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/lib/pgsql/pgsql_connection.h" between
kea-1.6.1.tar.gz and kea-1.6.2.tar.gz

About: Kea is a modern DHCPv4 & DHCPv6 Server (potential successor of ISC DHCP).

pgsql_connection.h  (kea-1.6.1):pgsql_connection.h  (kea-1.6.2)
// Copyright (C) 2016-2019 Internet Systems Consortium, Inc. ("ISC") // Copyright (C) 2016-2020 Internet Systems Consortium, Inc. ("ISC")
// //
// This Source Code Form is subject to the terms of the Mozilla Public // This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this // License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/. // file, You can obtain one at http://mozilla.org/MPL/2.0/.
#ifndef PGSQL_CONNECTION_H #ifndef PGSQL_CONNECTION_H
#define PGSQL_CONNECTION_H #define PGSQL_CONNECTION_H
#include <database/database_connection.h> #include <database/database_connection.h>
#include <libpq-fe.h> #include <libpq-fe.h>
skipping to change at line 388 skipping to change at line 388
/// @brief Checks result of the r object /// @brief Checks result of the r object
/// ///
/// This function is used to determine whether or not the SQL statement /// This function is used to determine whether or not the SQL statement
/// execution succeeded, and in the event of failures, decide whether or /// execution succeeded, and in the event of failures, decide whether or
/// not the failures are recoverable. /// not the failures are recoverable.
/// ///
/// If the error is recoverable, the function will throw a DbOperationError. /// If the error is recoverable, the function will throw a DbOperationError.
/// If the error is deemed unrecoverable, such as a loss of connectivity /// If the error is deemed unrecoverable, such as a loss of connectivity
/// with the server, the function will call invokeDbLostCallback(). If the /// with the server, the function will call invokeDbLostCallback(). If the
/// invocation returns false then either there is no callback registered /// invocation returns false then either there is no callback registered
/// or the callback has elected not to attempt to reconnect, and exit(-1) /// or the callback has elected not to attempt to reconnect, and a
/// is called; /// DbUnrecoverableError is thrown.
/// ///
/// If the invocation returns true, this indicates the calling layer will /// If the invocation returns true, this indicates the calling layer will
/// attempt recovery, and the function throws a DbOperationError to allow /// attempt recovery, and the function throws a DbOperationError to allow
/// the caller to error handle the failed db access attempt. /// the caller to error handle the failed db access attempt.
/// ///
/// @param r result of the last PostgreSQL operation /// @param r result of the last PostgreSQL operation
/// @param statement - tagged statement that was executed /// @param statement - tagged statement that was executed
/// ///
/// @throw isc::dhcp::DbOperationError Detailed PostgreSQL failure /// @throw isc::dhcp::DbOperationError Detailed PostgreSQL failure
void checkStatementError(const PgSqlResult& r, void checkStatementError(const PgSqlResult& r,
 End of changes. 2 change blocks. 
3 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)