issue #18406: strip prefix from table name in used function if it's ther...

...e