myadm

Simple MySQL client for the terminal
git clone git://git.bitsmanent.org/myadm
Log | Files | Refs | README | LICENSE

commit cfb03d6b8c82279d8fd2a64959e782c3b589b3ff
parent 5d2e31c70e54d80ffd6e344bc77a88a4a09865dd
Author: Claudio Alessi <smoppy@gmail.com>
Date:   Tue,  3 May 2016 20:36:38 +0200

Fix wrong SQL code handling in editrecord().

Diffstat:
Mmyadm.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/myadm.c b/myadm.c @@ -677,9 +677,9 @@ ui_sql_edit_exec(char *sql) { } res = mysql_file_exec(tmpf); if(*mysql_error(mysql)) { - ui_set("status", "Wrong SQL code."); - if(ui_ask("Continue editing ([y]/n)?", yn) == yn[0]) + if(ui_ask("Wrong SQL code. Continue editing ([y]/n)?", yn) == yn[0]) continue; + break; } /* We're expecting an update here which don't allocate any * result but since the user is able to write any SQL code into