Bug #78596 [NEW]: getColumnMeta() doesn't return native_type for JSON

From: Date: Wed, 25 Sep 2019 14:23:29 +0000
Subject: Bug #78596 [NEW]: getColumnMeta() doesn't return native_type for JSON
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-222912@lists.php.net to get a copy of this message
From: phpbug at discosucks dot it Operating system: linux PHP version: 7.2.22 Package: PDO MySQL Bug Type: Bug Bug description:getColumnMeta() doesn't return native_type for JSON 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) -- Edit bug report at https://bugs.php.net/bug.php?id=78596&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=78596&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=78596&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=78596&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=78596&r=needscript Try newer version: https://bugs.php.net/fix.php?id=78596&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=78596&r=support Expected behavior: https://bugs.php.net/fix.php?id=78596&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=78596&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=78596&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=78596&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=78596&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=78596&r=dst IIS Stability: https://bugs.php.net/fix.php?id=78596&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=78596&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=78596&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=78596&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=78596&r=mysqlcfg

« previous php.bugs (#222912) next »