]> granicus.if.org Git - php/commit
Properly initialize out parameter
authorChristoph M. Becker <cmbecker69@gmx.de>
Mon, 29 Apr 2019 10:17:38 +0000 (12:17 +0200)
committerChristoph M. Becker <cmbecker69@gmx.de>
Mon, 29 Apr 2019 10:17:38 +0000 (12:17 +0200)
commit71e9013bab22585d47f1f8c02b4c7d93b43298f4
treedaf168eef78c2d49987e543f6e5d09bff7152d11
parentc79d5b86e005655d10a41d72ff61c33387e88e09
Properly initialize out parameter

The MS docs on `SQLColAttribute()`[1] state regarding the
`NumericAttributePtr` parameter:

| Please note that some drivers may only write the lower 32-bit or
| 16-bit of a buffer and leave the higher-order bit unchanged.
| Therefore, applications should initialize the value to 0 before
| calling this function.

[1] <https://docs.microsoft.com/en-us/sql/odbc/reference/syntax/sqlcolattribute-function?view=sql-server-2017>
ext/odbc/php_odbc.c