Fix incorrect results for numeric data passed through an ECPG SQLDA.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 9e5e3861c78299c0c44c3fc5b635efc2853f1faf
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2018-11-13T20:46:08Z
Releases: 9.4.21
Fix incorrect results for numeric data passed through an ECPG SQLDA.

Numeric values with leading zeroes were incorrectly copied into a
SQLDA (SQL Descriptor Area), leading to wrong results in ECPG programs.

Report and patch by Daisuke Higuchi.  Back-patch to all supported
versions.

Discussion: https://postgr.es/m/1803D792815FC24D871C00D17AE95905C71161@g01jpexmbkw24

Files

Discussion