]> granicus.if.org Git - php/commit
Properly initialize displaysize
authorChristoph M. Becker <cmbecker69@gmx.de>
Wed, 24 Jun 2020 10:03:13 +0000 (12:03 +0200)
committerChristoph M. Becker <cmbecker69@gmx.de>
Wed, 24 Jun 2020 10:07:58 +0000 (12:07 +0200)
commit38177dcb421cafef18fd903c6ae170ddc40ae599
tree6707eba25ef00f1bb854c571138670701911e689
parent16fe64d3edfb0e834d5faa3fec4624b62ea77ae8
Properly initialize displaysize

From Microsoft's `SQLColAttribute()` documentation[1]:

| 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>
ext/pdo_odbc/odbc_stmt.c