Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
dd7ab43d
Commit
dd7ab43d
authored
Dec 12, 2017
by
linux chips
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added missing cases for DATETIME datatype
parent
5114b1f7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
vendor/github.com/denisenkom/go-mssqldb/types.go
+6
-0
No files found.
vendor/github.com/denisenkom/go-mssqldb/types.go
View file @
dd7ab43d
...
@@ -1178,6 +1178,8 @@ func makeGoLangTypeName(ti typeInfo) string {
...
@@ -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) {
...
@@ -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) {
...
@@ -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
))
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment