 
             return rdb_global_callback
 
+        # Create a callback used in cursor.next()
+        # We tag the callback to make sure that we display the results only of the last query executed by the user
         generate_get_result_callback: (id_execution) =>
             get_result_callback = (error, data) =>
                 if @id_execution is id_execution

                @.$('.loading_query_img').hide()
                @results_view.render_error(@query, err)

        execute_portion: =>
            @saved_data.cursor = null
            while @queries[@index]?

                        stack.push char
                    else if char of @stop_char.closing
                        if stack[stack.length-1] isnt @stop_char.closing[char]
                            #TODO Give back line and char?
                            throw "Syntax error, missing opening bracket for #{char}"
                        else
                            stack.pop()
                    else if char is ';' and stack.length is 0
