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
Possible MySQL 8.0.0 issue with GIS display #12865
Labels
Projects
Milestone
Comments
nijel
added a commit
that referenced
this issue
Jan 2, 2017
Issue #12865 Signed-off-by: Michal Čihař <michal@cihar.com>
|
This occurs on the newly upgraded demo server, so I think it's safe to say it's an actual bug rather than an artifact of my installation. MySQL 8.0.0-dmr |
|
Probably _modifySqlQuery generates SQL not compatible with 8.0.0... |
|
As a workaround you can edit the file "libraries/classes/Gis/GisVisualization.php": line 175: - $modified_query .= 'ASTEXT('
- . Util::backquote($this->_userSpecifiedSettings['spatialColumn'])
- . ') AS ' . Util::backquote(
- $this->_userSpecifiedSettings['spatialColumn']
- )
- . ', ';`
+ $modified_query .= 'ST_ASTEXT(ST_SRID('
+ . Util::backquote($this->_userSpecifiedSettings['spatialColumn'])
+ . ',0)) AS ' . Util::backquote(
+ $this->_userSpecifiedSettings['spatialColumn']
+ )
+ . ', ';and line 183: - $modified_query .= 'SRID('
- . Util::backquote($this->_userSpecifiedSettings['spatialColumn'])
- . ') AS ' . Util::backquote('srid') . ' ';`
+ $modified_query .= 'ST_SRID('
+ . Util::backquote($this->_userSpecifiedSettings['spatialColumn'])
+ . ') AS ' . Util::backquote('srid') . ' '; |
williamdes
added a commit
to williamdes/phpmyadmintest
that referenced
this issue
Apr 3, 2019
Fixes: phpmyadmin#14383 Fixes: phpmyadmin#12865 Signed-off-by: William Desportes <williamdes@wdes.fr>
williamdes
added a commit
that referenced
this issue
May 1, 2019
williamdes
added a commit
that referenced
this issue
May 1, 2019
[ci skip] Signed-off-by: William Desportes <williamdes@wdes.fr>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'll start off my saying that my client library doesn't match my MySQL version, so that definitely could be the cause of this, but I’m trying PMA master with MySQL 8.0.0 and GIS is broken. It would be great if someone with a better configuration could confirm or refute this.
MySQL: 8.0.0-dmr MySQL Community Server
Database client version: libmysql - 5.5.53
PHP extension: mysqli curl mbstring
PHP version: 5.6.29-0+deb8u1
This works okay with my MySQL 5.5 installation
The text was updated successfully, but these errors were encountered: