issue #23241: use setmetasql function