-
Notifications
You must be signed in to change notification settings - Fork 176
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
MySql 8.0 release issues #193
Comments
Guess a PR would be very welcome 🤓 right @djlambert ? |
Related to #190 I think we should proceed, adopt the @djlambert still monitoring this library? |
PRs are always welcomed. They should include tests to be merged. |
@djlambert thanks for the response. Regarding #196, not sure how this can be tested more explicitly: the current test-set already covers it... right? However the automated tests fail... |
I'm searching a way to be compliant with MySQL5.7 and MySQL8.0. If process knows which version is running, it can adapt function and prevent users from breaking. I forked the project last week and I will push a big update tonight to avoid untested functions initially. But the updates which uses protected methods insteadof protected properties open a way to determinates the name of function depending the MySQL server version. Perhaps, you could have a look on it. |
Note that MySQL 5.7 also is aware of the |
I'm not sure that MySQL is aware for all ST_ prefixed functions. Did you? When I launch test on my repo, with my old MySQL 5.7 server version, test throws exceptions because ST_GeomFromText is unknown. And MySQL8.0 server version throws exception because GeomFromText is unknown. DQL queries should respect the OGC Standard. So, now, DQL should use prefixed ST_ version. I think its a good strategy to target the OGC Standard with DQL. I already updated the Abstract Platform like in doctrine/dbal. Abstract platform detects the server version and now, the DQL are the same for Postgresql, Mysql5 and Mysql8, but the core of the doctrine spatial lib will create the SQL query with the function known by its server. It will be very easy to deploy solutions for MariaDB and Microsoft SQL Server. |
Aah, no, was not sure as well, that makes it a good thing to have these tests in place 👍 Still on vacation, so this was a quick comment without further research, sorry 😄 Your suggested approach seems very flexible, thumbs up! |
Please, release an update to solve this issue |
According to the official documentation, ST_GeomFromText should be available in MySQL 5.7: |
MySql 8.0 has been released and there has definitely been some focus on the spatial functionality.
Most notably to this library GeomFromText and AsBinary has been deprecated. Instead ST_GeomFromText and ST_AsBinary should be used, which are already available in 5.7, so it shouldn't give any BC breaks.
SRID's are also possible to use in MySql now. So implementing some functionality to support them would be very helpful.
I could start on a PR myself, but would like some confirmation that it can be merged in the near future. Haven't seen much activity here lately :-)
The text was updated successfully, but these errors were encountered: