[sqllab] proper, quoted, select * on the server side (#1404)

* [sqllab] proper, quoted, select * on the server side

* fixing tests
This commit is contained in:
Maxime Beauchemin
2016-10-21 16:55:37 -07:00
committed by GitHub
parent 4f886d65ec
commit 63161b11c3
6 changed files with 49 additions and 61 deletions

View File

@@ -82,15 +82,12 @@ class SqlEditorLeftBar extends React.Component {
this.setState({ tableLoading: true });
$.get(url, (data) => {
this.props.actions.mergeTable({
this.props.actions.mergeTable(Object.assign(data, {
dbId: this.props.queryEditor.dbId,
queryEditorId: this.props.queryEditor.id,
name: data.name,
indexes: data.indexes,
schema: qe.schema,
columns: data.columns,
expanded: true,
});
}));
this.setState({ tableLoading: false });
})
.fail(() => {