New issue
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
Visualization GIS doesn't work #17188
Comments
|
A query like SELECT * FROM `geometries` WHERE label = '1';is changed by the visualization to SELECT ST_ASTEXT(`point`) AS `point`, ST_SRID(`point`) AS `srid` FROM (
SELECT * FROM `geometries` WHERE label = '1';
) AS `temp_gis` LIMIT 0, 25Notice the semicolon at the end of the original query is kept and causes a syntax error. |
|
When clicking on the browse button to view a table the query is executed / displayed without a semicolon. When it is edited inline, a semicolon is automatically added. Should a semicolon be added to the query when a table is browsed to be consistent? phpmyadmin/libraries/classes/Sql.php Lines 533 to 534 in 090d2ee
The resulting sql error is silently ignored here phpmyadmin/libraries/classes/Gis/GisVisualization.php Lines 252 to 260 in 090d2ee
Would it be possible to show an error message instead? |
|
Thank you for the report and fix @MoonE |
Signed-off-by: William Desportes <williamdes@wdes.fr>
Signed-off-by: William Desportes <williamdes@wdes.fr>
Describe the bug
i had a column that shows linestring and i can see the visualization of the data in browse tab, however if i run a query and click visualize data, it doesn't show anything
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The line should be visible
Screenshots
This one works perfectly if i click the visualize button on browse tab

If i use query, it doesn't show


Server configuration
Client configuration
The text was updated successfully, but these errors were encountered: