Changeset: 2a7475f3e828 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=2a7475f3e828
Modified Files:
        monetdb5/extras/pyapi/pyapi.c
Branch: pyapi
Log Message:

Set the minimum string length to 1 (in case there is a BAT with only 0 length 
strings).


diffs (12 lines):

diff --git a/monetdb5/extras/pyapi/pyapi.c b/monetdb5/extras/pyapi/pyapi.c
--- a/monetdb5/extras/pyapi/pyapi.c
+++ b/monetdb5/extras/pyapi/pyapi.c
@@ -1641,7 +1641,7 @@ PyObject *PyArrayObject_FromBAT(PyInput 
 #endif
         {
             bool unicode = false;
-            size_t maxsize = 0;
+            size_t maxsize = 1;
             li = bat_iterator(b);
 
             //we first loop over all the strings in the BAT to find the 
maximum length of a single string
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to