You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MoonE opened this issue
Jul 18, 2021
· 5 comments
· Fixed by #17074
Assignees
Labels
BugA problem or regression with an existing featurehas-prAn issue that has a pull request pending that may fix this issue. The pull request may be incomplete
Cannot save data from gis editor for spatial column.
To Reproduce
Steps to reproduce the behavior:
Go to the insert form on a table with 'Point' column (or any other spatial column)
Click on 'Edit/Insert' for the Point column
Click 'Copy' to get 'POINT(0 0),' 0 into the form
Click 'Save'
It tries to execute an invalid query: INSERT INTO `test` (`id`, `point`) VALUES (NULL, '\'POINT(0 0)\',0')
Instead of INSERT INTO `test` (`id`, `point`) VALUES (NULL, ST_PointFromText('POINT(0 0)',0))
Expected behavior
A new row should be inserted without error
Screenshots
Server configuration
Operating system:
Web server: nginx/1.14.2
Database version: 8.0.18 - MySQL Community Server - GPL
Please have a look to the home page for the version because "RELEASE_5_1_1-1058-gf0bb3c42e0" does not indicate the true version you are looking at as said on #14813 (comment)
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
BugA problem or regression with an existing featurehas-prAn issue that has a pull request pending that may fix this issue. The pull request may be incomplete
Describe the bug
Cannot save data from gis editor for spatial column.
To Reproduce
Steps to reproduce the behavior:
'POINT(0 0),' 0into the formINSERT INTO `test` (`id`, `point`) VALUES (NULL, '\'POINT(0 0)\',0')Instead of
INSERT INTO `test` (`id`, `point`) VALUES (NULL, ST_PointFromText('POINT(0 0)',0))Expected behavior
A new row should be inserted without error
Screenshots
Server configuration
Client configuration
Additional context
Spatial functions are missing from the list of selectable functions when inserting data, may be related.
The text was updated successfully, but these errors were encountered: