Prechádzať zdrojové kódy

fix statement issue (414 Request-URI Too Large) for long sql statement

Dang Nguyen Minh 8 rokov pred
rodič
commit
a8de36dad5
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      app/views/blazer/queries/show.html.erb

+ 1 - 1
app/views/blazer/queries/show.html.erb

@@ -28,7 +28,7 @@
         <%= link_to "Fork", new_query_path(variable_params.merge(statement: @query.statement, data_source: @query.data_source, name: "Fork of #{@query.name}")), class: "btn btn-info" %>
 
         <% if !@error && @success %>
-          <%= button_to "Download", run_queries_path(statement: @statement, query_id: @query.id, format: "csv"), class: "btn btn-primary" %>
+          <%= button_to "Download", run_queries_path(query_id: @query.id, format: "csv"), params: {statement: @statement}, class: "btn btn-primary" %>
         <% end %>
       </div>
     </div>