We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when visualizing nullable geometry column.
Steps to reproduce the behavior:
CREATE TABLE `a` (`p` polygon DEFAULT NULL); INSERT INTO `a` (`p`) VALUES (NULL); SELECT * FROM `a`;
Error in GIS visualize with nullable Polygon column <b>Fatal error</b>: Uncaught TypeError: mb_strpos() expects parameter 1 to be string, null given in libraries\classes\Gis\GisVisualization.php:626 Stack trace: #0 libraries\classes\Gis\GisVisualization.php(626): mb_strpos(NULL, '(') #1 libraries\classes\Gis\GisVisualization.php(365): PhpMyAdmin\Gis\GisVisualization->scaleDataSet(Array) #2 libraries\classes\Gis\GisVisualization.php(382): PhpMyAdmin\Gis\GisVisualization->svg() #3 libraries\classes\Gis\GisVisualization.php(568): PhpMyAdmin\Gis\GisVisualization->asSVG() #4 libraries\classes\Controllers\Table\GisVisualizationController.php(184): PhpMyAdmin\Gis\GisVisualization->toImage('svg') #5 libraries\classes\Routing.php(186): PhpMyAdmin\Controllers\Table\GisVisualizationController->index(Array) #6 index.php(18): PhpMyAdmin\Routing::callControllerForRoute('/table/gis-visu...', Object(FastRoute\Dispatcher\GroupCountBased), Object(Symfony\Component\DependencyInjection\ContainerBuilder)) #7 {main} thrown in <b>libraries\classes\Gis\GisVisualization.php</b> on line <b>626</b>
Ignore null values for visualization.
The text was updated successfully, but these errors were encountered:
Add a test for #16706
b5b6227
Signed-off-by: William Desportes <williamdes@wdes.fr>
Thank you @M393 for this report ! I could reproduce and fix this issue, I also added tests to cover it. It will be fixed in the next 5.1 version.
Sorry, something went wrong.
Add a ChangeLog entry for #16706
1293696
97f0b16
williamdes
No branches or pull requests
Describe the bug
Error when visualizing nullable geometry column.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Ignore null values for visualization.
Server configuration
The text was updated successfully, but these errors were encountered: