original_string: public function close_cursor($cursorname) {
          // If the transaction got cancelled, then ignore this request.
          $sql = 'CLOSE ' . $cursorname;
          $this->query_start($sql, [], SQL_QUERY_AUX);
          $result = pg_query($this->pgsql, $sql);
          $this->query_end($result);
          if ($result) {
              pg_free_result($result);
          }
          return true;
      }
code: public function close_cursor($cursorname) {
          // If the transaction got cancelled, then ignore this request.
          $sql = 'CLOSE ' . $cursorname;
          $this->query_start($sql, [], SQL_QUERY_AUX);
          $result = pg_query($this->pgsql, $sql);
          $this->query_end($result);
          if ($result) {
              pg_free_result($result);
          }
          return true;
      }
code_tokens: public function close_cursor ( $ cursorname ) { // If the transaction got cancelled, then ignore this request. $ sql = 'CLOSE ' . $ cursorname ; $ this -> query_start ( $ sql , [ ] , SQL_QUERY_AUX ) ; $ result = pg_query ( $ this -> pgsql , $ sql ) ; $ this -> query_end ( $ result ) ; if ( $ result ) { pg_free_result ( $ result ) ; } return true ; }
docstring: Closes a cursor. For use by recordset only; do not call directly.
  
  @param string $cursorname Name of cursor to close
  @return bool True if we actually closed one, false if the transaction was cancelled
docstring_tokens: Closes a cursor . For use by recordset only ; do not call directly .