We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent84aa797 commit1a2b41fCopy full SHA for 1a2b41f
src/backend/utils/adt/uuid.c
@@ -6,7 +6,7 @@
6
* Copyright (c) 2007-2008, PostgreSQL Global Development Group
7
*
8
* IDENTIFICATION
9
- * $PostgreSQL: pgsql/src/backend/utils/adt/uuid.c,v 1.8 2008/11/0322:14:40 petere Exp $
+ * $PostgreSQL: pgsql/src/backend/utils/adt/uuid.c,v 1.9 2008/11/0323:49:07 tgl Exp $
10
11
*-------------------------------------------------------------------------
12
*/
@@ -83,12 +83,13 @@ static void
83
string_to_uuid(constchar*source,pg_uuid_t*uuid)
84
{
85
constchar*src=source;
86
-inti,braces=0;
+boolbraces= false;
87
+inti;
88
89
if (src[0]=='{')
90
-++src;
91
-braces=1;
+src++;
92
+braces=true;
93
}
94
95
for (i=0;i<UUID_LEN;i++)
@@ -111,9 +112,9 @@ string_to_uuid(const char *source, pg_uuid_t *uuid)
111
112
113
if (braces)
114
-if (*src!='}')
115
+if (*src!='}')
116
gotosyntax_error;
117
118
119
120
if (*src!='\0')