Changeset: 76fe26add28c for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=76fe26add28c
Modified Files:
        clients/mapiclient/mclient.c
Branch: Aug2018
Log Message:

In mclient the command  \history  did not work. It would always show the SQL 
help (as when \help was requested) instead.
Now it shows the history of commands as requested.


diffs (12 lines):

diff --git a/clients/mapiclient/mclient.c b/clients/mapiclient/mclient.c
--- a/clients/mapiclient/mclient.c
+++ b/clients/mapiclient/mclient.c
@@ -2796,7 +2796,7 @@ doFile(Mapi mid, stream *fp, bool useins
                                        int h;
                                        char *nl;
 
-                                       if (strcmp(line,"\\history") == 0) {
+                                       if (strcmp(line,"\\history\n") == 0) {
                                                for (h = 0; h < history_length; 
h++) {
                                                        nl = history_get(h) ? 
history_get(h)->line : 0;
                                                        if (nl)
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to