提交 d9f085c5 编写于 作者: C Cosmin Popescu

version 8.2.1

上级 73873d17
......@@ -131,7 +131,7 @@ function! sw#report#profile_changed(args)
let s:in_event = 1
let profiles = sw#cache_get('profiles')
let profile = a:args['profile']
if has_key(profiles[profile]['props'], 'report') && profiles[profile]['props']['report'] == 'true'
if has_key(profiles, profile) && has_key(profiles[profile]['props'], 'report') && profiles[profile]['props']['report'] == 'true'
call sw#report#get(profile)
endif
let s:in_event = 0
......
......@@ -225,7 +225,8 @@ function! s:try_wbconnect_extract(sql)
let group = substitute(a:sql, pgroup, '\5', 'g')
endif
return {'profile': profile, 'group': group}
let _p = '\v;[ \t]*$'
return {'profile': substitute(profile, _p, '', 'g'), 'group': substitute(group, _p, '', 'g')}
endfunction
function! sw#server#execute_sql(sql, ...)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册