Fix bug 3842: create, alter, drop queries were not shown after execution