mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
Change pqInternalNotice to accept a format string and args instead of
just a preformatted message; per suggestion by Sean Chittenden.
This commit is contained in:
@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.251 2003/06/23 17:03:19 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.252 2003/06/23 19:20:24 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -2843,8 +2843,9 @@ static void
|
||||
defaultNoticeReceiver(void *arg, const PGresult *res)
|
||||
{
|
||||
(void) arg; /* not used */
|
||||
(*res->noticeHooks.noticeProc) (res->noticeHooks.noticeProcArg,
|
||||
PQresultErrorMessage(res));
|
||||
if (res->noticeHooks.noticeProc != NULL)
|
||||
(*res->noticeHooks.noticeProc) (res->noticeHooks.noticeProcArg,
|
||||
PQresultErrorMessage(res));
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user