mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-24 18:43:02 +01:00
Fixed the plan output (table names) in HEAD (broken by my yesterday's commit).
This commit is contained in:
parent
43501021e0
commit
916d9fab98
@ -665,7 +665,7 @@ Firebird::string OPT_make_alias(thread_db* tdbb, const CompilerScratch* csb,
|
||||
|
||||
Firebird::string alias;
|
||||
|
||||
if (base_tail->csb_view || base_tail->csb_alias || base_tail->csb_relation)
|
||||
if (base_tail->csb_view || base_tail->csb_alias)
|
||||
{
|
||||
for (const CompilerScratch::csb_repeat* csb_tail = base_tail; ;
|
||||
csb_tail = &csb->csb_rpt[csb_tail->csb_view_stream])
|
||||
@ -685,6 +685,18 @@ Firebird::string OPT_make_alias(thread_db* tdbb, const CompilerScratch* csb,
|
||||
alias += ' ';
|
||||
}
|
||||
}
|
||||
else if (base_tail->csb_relation)
|
||||
{
|
||||
alias = base_tail->csb_relation->rel_name.c_str();
|
||||
}
|
||||
else if (base_tail->csb_procedure)
|
||||
{
|
||||
alias = base_tail->csb_procedure->prc_name.toString();
|
||||
}
|
||||
else
|
||||
{
|
||||
fb_assert(false);
|
||||
}
|
||||
|
||||
return alias;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user