Skip to content
New issue

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

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

Already on GitHub? # to your account

Problem if is there a db error during fetch #68

Open
sdnetwork opened this issue Mar 9, 2017 · 0 comments
Open

Problem if is there a db error during fetch #68

sdnetwork opened this issue Mar 9, 2017 · 0 comments

Comments

@sdnetwork
Copy link

create or alter procedure TEST_ERROR_DURING_FETCH
returns (
MSG varchar(200))
AS
declare variable dbpath lib100;
declare variable dbpass lib100;
begin
msg = 'oupsss';
suspend;
exception raiseexception('bug');
end

for exemple if you do a select on this proc you get

wireprotocol.py", line 820, in _op_fetch_response
raise InternalError

i have have this problem on node-firebird also, and the solution is to heck the op code after each line :

        b = self.recv_channel(12)
        # op = bytes_to_bint(b[:4]) // this op is set to op_response when there is an errror
        status = bytes_to_bint(b[4:8])
        count = bytes_to_bint(b[8:])
nakagami added a commit that referenced this issue Feb 25, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant