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
e5a5bef2
Commit
e5a5bef2
authored
Mar 31, 2017
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mysql: minor update
parent
d6d2080f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
pkg/services/sqlstore/sql_test_data.go
+2
-2
pkg/tsdb/mysql/mysql.go
+1
-1
No files found.
pkg/services/sqlstore/sql_test_data.go
View file @
e5a5bef2
...
...
@@ -14,8 +14,8 @@ func init() {
func
sqlRandomWalk
(
m1
string
,
m2
string
,
intWalker
int64
,
floatWalker
float64
,
sess
*
session
)
error
{
timeWalker
:=
time
.
Now
()
.
Add
(
time
.
Hour
*
-
1
)
now
:=
time
.
Now
()
timeWalker
:=
time
.
Now
()
.
UTC
()
.
Add
(
time
.
Hour
*
-
1
)
now
:=
time
.
Now
()
.
UTC
()
step
:=
time
.
Minute
row
:=
&
m
.
SqlTestData
{
...
...
pkg/tsdb/mysql/mysql.go
View file @
e5a5bef2
...
...
@@ -61,7 +61,7 @@ func (e *MysqlExecutor) initEngine() error {
}
}
cnnstr
:=
fmt
.
Sprintf
(
"%s:%s@%s(%s)/%s?charset=utf8mb4"
,
e
.
datasource
.
User
,
e
.
datasource
.
Password
,
"tcp"
,
e
.
datasource
.
Url
,
e
.
datasource
.
Database
)
cnnstr
:=
fmt
.
Sprintf
(
"%s:%s@%s(%s)/%s?charset=utf8mb4
&parseTime=true&loc=UTC
"
,
e
.
datasource
.
User
,
e
.
datasource
.
Password
,
"tcp"
,
e
.
datasource
.
Url
,
e
.
datasource
.
Database
)
e
.
log
.
Debug
(
"getEngine"
,
"connection"
,
cnnstr
)
engine
,
err
:=
xorm
.
NewEngine
(
"mysql"
,
cnnstr
)
...
...
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