mirror of
https://github.com/postgres/postgres.git
synced 2025-06-27 23:21:58 +03:00
Share PG_DIAG_* macros between client and server and use them internally.
This commit is contained in:
@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-exec.c,v 1.145 2003/08/13 18:56:21 tgl Exp $
|
||||
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-exec.c,v 1.146 2003/08/27 00:33:34 petere Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -480,8 +480,8 @@ pqInternalNotice(const PGNoticeHooks * hooks, const char *fmt,...)
|
||||
/*
|
||||
* Set up fields of notice.
|
||||
*/
|
||||
pqSaveMessageField(res, 'M', msgBuf);
|
||||
pqSaveMessageField(res, 'S', libpq_gettext("NOTICE"));
|
||||
pqSaveMessageField(res, PG_DIAG_MESSAGE_PRIMARY, msgBuf);
|
||||
pqSaveMessageField(res, PG_DIAG_SEVERITY, libpq_gettext("NOTICE"));
|
||||
/* XXX should provide a SQLSTATE too? */
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user