mirror of
https://github.com/php/php-src.git
synced 2026-04-26 09:28:21 +02:00
c7fc819c2d
The FIELD_TYPE constants are for BC. The JSON/VECTOR types are not defined in FIELD_TYPE for libmysqlclient. MYSQL_TYPE is available since MYSQL 5.0.0, so switch to that. Since MYSQL_TYPEs are enums and not defines, we need version checks instead. JSON was added in mysql 8.0.0 in mysql/mysql-server@c240455145 JSON support was backported via mysql/mysql-server@3e14f9f in 5.7.8. VECTOR was added in mysql 9.0.0 in mysql/mysql-server@8cd51511de Replaces GH-20245.