Fix dimension metadata bug
This commit is contained in:
parent
996d7fc90d
commit
10baf43ede
@ -78,7 +78,7 @@ function _geometryType(ctx) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function _columns(ctx) {
|
function _columns(ctx) {
|
||||||
if (ctx.metaOptions.columns || ctx.metaOptions.columnStats) {
|
if (ctx.metaOptions.columns || ctx.metaOptions.columnStats || ctx.metaOptions.dimensions) {
|
||||||
// note: post-aggregation columns are in layer.options.columns when aggregation is present
|
// note: post-aggregation columns are in layer.options.columns when aggregation is present
|
||||||
return queryUtils.queryPromise(ctx.dbConnection, _getSQL(ctx, sql => queryUtils.getQueryLimited(sql, 0)))
|
return queryUtils.queryPromise(ctx.dbConnection, _getSQL(ctx, sql => queryUtils.getQueryLimited(sql, 0)))
|
||||||
.then(res => formatResultFields(ctx.dbConnection, res.fields));
|
.then(res => formatResultFields(ctx.dbConnection, res.fields));
|
||||||
|
Loading…
Reference in New Issue
Block a user