From 9ac7d597a129e60e9cd2d9c267c3e2650bcbfa18 Mon Sep 17 00:00:00 2001 From: hvlad Date: Thu, 29 Mar 2012 13:53:21 +0000 Subject: [PATCH] Fixed bug CORE-3801 : Warnings could be put twice in status-vector --- src/dsql/dsql.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/dsql/dsql.cpp b/src/dsql/dsql.cpp index dcc8e30f1b..02a81e0fe8 100644 --- a/src/dsql/dsql.cpp +++ b/src/dsql/dsql.cpp @@ -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;