Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when parsing utf8mb3 BLOB columns (MariaDB 10.7) Tag: v0.5.1 #143

Open
juan-ferrer-toribio opened this issue Aug 15, 2022 · 1 comment · May be fixed by #144
Open

Crash when parsing utf8mb3 BLOB columns (MariaDB 10.7) Tag: v0.5.1 #143

juan-ferrer-toribio opened this issue Aug 15, 2022 · 1 comment · May be fixed by #144

Comments

@juan-ferrer-toribio
Copy link

juan-ferrer-toribio commented Aug 15, 2022

Because MariaDB 10.7 has renamed utf8 to utf8mb3 (wich is the real econding name, also supported by MySQL), iconv.decode() function fails when utf8mb3 is passed as encoding (second parameter) when parsing BLOB columns.

Error: Encoding not recognized: 'utf8mb3' (searched as: 'utf8mb3')
    at Object.getCodec (iconv-lite/lib/index.js:104:23)
    at Object.getDecoder (iconv-lite/lib/index.js:125:23)
    at Object.decode (iconv-lite/lib/index.js:38:25)
    at Object.readMysqlValue (zongji/lib/common.js:470:23)
    ...
@juan-ferrer-toribio juan-ferrer-toribio changed the title Crash when parsing utf8mb3 BLOB columns (MariaDB) Crash when parsing utf8mb3 BLOB columns (MariaDB) Tag: v0.5.1 Aug 15, 2022
@juan-ferrer-toribio juan-ferrer-toribio changed the title Crash when parsing utf8mb3 BLOB columns (MariaDB) Tag: v0.5.1 Crash when parsing utf8mb3 BLOB columns (MariaDB 10.7) Tag: v0.5.1 Aug 15, 2022
@juan-ferrer-toribio juan-ferrer-toribio linked a pull request Aug 15, 2022 that will close this issue
@juan-ferrer-toribio
Copy link
Author

Pull request created #144

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant