Thread: duplicate define in elog.h

duplicate define in elog.h

From
Joe Conway
Date:
I was looking through elog.h and noticed this at about line 36:

#define ERROR    20    /* user error - abort transaction; return         * to known state */
#define ERROR    20    /* user error - abort transaction; return         * to known state */

Joe



Re: duplicate define in elog.h

From
Tom Lane
Date:
Joe Conway <mail@joeconway.com> writes:
> I was looking through elog.h and noticed this at about line 36:
> #define ERROR    20    /* user error - abort transaction; return
>              * to known state */
> #define ERROR    20    /* user error - abort transaction; return
>              * to known state */

Good catch.  Looks like it snuck in here:
http://developer.postgresql.org/cvsweb.cgi/pgsql-server/src/include/utils/elog.h.diff?r1=1.41&r2=1.42
        regards, tom lane


Re: duplicate define in elog.h

From
Bruce Momjian
Date:
Tom Lane wrote:
> Joe Conway <mail@joeconway.com> writes:
> > I was looking through elog.h and noticed this at about line 36:
> > #define ERROR    20    /* user error - abort transaction; return
> >              * to known state */
> > #define ERROR    20    /* user error - abort transaction; return
> >              * to known state */
> 
> Good catch.  Looks like it snuck in here:
> http://developer.postgresql.org/cvsweb.cgi/pgsql-server/src/include/utils/elog.h.diff?r1=1.41&r2=1.42

Man, I am unsafe with a command prompt.  :-)

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
359-1001+  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square,
Pennsylvania19073