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

[lazy_send mode] problem with alloc_stmt+prepare_stmt operation [CORE4988] #5279

Open
firebird-automations opened this issue Nov 4, 2015 · 0 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: @ibprovider

In lazy_send mode, when the statement prepares the first own SQL, fbclient.dll sends two packet: op_allocate_statement and op_prepare_statement

If first operation [op_allocate_statement] is failed, fbclient.dll not receives the answer for second operation [op_prepare_statement].

--------------- [interface.cpp, GDS_DSQL_PREPARE]

// Set up for the response packet.

if (statement->rsr_flags.test(Rsr::LAZY))
{
if (!receive_response(rdb, packet))
return user_status[1]; // <------- WRONG EXIT !!!

statement\-\>rsr\_id = packet\-\>p\_resp\.p\_resp\_object;
SET\_OBJECT\(rdb, statement, statement\-\>rsr\_id\);

statement\-\>rsr\_flags\.clear\(Rsr::LAZY\);

}

---------------[/interface.cpp]

At result, fbclient.dll starts to works incorrectly.

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

No branches or pull requests

1 participant