[ECPG] fix functions in dt_common to correctly detect integer overflow

2018-10-09 Thread Yang Xiao
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 From fa744e6b2b2601a91080a016f480d443cd1dbf2d Mon Sep 17 00:00:00 2001 From: Young_X Date: Tue, 9 Oct 2018 11

Add overflow test in function numeric_exp.

2018-10-09 Thread Yang Xiao
Hi, The attachment is the proposal patch for function numeric_exp in src/backend/utils/adt/numeric.c. Young From 0456192bbe03428247b9f55b261b24b4b890c680 Mon Sep 17 00:00:00 2001 From: Young_X Date: Tue, 9 Oct 2018 10:59:22 +0800 Subject: [PATCH] Add overflow test in function numeric_exp.