FIX: remove limit when exporting to CSV

This commit is contained in:
Régis Hanol 2015-08-04 19:23:50 +02:00
parent 329ba57fba
commit 434122f9f5
1 changed files with 3 additions and 1 deletions

View File

@ -926,6 +926,8 @@ SQL
opts = { current_user: current_user.username }
opts[:explain] = true if params[:explain] == "true"
opts[:limit] = "ALL" if params[:format] == "csv"
opts[:limit] = params[:limit].to_i if params[:limit]
result = DataExplorer.run_query(query, query_params, opts)