Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Xiaomi
soar
提交
b1860bb1
S
soar
项目概览
Xiaomi
/
soar
9 个月 前同步成功
通知
373
Star
8512
Fork
1328
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
soar
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
b1860bb1
编写于
1月 16, 2019
作者:
martianzhang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
makefile color regression
Makefile color code regression remove ParseDSN debug log
上级
6263e41b
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
5 addition
and
5 deletion
+5
-5
Makefile
Makefile
+4
-4
common/config.go
common/config.go
+1
-1
未找到文件。
Makefile
浏览文件 @
b1860bb1
...
@@ -20,10 +20,10 @@ COMMIT_VERSION=`git rev-parse HEAD`
...
@@ -20,10 +20,10 @@ COMMIT_VERSION=`git rev-parse HEAD`
# colors compatible setting
# colors compatible setting
COLOR_ENABLE
=
$(
shell
tput colors
>
/dev/null
;
echo
$$
?
)
COLOR_ENABLE
=
$(
shell
tput colors
>
/dev/null
;
echo
$$
?
)
ifeq
"$(COLOR_ENABLE)" "0"
ifeq
"$(COLOR_ENABLE)" "0"
CRED
=
$(
shell
printf
"
\0
01
\0
33[91m
\0
02
"
)
CRED
=
$(
shell
printf
"
\0
33[91m
"
)
CGREEN
=
$(
shell
printf
"
\0
01
\0
33[92m
\0
02
"
)
CGREEN
=
$(
shell
printf
"
\0
33[92m
"
)
CYELLOW
=
$(
shell
printf
"
\0
01
\0
33[93m
\0
02
"
)
CYELLOW
=
$(
shell
printf
"
\0
33[93m
"
)
CEND
=
$(
shell
printf
"
\0
01
\0
33[0m
\0
02
"
)
CEND
=
$(
shell
printf
"
\0
33[0m
"
)
endif
endif
# Add mysql version for testing `MYSQL_RELEASE=percona MYSQL_VERSION=5.7 make docker`
# Add mysql version for testing `MYSQL_RELEASE=percona MYSQL_VERSION=5.7 make docker`
...
...
common/config.go
浏览文件 @
b1860bb1
...
@@ -426,7 +426,7 @@ func parseDSN(odbc string, d *Dsn) *Dsn {
...
@@ -426,7 +426,7 @@ func parseDSN(odbc string, d *Dsn) *Dsn {
func
ParseDSN
(
odbc
string
,
d
*
Dsn
)
*
Dsn
{
func
ParseDSN
(
odbc
string
,
d
*
Dsn
)
*
Dsn
{
cfg
,
err
:=
mysql
.
ParseDSN
(
odbc
)
cfg
,
err
:=
mysql
.
ParseDSN
(
odbc
)
if
err
!=
nil
{
if
err
!=
nil
{
Log
.
Debug
(
"go-sql-driver/mysql.ParseDSN Error: %s, DSN: %s, try to use old version parseDSN"
,
err
.
Error
(),
odbc
)
//
Log.Debug("go-sql-driver/mysql.ParseDSN Error: %s, DSN: %s, try to use old version parseDSN", err.Error(), odbc)
return
parseDSN
(
odbc
,
d
)
return
parseDSN
(
odbc
,
d
)
}
}
return
newDSN
(
cfg
)
return
newDSN
(
cfg
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录