[ECPG] fix functions in dt_common to correctly detect integeroverflow - Mailing list pgsql-hackers

From Yang Xiao
Subject [ECPG] fix functions in dt_common to correctly detect integeroverflow
Date
Msg-id SG2PR01MB2169D954F318F3B4BB1269DFADE70@SG2PR01MB2169.apcprd01.prod.exchangelabs.com
Whole thread Raw
List pgsql-hackers
Hi,

The attachment is the proposal patch for dt_common.c.

replace strtol to strtoint, as strtol() will return 64-bit output in 
that case, while type of var, hr, tm_min
  is int.

Young


Attachment

pgsql-hackers by date:

Previous
From: Yang Xiao
Date:
Subject: Add overflow test in function numeric_exp.
Next
From: Tom Lane
Date:
Subject: Re: pread() and pwrite()