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

Add charset options lc_type and lc_decode to createConnection #95

Merged
merged 2 commits into from
Nov 20, 2019

Conversation

mjschutz
Copy link
Contributor

Hi.

I made changes to support options on createConnection to change lc_type and a lc_decode function to decode the result buffer to string. Example:

let connection = Firebird.createConnection({ lc_type: 'WIN1252', lc_decode: (data) => iconv.decode(data, 'windows-1252') });

I run tests here and the code is working fine (node 12), this will probably resolve the issues #9 and #87

@mjschutz
Copy link
Contributor Author

I will check the problem with the assync version of connection, and commit a fix.

@xdenser xdenser merged commit 71c419e into xdenser:master Nov 20, 2019
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 this pull request may close these issues.

2 participants