It turns out that mysql and mysql2 have different property names on a column definition. The mysql library's column definition (internally called a FieldPacket) has its properties here, and the mysql2 library's column definition (internally called a ColumnDefinition) has its properties here. They differ with respect to columnType, columnLength, schema, and characterSet, so this PR extends the FieldPacket to add these types. This is a non breaking change.
It turns out that
mysql
andmysql2
have different property names on a column definition. Themysql
library's column definition (internally called aFieldPacket
) has its properties here, and themysql2
library's column definition (internally called aColumnDefinition
) has its properties here. They differ with respect tocolumnType
,columnLength
,schema
, andcharacterSet
, so this PR extends theFieldPacket
to add these types. This is a non breaking change.