Hi Andreas,
de-serialising code is in lib/mysql-native/serializers/reader.js
You can
1) use non-binary protocol ( query() instead of execute() ) - prepared
statement result uses binary protocol and requires each field type to
be deserialized accordingly while non-binary query() result returned
as string regardless of field type.
or
2) add support for mediumint
- create test
- write de-serealizer (it's probably 3 bytes int, but could be 4
bytes) - double-check what you receive with test query
- create pull request
Let me know if you decide for 2) and need any help
Cheers,
Andrey