Skip to content

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.

2 participants