8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 18:43:02 +01:00

If relation not found at parse time. don't prevent further loading of PSQL object and throw error later - at execution time.

This commit is contained in:
Vlad Khorsun 2024-06-27 18:11:56 +03:00
parent d3d70475b8
commit 986bfa8c63

View File

@ -12309,15 +12309,8 @@ DmlNode* SysFuncCallNode::parse(thread_db* tdbb, MemoryPool& pool, CompilerScrat
const MetaName relName = literal->getText();
const jrd_rel* const relation = MET_lookup_relation(tdbb, relName);
if (!relation)
{
status_exception::raise(
Arg::Gds(isc_sqlerr) << Arg::Num(-607) <<
Arg::Gds(isc_dsql_command_err) <<
Arg::Gds(isc_dsql_table_not_found) << relName);
}
node->args->items[0] = MAKE_const_slong(relation->rel_id);
if (relation)
node->args->items[0] = MAKE_const_slong(relation->rel_id);
}
}