Skip to content
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 support: prefix AsBinary and GeomFromText with "ST_" #196

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

holtkamp
Copy link

No description provided.

@holtkamp
Copy link
Author

As discussed in: #193 and #190

@coveralls
Copy link

Coverage Status

Coverage decreased (-17.7%) to 80.357% when pulling 9ab5d68 on holtkamp:mysql-80-support into 58ea5fa on creof:master.

@coveralls
Copy link

coveralls commented Dec 15, 2018

Coverage Status

Coverage decreased (-43.6%) to 54.447% when pulling 034edaa on holtkamp:mysql-80-support into 58ea5fa on creof:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-17.7%) to 80.357% when pulling 9ab5d68 on holtkamp:mysql-80-support into 58ea5fa on creof:master.

3 similar comments
@coveralls
Copy link

Coverage Status

Coverage decreased (-17.7%) to 80.357% when pulling 9ab5d68 on holtkamp:mysql-80-support into 58ea5fa on creof:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-17.7%) to 80.357% when pulling 9ab5d68 on holtkamp:mysql-80-support into 58ea5fa on creof:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-17.7%) to 80.357% when pulling 9ab5d68 on holtkamp:mysql-80-support into 58ea5fa on creof:master.

@holtkamp
Copy link
Author

It seems the automated tests are broken, but not due to this PR

@holtkamp
Copy link
Author

holtkamp commented Aug 5, 2019

Minor bump on this?

@holtkamp holtkamp changed the title Prefix AsBinary and GeomFromText with "ST_" MySQL 8.0 support: prefix AsBinary and GeomFromText with "ST_" Aug 5, 2019
@SebastienTainon
Copy link

That would be great if it could be merged indeed, as Mysql 8.0 is getting used more and more by the community.

@spackmat
Copy link

Ubuntu 20.04 is out with MySQL 8, so that would be a good occasion to release a version supporting that.

@sadortun
Copy link
Member

Anyone here that can give it a try and test the lib ?

@spackmat
Copy link

Yesterday I only prefixed the two function calls with 'ST_' to get rid of the SQL error in my application. That works fine and fixes the error.

@samwilson
Copy link

samwilson commented Dec 1, 2020

I've tested this patch on mariadb 10.3 and mysql 8.0 and it's good (if that's of any help :-P).

@spackmat how did you do that?

@spackmat
Copy link

spackmat commented Dec 1, 2020

@spackmat how did you do that?

I don't remember exactly, but I think I patched the lines containing 'ST_' manually. But I cannot find that in my code. A week later was the moment, I migrated to MariaDB 10.3 and the problem was gone.

@samwilson
Copy link

I don't remember exactly, but I think I patched the lines containing 'ST_' manually. But I cannot find that in my code. A week later was the moment, I migrated to MariaDB 10.3 and the problem was gone.

Yeah it seems fine in MariaDB. Maybe I should just give up on MySQL. :) For now I'm using this patch (via a Composer repository).

@behalp
Copy link

behalp commented Jan 12, 2021

After switch to new computer with mysql 8.0.22 I got problems with missing AsBinary function, I just prefixed ST_ in lib\CrEOF\Spatial\DBAL\Platform\mysql.php for this function and this fixed it. I made same change in older PC where is 5.6.45 and there it was working as well. I would like to get this fix merged.

@samwilson
Copy link

The alexandret/doctrine2-spatial fork includes this; I've switched to that until this is fixed here.

@behalp
Copy link

behalp commented Jan 13, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants