pgsql: Add comments about why errno is set to zero.
pgsql: Add comments about why errno is set to zero.
От:
momjian@postgresql.org (Bruce Momjian)
Дата:
Log Message:
-----------
Add comments about why errno is set to zero.
Modified Files:
--------------
pgsql/src/backend/utils/adt:
datetime.c (r1.162 -> r1.163)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/datetime.c.diff?r1=1.162&r2=1.163)
float.c (r1.116 -> r1.117)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/float.c.diff?r1=1.116&r2=1.117)
Re: pgsql: Add comments about why errno is set to zero.
От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
momjian@postgresql.org (Bruce Momjian) writes: > Log Message: > ----------- > Add comments about why errno is set to zero. These comments seem a bit wrongheaded, since "checking LONG_MIN/LONG_MAX" is exactly not what we could do to detect an overflow error. regards, tom lane