support non-Linux platforms
fix indention
determine statement type and pass to StatementHandle