mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 21:23:03 +01:00
Fixed CORE-3256: Error "request depth exceeded" may appear while preparing a select query against a view with explicit plan.
This commit is contained in:
parent
a50dbf014f
commit
34018f5441
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user