Changeset: eaa4187bd9df for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=eaa4187bd9df
Modified Files:
        sql/include/sql_list.h
        tools/monetdbe/monetdbe.c
Branch: default
Log Message:

Minimal changes to get this to compile on Windows.


diffs (24 lines):

diff --git a/sql/include/sql_list.h b/sql/include/sql_list.h
--- a/sql/include/sql_list.h
+++ b/sql/include/sql_list.h
@@ -74,7 +74,7 @@ extern void *list_append_with_validate(l
 extern void *list_append_sorted(list *l, void *data, void *extra, fcmpvalidate 
cmp);
 extern node *list_find(list *l, void *key, fcmp cmp);
 extern int  list_position(list *l, void *val);
-extern void *list_fetch(list *l, int pos);
+sql_export void *list_fetch(list *l, int pos);
 extern list *list_select(list *l, void *key, fcmp cmp, fdup dup);
 extern list *list_order(list *l, fcmp cmp, fdup dup);
 extern list *list_distinct(list *l, fcmp cmp, fdup dup);
diff --git a/tools/monetdbe/monetdbe.c b/tools/monetdbe/monetdbe.c
--- a/tools/monetdbe/monetdbe.c
+++ b/tools/monetdbe/monetdbe.c
@@ -824,7 +824,7 @@ monetdbe_bind(monetdbe_statement *stmt, 
        /* TODO !data treat as NULL value (add nil mask) ? */
        if (i > stmt->nparam)
                return createException(MAL, "monetdbe.monetdbe_bind", 
"Parameter %zu not bound to a value", i);
-       sql_arg *a = (sql_arg*)list_fetch(stmt_internal->q->f->ops, i);
+       sql_arg *a = (sql_arg*)list_fetch(stmt_internal->q->f->ops, (int) i);
        assert(a);
        stmt_internal->data[i].vtype = a->type.type->localtype;
        /* TODO handle conversion from NULL and special types */
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to