Changeset: adc577be86a4 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=adc577be86a4
Modified Files:
        common/stream/stream.c
Branch: Apr2012
Log Message:

open_urlstream: provide file:// implementation without cURL

For Windows (and other systems), where we don't have cURL, check if the
URL happens to be a file:// URL, and fall back to a regular ASCII stream
in that case.  This should allow url_script_test.Bug-2972 test to come a
little bit further on Windows.


diffs (13 lines):

diff --git a/common/stream/stream.c b/common/stream/stream.c
--- a/common/stream/stream.c
+++ b/common/stream/stream.c
@@ -1334,7 +1334,8 @@ open_urlstream(const char *url)
 
 #else
 stream *open_urlstream(const char *url) {
-       (void) url;
+       if (url != NULL && strncmp(url, "file://", sizeof("file://") - 1) == 0)
+               return open_rastream(url + sizeof("file://") - 1);
        return NULL;
 }
 #endif /* HAVE_CURL */
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to