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

We know the size of the representation of a UUID.


diffs (15 lines):

diff --git a/clients/mapiclient/mclient.c b/clients/mapiclient/mclient.c
--- a/clients/mapiclient/mclient.c
+++ b/clients/mapiclient/mclient.c
@@ -1141,6 +1141,11 @@ SQLrenderer(MapiHdl hdl, char singleinst
                         * NULL or empty string, so MINCOLSIZE (below)
                         * will work great */
                        len[i] = pagewidth <= 0 ? DEFWIDTH : pagewidth;
+               } else if (len[i] == 0 &&
+                          strcmp(mapi_get_type(hdl, i), "uuid") == 0) {
+                       /* we know how large the UUID representation
+                        * is, even if the server doesn't */
+                       len[i] = 36;
                }
                if (len[i] < MINCOLSIZE)
                        len[i] = MINCOLSIZE;
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to