Bug #31158 | Spatial, Union, LONGBLOB vs BLOB bug (crops data) | ||
---|---|---|---|
Submitted: | 23 Sep 2007 14:59 | Modified: | 15 Jan 2008 16:29 |
Reporter: | Artur Bać | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: MyISAM storage engine | Severity: | S2 (Serious) |
Version: | 5.0.45 | OS: | Windows (WindowsXP64, x64 ver of MySQL ) |
Assigned to: | Alexey Botchkov | CPU Architecture: | Any |
Tags: | BLOB, spatial, UNION |
[23 Sep 2007 14:59]
Artur Bać
[23 Sep 2007 15:15]
Artur Bać
There is some workaround joining real empty table with real field of type LONGBLOB Then result type is LONGBLOB and data is not croped to 65535 bytes. CREATE TABLE "v_fix_lb" ( "geomdatawkb" longblob ) ENGINE=MyISAM DEFAULT CHARSET=latin2 ROW_FORMAT=FIXED; select "v_fix_lb"."geomdatawkb" AS "geomdatawkb" from "v_fix_lb" union select aswkb("ws"."geomdata") AS "geomdatawkb" from "waterpoly_spat" "ws" union select aswkb("ws"."geomdata") AS "geomdatawkb" from "oceans_spat" "ws";
[23 Sep 2007 15:54]
Valeriy Kravchuk
Thank you for a bug report. Verified just as descibed.
[7 Nov 2007 10:56]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/37245 ChangeSet@1.2688, 2007-11-07 13:50:42+04:00, holyfoot@mysql.com +3 -0 Bug #31158 Spatial, Union, LONGBLOB vs BLOB bug (crops data) max_length parameter for BLOB-returning functions must be big enough for any possible content. Otherwise the field created for a table will be too small.
[13 Nov 2007 6:56]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/37633 ChangeSet@1.2688, 2007-11-13 10:51:47+04:00, holyfoot@mysql.com +5 -0 Bug #31158 Spatial, Union, LONGBLOB vs BLOB bug (crops data) max_length parameter for BLOB-returning functions must be big enough for any possible content. Otherwise the field created for a table will be too small.
[14 Dec 2007 8:13]
Bugs System
Pushed into 4.1.24
[14 Dec 2007 8:14]
Bugs System
Pushed into 5.0.54
[14 Dec 2007 8:17]
Bugs System
Pushed into 5.1.23-rc
[14 Dec 2007 8:20]
Bugs System
Pushed into 6.0.5-alpha
[15 Jan 2008 16:29]
MC Brown
A note has been added to the 4.1.24, 5.0.54, 5.1.23 and 6.0.5 changelogs: Data in BLOB or GEOMETRY columns could be cropped when performing a UNION query.