[MDEV-5481] mysqldump fails to dump geometry types properly Created: 2013-12-22 Updated: 2014-02-18 Due: 2014-01-31 Resolved: 2014-02-18 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 5.5.33a |
| Fix Version/s: | 5.5.36 |
| Type: | Bug | Priority: | Major |
| Reporter: | Guillaume Giraudon | Assignee: | Alexey Botchkov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | geometry, mysqldump | ||
| Environment: |
Debian Linux (Wheezy) |
||
| Description |
|
When backing up a database with MYSQL_TYPE_GEOMETRY fields, mysqldump will output those fields in binary format by default. This causes issues upon restore. The typical error returned by mysql when restoring such a dump is : "Cannot get GEOMETRY object from the data you send to the Geometry field". Using the --hex-blob option fails to treat GEOMETRY types as blobs. A simple solution is to change the following line in mysqldump.c field->type == MYSQL_TYPE_TINY_BLOB)) ? 1 : 0; for |
| Comments |
| Comment by Elena Stepanova [ 2013-12-31 ] |
|
Hi, Could you please provide an example of the data which triggers the error? It would be useful for testing. |
| Comment by Guillaume Giraudon [ 2013-12-31 ] |
|
Hi Elena, I'm having a hard time locating an exact instance of a data dump with failing details. Best regards, Guillaume |
| Comment by Alexey Botchkov [ 2014-02-18 ] |
|
Fix: |
| Comment by Alexey Botchkov [ 2014-02-18 ] |
|
pushed into 5.3 |