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:
msvensson@neptunus.(none) 2006-02-13 14:02:39 +01:00
parent 5000951ab4
commit 26d5e2d832

View file

@ -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);
}