mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 20:42:30 +01:00
Bug#16557 mysql cmd-line client does not rename .mysql_history.TMP to .mysql_history
- Return error only if 'history' returns -1
This commit is contained in:
parent
5000951ab4
commit
26d5e2d832
1 changed files with 2 additions and 2 deletions
|
@ -1109,7 +1109,7 @@ read_history(const char *filename)
|
|||
|
||||
if (h == NULL || e == NULL)
|
||||
rl_initialize();
|
||||
return (history(h, &ev, H_LOAD, filename));
|
||||
return (history(h, &ev, H_LOAD, filename) == -1);
|
||||
}
|
||||
|
||||
|
||||
|
@ -1123,7 +1123,7 @@ write_history(const char *filename)
|
|||
|
||||
if (h == NULL || e == NULL)
|
||||
rl_initialize();
|
||||
return (history(h, &ev, H_SAVE, filename));
|
||||
return (history(h, &ev, H_SAVE, filename) == -1);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue