asfernandes / node-firebird-drivers

Node.js Firebird Drivers
MIT License
53 stars 17 forks source link

Command failed with exit code 3221225477 #31

Closed gsbelarus closed 4 years ago

gsbelarus commented 4 years ago

When using getPlanAsync() we are receiving the error. getPlanSync() works well at the same time.

asfernandes commented 4 years ago

Show the code, please.

gsbelarus commented 4 years ago

Please, consider this PR https://github.com/asfernandes/node-firebird-drivers/pull/32.

Async getPlan() is not working, the test falls with error.

gsbelarus commented 4 years ago

Though in the considered PR we get plan for INSERT statement, the same result would be obtained for a SELECT statement too.

gsbelarus commented 4 years ago

Can you confirm the issue?

asfernandes commented 4 years ago

From what I understand, the problem happens when Firebird API methods returning string returns a nullptr.

gsbelarus commented 4 years ago

So, async and sync versions of getPlan use different API calls?

gsbelarus commented 4 years ago

Is it possible to find a reason of the problem and fix it. I have put a small donation )) Thanks anyway!

asfernandes commented 4 years ago

I will look deep into the problem. It seems to require changes in the cloop-generator to change the generated code.

Thank you for the donation. :)

asfernandes commented 4 years ago

Fix is committed in master. Can you test it before I release it in npm?

gsbelarus commented 4 years ago

Is it possible to publish through NPM as beta version? It would be much easier for me to test then.

asfernandes commented 4 years ago

Published as 1.0.1-beta.1.

gsbelarus commented 4 years ago

Installed latest beta and tested. All works as expected. Thanks.

asfernandes commented 4 years ago

I just published 1.0.1.