@@ -46,7 +46,7 @@ fun! g:RunSelection()
46
46
echohl Error | echon ' Nothing Selected' | echohl None
47
47
return
48
48
endif
49
- call writefile (l: Selection , ' /tmp/vim-mysql-plugin.sql' , ' w ' )
49
+ call writefile (l: Selection , ' /tmp/vim-mysql-plugin.sql' )
50
50
51
51
let l: Command = s: GetCommand () . ' < ' . ' /tmp/vim-mysql-plugin.sql'
52
52
let l: Command = escape (l: Command , ' %#\`' )
56
56
func ! g: SelectCursorTable ()
57
57
let l: Table = ' `' . expand (' <cword>' ) . ' `'
58
58
let l: Command = s: GetCommand () . ' -e ' . ' "select * from ' . l: Table . ' "'
59
- let l: Command = escape (l: Command , ' %#\`' )
59
+ let l: Command = escape (l: Command , ' $! %#\`' )
60
60
call g: RunShellCommand (l: Command )
61
61
endfun
62
62
63
63
func ! g: DescriptCursorTable ()
64
64
let l: Table = ' `' . expand (' <cword>' ) . ' `'
65
65
let l: Command = s: GetCommand () . ' -e ' . ' "show full columns from ' . l: Table . ' "'
66
- let l: Command = escape (l: Command , ' %#\`' )
66
+ let l: Command = escape (l: Command , ' $! %#\`' )
67
67
call g: RunShellCommand (l: Command )
68
68
endfun
69
69
@@ -74,7 +74,7 @@ fun! g:RunInstruction()
74
74
let l: Lines = map (l: Lines , " substitute(v:val, '--.*$', '', 'g')" )
75
75
let l: CurrentInstruction = join (l: Lines , ' ' )
76
76
let l: Command = s: GetCommand () . ' -e "' . l: CurrentInstruction . ' "'
77
- let l: Command = escape (l: Command , ' %#\`' )
77
+ let l: Command = escape (l: Command , ' $! %#\`' )
78
78
call g: RunShellCommand (l: Command )
79
79
endfun
80
80
0 commit comments