v.25.6Bug Fix (user-visible misbehavior in an official stable release)

Fix crash

Fix crash for a very specific situation when the currentDatabase function was used in CONSTRAINT sections for ON CLUSTER queries Closes #78100. #79070 (pufit).