added error in sql view

2.0
javi 12 years ago
parent 396cb72141
commit f6da004c9b

@ -29,7 +29,11 @@ cdb.admin.mod.SQL = cdb.core.View.extend({
var sql = this.$('textarea').val();
this.sqlView.setSQL(sql);
this.model.useSQLView(this.sqlView);
this.sqlView.fetch();
this.sqlView.fetch({
error: function(e) {
console.log(e);
}
});
//this.trigger('sqlQuery', sql);
}

@ -1,8 +1,13 @@
<div>
<h1>Custom SQL query</h1>
<textarea cols=50 rows= 10></textarea>
<div>
<button>Apply query</button>
</div>
<div class="error">
</div>
</div>

Loading…
Cancel
Save