Skip to content

Commit 79ff650

Browse files
committed
Fix problem with plans reported by Pavel Zotov.
create table test(id int primary key using index test_id, f01 timestamp); create index test_f01 on test(f01); commit; set term ^; create procedure sp_test (a_id int) returns (o_f01 type of column test.f01) as begin for select f01 from test where id = :a_id plan (test order test_f01) into o_f01 do suspend; end ^ Statement failed, SQLSTATE = 2F000 Error while parsing procedure "PUBLIC"."SP_TEST"'s BLR -Invalid name:
1 parent b3da905 commit 79ff650

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/jrd/RecordSourceNodes.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3702,7 +3702,8 @@ void RseNode::planSet(CompilerScratch* csb, PlanNode* plan)
37023702
fb_assert(planRelation || planProcedure);
37033703

37043704
ObjectsArray<QualifiedMetaString> planAliasList;
3705-
QualifiedMetaString::parseSchemaObjectListNoSep(planAlias, planAliasList);
3705+
if (planAlias.hasData())
3706+
QualifiedMetaString::parseSchemaObjectListNoSep(planAlias, planAliasList);
37063707

37073708
const auto name = planRelation ? planRelation->rel_name :
37083709
planProcedure ? planProcedure->getName() :

0 commit comments

Comments
 (0)