#26657 closed Bug (fixed)
MySQL 5.7 GIS test failures: InterfaceError: (-1, 'error totally whack')
| Reported by: | Tim Graham | Owned by: | Sergey Fedoseev |
|---|---|---|---|
| Component: | GIS | Version: | 1.9 |
| Severity: | Normal | Keywords: | |
| Cc: | Claude Paroz | Triage Stage: | Ready for checkin |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
Not sure if it's a Django issue, but the following tests fail with InterfaceError: (-1, 'error totally whack'). The commonality seems to be that these are all new functions in MySQL 5.6.
gis_tests.distapp.tests.DistanceFunctionsTests.test_distance_simple gis_tests.distapp.tests.DistanceFunctionsTests.test_distance_order_by gis_tests.geoapp.test_functions.GISFunctionsTests.test_union gis_tests.geoapp.test_functions.GISFunctionsTests.test_sym_difference gis_tests.geoapp.test_functions.GISFunctionsTests.test_intersection gis_tests.geoapp.test_functions.GISFunctionsTests.test_difference gis_tests.geoapp.test_functions.GISFunctionsTests.test_diff_intersection_union
Change History (14)
comment:1 by , 9 years ago
| Cc: | added |
|---|
comment:3 by , 9 years ago
SRID of geometry from the table is 0, SRID of the given point is 4326, MySQL requires arguments to have the same SRID.
comment:4 by , 9 years ago
Not sure I understand. For the union test, City.objects.get(name='Dallas').point.srid gives 4326 which is the same as the Point in the test. If you are able, feel free to send a patch, Sergey.
comment:5 by , 9 years ago
| Owner: | changed from to |
|---|---|
| Status: | new → assigned |
comment:6 by , 9 years ago
| Has patch: | set |
|---|
PR contains only the partial solution because existing geometries have SRID 0 and will cause a crash.
comment:7 by , 9 years ago
| Has patch: | unset |
|---|
It seems that I figure out a better solution to the problem.
comment:9 by , 9 years ago
| Triage Stage: | Accepted → Ready for checkin |
|---|
From the MySQL 5.7 release notes:
An example failing query from
gis_tests.geoapp.test_functions.GISFunctionsTests.test_union:A minimal query to reproduce is:
Any advice, Claude?