|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2019-09-25 15:48 UTC] requinix@php.net
-Status: Open
+Status: Analyzed
[2019-09-25 15:48 UTC] requinix@php.net
[2024-05-14 04:28 UTC] carol1987grayson at outlook dot com
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 08:00:01 2025 UTC |
Description: ------------ PDOStatement::getColumnMeta() doesn't return native_type for JSON type columns (i suppose it should be "string"). Test script: --------------- $DB=new PDO('mysql:host=localhost;dbname=test','user','pass'); $DB->exec('CREATE TABLE `test` (`a` JSON)'); $DB->exec("INSERT INTO `test` VALUES('[]')"); $statement=$DB->query('SELECT `a` FROM `test`'); $meta=$statement->getColumnMeta(0); var_dump(isset($meta['native_type'])); Expected result: ---------------- bool(true) Actual result: -------------- bool(false)