Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Xiaomi
soar
比较版本
dfe6fba5027dec4db145242d1047bb3f6b399037...d431b19529f205c8dada1fca83e2d9bbf56cf1ed
S
soar
项目概览
Xiaomi
/
soar
8 个月 前同步成功
通知
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 搜索 >>
源分支
d431b19529f205c8dada1fca83e2d9bbf56cf1ed
选择Git版本
...
目标分支
dfe6fba5027dec4db145242d1047bb3f6b399037
选择Git版本
比较
Commits (3)
https://gitcode.net/xiaomi/soar/-/commit/1972d89e9347b03fef3e8de379f859781d405fcb
fix bug of time parse by CleanupTestDatabase (#294)
2022-04-06T15:14:35+00:00
halleyshx
shxdoitgo@gmail.com
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:shihuixing@jd.com" title="shihuixing@jd.com"></a><a href="javascript:void(0)" class="avatar s16 avatar-inline identicon bg3" style="text-decoration: none">N</a><a href="mailto:shihuixing@jd.com" title="shihuixing@jd.com">shihuixing</a> <<a href="mailto:shihuixing@jd.com" title="shihuixing@jd.com">shihuixing@jd.com</a>></span>
https://gitcode.net/xiaomi/soar/-/commit/e33c23bd076dd724b4807059cd4db6d459f5446a
alter table 修改字符集用convert to (#295)
2022-04-06T15:21:39+00:00
tmysql
531907001@qq.com
convert to匹配模式优化,允许两个单词中间有多个空格
https://gitcode.net/xiaomi/soar/-/commit/d431b19529f205c8dada1fca83e2d9bbf56cf1ed
fix typo of DSN config in config.go (#290)
2022-04-06T15:39:57+00:00
Aurora
57168564+15265052@users.noreply.github.com
隐藏空白更改
内联
并排
Showing
3 changed file
with
3 addition
and
3 deletion
+3
-3
advisor/heuristic.go
advisor/heuristic.go
+1
-1
common/config.go
common/config.go
+1
-1
env/env.go
env/env.go
+1
-1
未找到文件。
advisor/heuristic.go
浏览文件 @
d431b195
...
...
@@ -2793,7 +2793,7 @@ func (q *Query4Audit) RuleAlterCharset() Rule {
if
option
.
Tp
==
tidb
.
TableOptionCharset
||
option
.
Tp
==
tidb
.
TableOptionCollate
{
//增加CONVERT TO的判断
convertReg
,
_
:=
regexp
.
Compile
(
"convert
to"
)
convertReg
,
_
:=
regexp
.
Compile
(
"convert
\\
b
\\
s+
to"
)
if
convertReg
.
Match
([]
byte
(
strings
.
ToLower
(
q
.
Query
)))
{
break
}
else
{
...
...
common/config.go
浏览文件 @
d431b195
...
...
@@ -236,7 +236,7 @@ type Dsn struct {
Loc
string
`yaml:"loc"`
// Location for time.Time values
TLS
string
`yaml:"tls"`
// TLS configuration name
ServerPubKey
string
`yaml:"server-public-key"`
// Server public key name
MaxAllowedPacket
int
`y
ma
l:"max-allowed-packet"`
// Max packet size allowed
MaxAllowedPacket
int
`y
am
l:"max-allowed-packet"`
// Max packet size allowed
Params
map
[
string
]
string
`yaml:"params"`
// Other Connection parameters, `SET param=val`, `SET NAMES charset`
Timeout
string
`yaml:"timeout"`
// Dial timeout
ReadTimeout
string
`yaml:"read-timeout"`
// I/O read timeout
...
...
env/env.go
浏览文件 @
d431b195
...
...
@@ -172,7 +172,7 @@ func (vEnv *VirtualEnv) CleanupTestDatabase() {
continue
}
s
:=
strings
.
Split
(
testDatabase
,
"_"
)
pastTime
,
err
:=
time
.
Parse
(
"060102150405"
,
s
[
1
]
)
pastTime
,
err
:=
time
.
Parse
InLocation
(
"060102150405"
,
s
[
1
],
time
.
Local
)
if
err
!=
nil
{
common
.
Log
.
Error
(
"CleanupTestDatabase compute pastTime Error: %s"
,
err
.
Error
())
continue
...
...