Commit 9f5ecfe7 authored by Dimitri Fontaine's avatar Dimitri Fontaine
Browse files

Improve text and blobs detection from protocol type and character set.

MySQL sends BLOB and TEXT types under the same column types in the
protocol, as per the following documentation:

  http://dev.mysql.com/doc/internals/en/com-query-response.html#column-type

As we can see in https://github.com/dimitri/pgloader/issues/106 it was
wrong to mix the special character set +mysql-cs-coll-binary+ used to
decide if we just received binary or text data with other _bin
collaction, used for something else entirely, as detailed in:

  http://dev.mysql.com/doc/refman/5.0/en/blob.html
parent 75ad8461
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment