Check whether the format is for result set or not