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

force little endian byte order #20

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

jeffgran
Copy link

Tested on MySQL 5.7.11 on OSX

force geometry WKB to be generated little endian byte order since mysql seems to have a bug:

https://dev.mysql.com/worklog/task/?id=1076

Quote:

http://postgis.refractions.net/pipermail/postgis-users/2003-June/002651.html

  • The MySQL code contains an assumption in the WKB handling that all WBK
    will be little endian. If you run MySQL spatial on a big endian machine
    (Sparc, PowerPC, PA-RISC) you will find things go amiss when you try to
    send WKB to little endian machines (x86), because your big endian
    machine will be creating invalid data (big endian data incorrectly
    flagged as little endian).

force geometry WKB to be generated little endian byte order since mysql seems to have a bug:

https://dev.mysql.com/worklog/task/?id=1076

Quote:

http://postgis.refractions.net/pipermail/postgis-users/2003-June/002651.html

* The MySQL code contains an assumption in the WKB handling that all WBK
will be little endian. If you run MySQL spatial on a big endian machine
(Sparc, PowerPC, PA-RISC) you will find things go amiss when you try to
send WKB to little endian machines (x86), because your big endian
machine will be creating invalid data (big endian data incorrectly
flagged as little endian).
@januszm
Copy link
Contributor

januszm commented Jun 23, 2017

Missed this one for some reason. I'll review soon.

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.

None yet

2 participants