duplicate define in elog.h

Started by Joe Conwayover 22 years ago3 messages
#1Joe Conway
mail@joeconway.com

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

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Joe Conway (#1)
Re: duplicate define in elog.h

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&amp;r2=1.42

regards, tom lane

#3Bruce Momjian
pgman@candle.pha.pa.us
In reply to: Tom Lane (#2)
Re: duplicate define in elog.h

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&amp;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, Pennsylvania 19073