Right now, inserting empty binary file (all binary zeroes) causes escaping of every single byte in content. This creates SQL which is double in size and can easily exceed max_allowed_packet value in MySQL.
This change uses prepared statements instead of escaping, so created SQLs (for files that would need escaping) are smaller.
Right now, inserting empty binary file (all binary zeroes) causes escaping of every single byte in content. This creates SQL which is double in size and can easily exceed max_allowed_packet value in MySQL.
This change uses prepared statements instead of escaping, so created SQLs (for files that would need escaping) are smaller.