]> granicus.if.org Git - php/commit
Fix for bug #68087 (ODBC not reading DATE columns correctly)
authorKeyur Govande <keyur@php.net>
Tue, 7 Oct 2014 21:17:36 +0000 (21:17 +0000)
committerKeyur Govande <keyur@php.net>
Tue, 7 Oct 2014 21:17:36 +0000 (21:17 +0000)
commitdf9078ea55e2bd60d718c6e6948b70311650fe39
tree31d9c8c67ac657f21d2b06f05a6c44280e632d2a
parentd21602c07288283e680941c0c0f963715fed0337
Fix for bug #68087 (ODBC not reading DATE columns correctly)

Temporary variable indicating column field type ID should be
reset to default for loop iteration (i.e. every column in the
record set. The old buggy code made it persist across all columns
leading to invalid reads from the buffer, if for example a DATE
column was preceded by a VARCHAR column.
ext/odbc/php_odbc.c
ext/odbc/tests/bug68087.phpt [new file with mode: 0644]