issue #19550: Fix problem where sequence was coming from wrong schema.