Changeset: c9ba52fa0bd0 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=c9ba52fa0bd0
Modified Files:
monetdb5/modules/atoms/uuid.c
Branch: Apr2019
Log Message:
Make - optional in UUID input.
diffs (17 lines):
diff --git a/monetdb5/modules/atoms/uuid.c b/monetdb5/modules/atoms/uuid.c
--- a/monetdb5/modules/atoms/uuid.c
+++ b/monetdb5/modules/atoms/uuid.c
@@ -146,10 +146,10 @@ UUIDfromString(const char *svalue, size_
return 1;
}
for (i = 0, j = 0; i < UUID_SIZE; i++) {
+ /* on select locations we allow a '-' in the source string */
if (j == 8 || j == 12 || j == 16 || j == 20) {
- if (*s != '-')
- goto bailout;
- s++;
+ if (*s == '-')
+ s++;
}
if (isdigit((unsigned char) *s))
(*retval)->u[i] = *s - '0';
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list