MDEV-6388: ANALYZE $stmt output in the slow query log

Add testcase.