kezhenxu94 / vim-mysql-plugin

VIM MySQL Plugin
Apache License 2.0
21 stars 6 forks source link

Empty command issued to mysql client #4

Closed kopolindo closed 4 years ago

kopolindo commented 4 years ago

If I run ss or ds it works smoothly, but if I try to run a query, it issues the command mysql --default-group-suffix=Foobar -t -e "", as you can see the actual query between double quotes is empty. My .sql file is structured like this:

-- --default-group-suffix=Foobar -t
--
<empty-line>
select * from schema.table;

Where am I making wrong? Thank you so much!

kezhenxu94 commented 4 years ago

well, that's weird, I cannot reproduce this, did you place the caret on the line that you're going to execute?

artfulrobot commented 4 years ago

I think ↑ that PR should have fixed this

kezhenxu94 commented 4 years ago

I think ↑ that PR should have fixed this

@artfulrobot thanks very much, @kopolindo could you please update and retry :)