mirror of
https://github.com/apache/superset.git
synced 2026-04-20 00:24:38 +00:00
[sql lab] specify schema name when generating vanila query (#1096)
* [sql lab] specify schema name when generating vanila query * Fixing some react warnings
This commit is contained in:
committed by
GitHub
parent
1f761c61dd
commit
df533d30fc
@@ -19,7 +19,11 @@ class TableElement extends React.Component {
|
||||
cols += ', ';
|
||||
}
|
||||
});
|
||||
return `SELECT ${cols}\nFROM ${this.props.table.name}`;
|
||||
let tableName = this.props.table.name;
|
||||
if (this.props.table.schema) {
|
||||
tableName = this.props.table.schema + '.' + tableName;
|
||||
}
|
||||
return `SELECT ${cols}\nFROM ${tableName}`;
|
||||
}
|
||||
|
||||
popSelectStar() {
|
||||
|
||||
Reference in New Issue
Block a user