Skip to content

Commit

Permalink
Update sql.js to fix a invalid error msg
Browse files Browse the repository at this point in the history
when using sql.html page to run sql directly, for any SELECT * sql, when click run! button for the second time,
the page will show error msg like: DataTables warning: table id={id} - Cannot reinitialise DataTable.
this can be fix by:https://datatables.net/manual/tech-notes/3#retrieve
  • Loading branch information
rocky1001 authored Jun 15, 2016
1 parent e29d71d commit fbbc4c4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions caravel/assets/javascripts/sql.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ $(document).ready(function () {
$('#results').html(data);

$('table.sql_results').DataTable({
retrieve: true,
paging: false,
searching: true,
aaSorting: []
Expand Down

0 comments on commit fbbc4c4

Please sign in to comment.