- changelog for [ticket:2704]
- use an isinstance() check, concerned a TypeError might be indiscriminate
most of these dialect=mysql.dialect() calls are redundant