Commit 09abcc65 authored by Jérome Perrin's avatar Jérome Perrin Committed by Eteri

sql_browser: use POST request to send query

parent 8d9cc915
......@@ -71,8 +71,7 @@
var intFormat = numberFormat({digitsAfterDecimal: 0});
var notification = noty({type: "info", text: "Refreshing data", layout: "bottom"});
$.getJSON("ZMySQLDAConnection_getQueryResultAsJSON", {query: editor.getValue()}, function(mps) {
$.post("ZMySQLDAConnection_getQueryResultAsJSON", {query: editor.getValue()}, function(mps) {
ht.clear();
if (mps.length > 1) {
ht.updateSettings({
......@@ -104,7 +103,7 @@
});
notification.close();
}
).fail(function(jqXHR, textStatus, errorThrown) {
, 'json').fail(function(jqXHR, textStatus, errorThrown) {
notification.close();
noty({type: "error", text: jqXHR.responseText, timeout: 5000, layout: "bottom" });
});
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment