http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45846
Frédéric Buclin <LpSolit at netscape dot net> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED AssignedTo|unassigned at gcc dot |LpSolit at netscape dot net |gnu.org | --- Comment #2 from Frédéric Buclin <LpSolit at netscape dot net> 2010-09-30 20:10:39 UTC --- mysql> select length(thedata) from attach_data where id=21915; +-----------------+ | length(thedata) | +-----------------+ | 666 | +-----------------+ All attachments are zipped before being inserted into the DB. 666 bytes is the size of the compressed attachment. I have to fix $attachment->datasize to return the size of the uncompressed data, but this means that I can no longer do a SQL query with length(thedata). I have to get the data itself, unzip it, and then look at length(uncompressed data), which is slower.