issue #18406: passing databasetype to used dispatch call