Changeset 974:2091bf698fb1 in freeDiameter for extensions/app_acct/acct_db.c
- Timestamp:
- Mar 15, 2013, 2:14:35 AM (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/app_acct/acct_db.c
r871 r974 79 79 80 80 CHECK_PARAMS_DO( PQisthreadsafe() == 1, { 81 fd_log_debug("You PostGreSQL installation is not thread-safe! \n");81 fd_log_debug("You PostGreSQL installation is not thread-safe!"); 82 82 return EINVAL; 83 83 } ); … … 88 88 /* Check to see that the backend connection was successfully made */ 89 89 if (PQstatus(conn) != CONNECTION_OK) { 90 fd_log_debug("Connection to database failed: %s \n", PQerrorMessage(conn));90 fd_log_debug("Connection to database failed: %s", PQerrorMessage(conn)); 91 91 acct_db_free(); 92 92 return EINVAL; 93 93 } 94 94 if (PQprotocolVersion(conn) < 3) { 95 fd_log_debug("Database protocol version is too old, version 3 is required for prepared statements. \n");95 fd_log_debug("Database protocol version is too old, version 3 is required for prepared statements."); 96 96 acct_db_free(); 97 97 return EINVAL; … … 194 194 ADD_EXTEND(");"); 195 195 196 TRACE_DEBUG(FULL, "Preparing the following SQL statement: \n%s\n", sql);196 TRACE_DEBUG(FULL, "Preparing the following SQL statement: '%s'", sql); 197 197 res = PQprepare(conn, stmt, sql, emptyrecords.nball, NULL); 198 198 if (PQresultStatus(res) != PGRES_COMMAND_OK) {
Note: See TracChangeset
for help on using the changeset viewer.