KoolReport's Forum

Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines

PHP 7 Notice with JSON column #1121

Open Afluens opened this topic on on Oct 10, 2019 - 3 comments

Afluens commented on Oct 10, 2019

I am getting a PHP notice when using json column with MariaDB. Indeed native_type is not defined for such column. Can you fix this ? Thanks, Christophe

Notice: Undefined index: native_type in /Users/cney/dev/testjson/vendor/koolreport/core/src/datasources/PdoDataSource.php on line 461

KoolReport commented on Oct 10, 2019

Could you please try to open the PdoDataSource.php, go to the line 461 and replace with:

$cType = $this->guessType( Util::get($info,"native_type","string"));

Let me know if it works.

Afluens commented on Oct 10, 2019

The fix is PdoDataSource ligne 387 $cType = $this->guessType(isset($info["native_type"])?$info["native_type"]:null);

KoolReport commented on Oct 10, 2019

Great! We will add the fix. Thank you very much.

Build Your Excellent Data Report

Let KoolReport help you to make great reports. It's free & open-source released under MIT license.

Download KoolReport View demo
bug
solved

None