                 @.$('.loading_query_img').css 'display', 'none'
                 @results_view.render_error(@query, err)
 
-        # Function that execute the query
+        # 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


            return rdb_global_callback

        generate_get_result_callback: (id_execution) =>
            get_result_callback = (error, data) =>
                if @id_execution is id_execution

            @raw_query = @codemirror.getValue()
            @query = @replace_new_lines_in_query @raw_query # Save it because we'll use it in @callback_multilples_queries
            
            # Execute the query
            try
                # Separate queries
                @non_rethinkdb_query = '' # Store the statements that don't return a rethinkdb query (like "var a = 1;")
                @index = 0 # index of the query currently being executed
                @queries = @separate_queries @query
                @raw_queries = @separate_queries @raw_query
