8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-24 00:03:03 +01:00

Fixed bug CORE-3801 : Warnings could be put twice in status-vector

This commit is contained in:
hvlad 2012-03-29 13:53:21 +00:00
parent 660fa3b651
commit 9ac7d597a1

View File

@ -2706,9 +2706,11 @@ static dsql_req* prepare(thread_db* tdbb, dsql_dbb* database, jrd_tra* transacti
#endif
// check for warnings
if (tdbb->tdbb_status_vector[2] == isc_arg_warning) {
if (tdbb->tdbb_status_vector[2] == isc_arg_warning)
{
// save a status vector
memcpy(local_status, tdbb->tdbb_status_vector, sizeof(ISC_STATUS_ARRAY));
fb_utils::init_status(tdbb->tdbb_status_vector);
}
ISC_STATUS status = FB_SUCCESS;