mirror of
https://github.com/grafana/grafana.git
synced 2025-08-06 20:59:35 +08:00
fix references to postgres datatypes
This commit is contained in:
@ -97,7 +97,7 @@ export default class MysqlQuery {
|
|||||||
}
|
}
|
||||||
|
|
||||||
hasUnixEpochTimecolumn() {
|
hasUnixEpochTimecolumn() {
|
||||||
return ['int4', 'int8', 'float4', 'float8', 'numeric'].indexOf(this.target.timeColumnType) > -1;
|
return ['int', 'bigint', 'double'].indexOf(this.target.timeColumnType) > -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
buildTimeColumn(alias = true) {
|
buildTimeColumn(alias = true) {
|
||||||
|
@ -511,7 +511,7 @@ export class MysqlQueryCtrl extends QueryCtrl {
|
|||||||
.then(this.transformToSegments({}))
|
.then(this.transformToSegments({}))
|
||||||
.catch(this.handleQueryError.bind(this));
|
.catch(this.handleQueryError.bind(this));
|
||||||
case 'right':
|
case 'right':
|
||||||
if (['int4', 'int8', 'float4', 'float8', 'timestamp', 'timestamptz'].indexOf(part.datatype) > -1) {
|
if (['int', 'bigint', 'double', 'datetime'].indexOf(part.datatype) > -1) {
|
||||||
// don't do value lookups for numerical fields
|
// don't do value lookups for numerical fields
|
||||||
return this.$q.when([]);
|
return this.$q.when([]);
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user