mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-22 21:23:04 +01:00
Fix for CORE-6072: better diag for missing timeouts support in particular provider, ignore error for 0 (missing) timeout
This commit is contained in:
parent
6158b2fa1d
commit
2e9df437e6
@ -3735,7 +3735,17 @@ ISC_STATUS rem_port::execute_statement(P_OP op, P_SQLDATA* sqldata, PACKET* send
|
||||
check(&status_vector);
|
||||
|
||||
statement->rsr_iface->setTimeout(&status_vector, sqldata->p_sqldata_timeout);
|
||||
check(&status_vector);
|
||||
if ((status_vector.getState() & IStatus::STATE_ERRORS) &&
|
||||
(status_vector.getErrors()[1] == isc_interface_version_too_old))
|
||||
{
|
||||
if (sqldata->p_sqldata_timeout)
|
||||
{
|
||||
(Arg::Gds(isc_wish_list) <<
|
||||
Arg::Gds(isc_random) << "Timeouts not supported by selected on server provider").raise();
|
||||
}
|
||||
}
|
||||
else
|
||||
check(&status_vector);
|
||||
|
||||
if ((flags & IStatement::FLAG_HAS_CURSOR) && (out_msg_length == 0))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user