                     error: true
                 }
 
-        # Callback used by the cursor when the user hit 'more results'
-        callback_query: (data) =>
-            # If we get a run time error
-            if data instanceof rethinkdb.errors.RuntimeError or data instanceof rethinkdb.errors.BadQuery or data instanceof rethinkdb.errors.ClientError or data instanceof rethinkdb.errors.ClientError
-                @.$('.loading_query_img').css 'display', 'none'
-                @.results_view.render_error(@query, data)
-                return false
-            
-            # if it's a valid result and we have not reach the maximum of results displayed
-            # A valid result can be null, so we don't use the coffescript's existential operator
-            if data isnt undefined and  @current_results.length < @limit
-                @current_results.push data
-                return true
-            else
-                # Else we are going to display what we have
-                @.$('.loading_query_img').css 'display', 'none'
-
-                # Save the last executed query and the last displayed results
-                @saved_data.query = @query
-                @saved_data.results = @current_results
-                
-                @saved_data.metadata =
-                    limit_value: @current_results.length
-                    skip_value: @skip_value
-                    execution_time: new Date() - @start_time
-                    query: @query
-                    has_more_data: (true if data?) # if data is undefined, it means that there is no more data
-                @results_view.render_result
-                    results: @current_results # The first parameter null is the query because we don't want to display it.
-                    metadata: @saved_data.metadata
-
-                if data isnt undefined #there is nore data
-                    @skip_value += @current_results.length
-                    @current_results = []
-                    @current_results.push data
-                return false
-
         # Function triggered when the user click on 'more results'
         show_more_results: (event) =>
             event.preventDefault()

                    #TODO hack run in the driver
                    @skip_value = 0
                    @start_time = new Date()
                    #TODO That's not synchronous? Find why.
                    rdb_query.run @driver_handler.connection, @rdb_global_callback
                    return true
                else
                    @non_rethinkdb_query += @queries[@index-1]

                    @saved_data.query = @query
                    @saved_data.results = @current_results
                    @saved_data.metadata =
                        limit_value: @current_results.length
                        skip_value: @skip_value
                        execution_time: new Date() - @start_time
                        query: @query
                        has_more_data: false

                    @results_view.render_result
                        results: @current_results # The first parameter is null ( = query, so we don't display it)
