Changeset: de8213875b8a for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=de8213875b8a
Modified Files:
        clients/mapilib/mapi.c
Branch: default
Log Message:

mapi: eliminate versionId

It's set wrongly and not useful for anything.  This is a backwards
incompatible API/ABI change.


diffs (50 lines):

diff --git a/clients/mapilib/mapi.c b/clients/mapilib/mapi.c
--- a/clients/mapilib/mapi.c
+++ b/clients/mapilib/mapi.c
@@ -295,7 +295,6 @@
  * @item mapi_get_query()      @tab    Query being executed
  * @item mapi_get_language()   @tab Query language name
  * @item mapi_get_mapi_version()       @tab Mapi version name
- * @item mapi_get_monet_versionId()    @tab MonetDB version identifier
  * @item mapi_get_monet_version()      @tab MonetDB version name
  * @item mapi_get_motd()       @tab    Get server welcome message
  * @item mapi_get_row_count()  @tab    Number of rows in cache or -1
@@ -919,7 +918,6 @@
        char *database;         /* to obtain from server */
        char *uri;
        int languageId;
-       int versionId;          /* Monet 4 or 5 */
        char *motd;             /* welcome message from server */
 
        int trace;              /* Trace Mapi interaction */
@@ -1769,7 +1767,6 @@
        mid->language = strdup("sql");
 
        mid->languageId = LANG_SQL;
-       mid->versionId = 4;
        mid->noexplain = NULL;
        mid->motd = NULL;
        mid->mapiversion = "mapi 1.0";
@@ -2861,8 +2858,6 @@
                                return mid->error;
                        }
                }
-
-               mid->versionId = strcmp("Mserver 5.0", 
result->cache.line[0].rows) == 0 ? 5 : 4;
        }
        mapi_close_handle(hdl);
 
@@ -5328,13 +5323,6 @@
        return mid->server ? mid->server : "";
 }
 
-int
-mapi_get_monet_versionId(Mapi mid)
-{
-       mapi_check0(mid, "mapi_get_monet_versionId");
-       return mid->versionId;
-}
-
 char *
 mapi_get_motd(Mapi mid)
 {
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to