From dd0d422d221cbebe71aa95dd767e4ac29a0fa9f7 Mon Sep 17 00:00:00 2001 From: Ev3nt Date: Wed, 21 Oct 2026 14:18:01 +0300 Subject: [PATCH] Restrict computed indexes over system tables --- src/jrd/idx.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/jrd/idx.cpp b/src/jrd/idx.cpp index dd840547636..877a9bb3fb3 100644 --- a/src/jrd/idx.cpp +++ b/src/jrd/idx.cpp @@ -864,6 +864,12 @@ void IDX_create_index(thread_db* tdbb, ERR_post(Arg::Gds(isc_no_meta_update) << Arg::Gds(isc_wish_list)); } + else if (relation->isSystem() && (idx->idx_flags & (idx_expression | idx_condition))) + { + ERR_post(Arg::Gds(isc_no_meta_update) << + Arg::Gds(isc_random) << "Expression indices are not supported for system tables"); + } + get_root_page(tdbb, relation);