Use compile-stmt, not compile-sql.