OSDN Git Service

Fix Joubert's complaint that int8-sized numeric literals are mishandled
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 22 Mar 2001 17:41:47 +0000 (17:41 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 22 Mar 2001 17:41:47 +0000 (17:41 +0000)
commitb32cac8055118d264b27b1073d3d43e9a127130e
tree1d9f228f94653c7cf7d1485163428bef1ba52390
parent339cd6b9b00451f1f7046d6b52500e2d2992a385
Fix Joubert's complaint that int8-sized numeric literals are mishandled
on Alpha (because parser mistakenly assumes that a nonoverflow result
from strtol means the value will fit into int4).  A scan for other uses
of strtol and strtoul found a couple other places with the same mistake;
fix them too.  The changes are all conditional on HAVE_LONG_INT_64 to
avoid complaints from compilers that think x != x is a silly test
(cf. pg_atoi).
src/backend/nodes/read.c
src/backend/parser/scan.l
src/backend/utils/misc/guc.c