metadata[i] = d.readInt(2); // Little-endian
break;
case MySQLConstants.TYPE_SET:
case MySQLConstants.TYPE_ENUM:
case MySQLConstants.TYPE_STRING:
metadata[i] = CodecUtils.toInt(d.readBytes(2), 0, 2); // Big-endian
break;
case MySQLConstants.TYPE_TIME2:
case MySQLConstants.TYPE_DATETIME2:
case MySQLConstants.TYPE_TIMESTAMP2:
metadata[i] = d.readInt(1);