]> granicus.if.org Git - php/commit
Fix getColumnMeta() test
authorNikita Popov <nikita.ppv@gmail.com>
Mon, 17 Sep 2018 14:36:05 +0000 (16:36 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Wed, 19 Sep 2018 10:29:38 +0000 (12:29 +0200)
commit842bec5b3c539396d6ff9e207ba55f626b42524e
treee3ecefb0ee2cad4f5e52225e4c6a23c1368470bd
parentc614dd677c99e14ac6afb25d7bfe02cfa8cf1981
Fix getColumnMeta() test

Newer MySQL versions are stricter about invalid values. Three issues
are fixed:

* Don't use negative values with ZEROFILL. ZEROFILL implies UNSIGNED.
* Use a legal TIMESTAMP value. TIMESTAMP does not accept a Unix timestamp.
* Specify BIGINT values as strings, to avoid overflows.

This is a cherry-pick of d2dc0a32911c0e08986da799ce11e18c3fa5ca57 from master.
ext/pdo_mysql/tests/pdo_mysql_stmt_getcolumnmeta.phpt