                 @.$('.loading_query_img').hide()
                 @results_view.render_error(@query, err)
 
+        # A portion is one query of the whole input.
         execute_portion: =>
             @saved_data.cursor = null
             while @queries[@index]?

                            last_non_query: true
                        @results_view.render_error(@raw_queries[@index-1], error)
        
        generate_rdb_global_callback: (id_execution) =>
            rdb_global_callback = (error, cursor) =>
                if @id_execution is id_execution # We execute the query only if it is the last one

                @.$('.loading_query_img').css 'display', 'none'
                @results_view.render_error(@query, err)

        # Function that execute the queries in a synchronous way.
        execute_query: =>
            # The user just executed a query, so we reset cursor_timed_out to false
            @saved_data.cursor_timed_out = false
