mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
added missing cases for DATETIME datatype
This commit is contained in:
parent
5114b1f792
commit
dd7ab43d09
6
vendor/github.com/denisenkom/go-mssqldb/types.go
generated
vendored
6
vendor/github.com/denisenkom/go-mssqldb/types.go
generated
vendored
@ -1178,6 +1178,8 @@ func makeGoLangTypeName(ti typeInfo) string {
|
|||||||
return "IMAGE"
|
return "IMAGE"
|
||||||
case typeVariant:
|
case typeVariant:
|
||||||
return "SQL_VARIANT"
|
return "SQL_VARIANT"
|
||||||
|
case typeDateTime:
|
||||||
|
return "DATETIME"
|
||||||
default:
|
default:
|
||||||
panic(fmt.Sprintf("not implemented makeDecl for type %d", ti.TypeId))
|
panic(fmt.Sprintf("not implemented makeDecl for type %d", ti.TypeId))
|
||||||
}
|
}
|
||||||
@ -1297,6 +1299,8 @@ func makeGoLangTypeLength(ti typeInfo) (int64, bool) {
|
|||||||
return 2147483647, true
|
return 2147483647, true
|
||||||
case typeVariant:
|
case typeVariant:
|
||||||
return 0, false
|
return 0, false
|
||||||
|
case typeDateTime:
|
||||||
|
return 0, false
|
||||||
default:
|
default:
|
||||||
panic(fmt.Sprintf("not implemented makeDecl for type %d", ti.TypeId))
|
panic(fmt.Sprintf("not implemented makeDecl for type %d", ti.TypeId))
|
||||||
}
|
}
|
||||||
@ -1404,6 +1408,8 @@ func makeGoLangTypePrecisionScale(ti typeInfo) (int64, int64, bool) {
|
|||||||
return 0, 0, false
|
return 0, 0, false
|
||||||
case typeVariant:
|
case typeVariant:
|
||||||
return 0, 0, false
|
return 0, 0, false
|
||||||
|
case typeDateTime:
|
||||||
|
return 0, 0, false
|
||||||
default:
|
default:
|
||||||
panic(fmt.Sprintf("not implemented makeDecl for type %d", ti.TypeId))
|
panic(fmt.Sprintf("not implemented makeDecl for type %d", ti.TypeId))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user