From 34018f5441ee81de73c0cc9ca608be7b0db0dd58 Mon Sep 17 00:00:00 2001 From: dimitr Date: Tue, 23 Nov 2010 12:05:41 +0000 Subject: [PATCH] Fixed CORE-3256: Error "request depth exceeded" may appear while preparing a select query against a view with explicit plan. --- src/dsql/metd.epp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/dsql/metd.epp b/src/dsql/metd.epp index 4442935c5c..8dc775beb6 100644 --- a/src/dsql/metd.epp +++ b/src/dsql/metd.epp @@ -1859,11 +1859,13 @@ dsql_rel* METD_get_view_relation(CompiledStatement* statement, dsql_str* relation_name = MAKE_string(X.RDB$RELATION_NAME, strlen(X.RDB$RELATION_NAME)); relation = METD_get_relation(statement, relation_name); delete relation_name; + EXE_unwind(tdbb, handle); return relation; } relation = METD_get_view_relation(statement, X.RDB$RELATION_NAME, relation_or_alias); if (relation) { + EXE_unwind(tdbb, handle); return relation; }