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

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

Commit: 68393f3fd6b91f1f61a2bdb4e59eb439256eeb65
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2018-11-13T20:46:08Z
Releases: 11.2
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