4
I need to return a line in JSON, but the PDO does not seem to give full support to operations. Always the error message type 245.
PDO::prepare(): Unknown type 245 sent by the server. Please send a report to the Developers
I tested in PDO a simple select SELECT JSON_ARRAY('a', 1, NOW())
and only get the error without further descriptions, nor find anything in the DOC. The same select in the command line in MYSQL returns what is expected:
["a", 1, "2017-07-18 00:11:06.000000"]
Does anyone have a reference to help solve this?
What version of
PHP
and ofMySQL
?– Marcelo de Andrade
I went to test the function here on the company server, but here and mariadb version 10.1, https://mariadb.com/kb/en/mariadb/json_array/ so don’t even try to help kkk
– MarceloBoni
@Marcelodeandrade PHP Version 5.5.0, MYSQL 5.7.13
– Papa Charlie
@Marceloboni, no problem rs. I played in the sqlfiddle to test and also returns error.
– Papa Charlie
The sqlfiddle version is 5.6, the functions with support for
JSON
were implemented from mysql 5.7 according to the documentation– MarceloBoni