[Monetdb-developers] 'MapiClient remember history between sessions' patch
11 May
2004
11 May
'04
10:48 a.m.
I have written a small patch so mapiclient remembers the query history between sessions. Maybe this could be included in CVS.
regards,
--
Arjan Scherpenisse
Centrum voor Wiskunde en Informatica,
Amsterdam, the Netherlands
Index: MapiClient.mx
===================================================================
RCS file: /cvsroot/monetdb/MonetDB/src/mapi/clients/C/MapiClient.mx,v
retrieving revision 1.56
diff -r1.56 MapiClient.mx
854a855,857
> #ifdef HAVE_LIBREADLINE
> char history_file[100];
> #endif
1000a1004,1012
> #ifdef HAVE_LIBREADLINE
> #ifndef NATIVE_WIN32
> snprintf(history_file, 100, "%s/.mapiclient_history", getenv("HOME"));
> #else
> snprintf(history_file, 100, "C:\_mapiclient_history");
> #endif
> read_history(history_file);
> #endif
>
1016a1029,1033
>
> #ifdef HAVE_LIBREADLINE
> write_history(history_file);
> #endif
>
7296
Age (days ago)
7296
Last active (days ago)
0 comments
1 participants
participants (1)
-
Arjan Scherpenisse