Skip to content
Snippets Groups Projects
Commit 3b7ee8f5 authored by Bruce Momjian's avatar Bruce Momjian
Browse files

Allow underscores in user names.

parent 35a952a2
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/acl.c,v 1.8 1996/11/20 22:53:10 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/utils/adt/acl.c,v 1.9 1997/07/10 02:27:27 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -50,7 +50,7 @@ getid(char *s, char *n) ...@@ -50,7 +50,7 @@ getid(char *s, char *n)
while (isspace(*s)) while (isspace(*s))
++s; ++s;
for (id = s, len = 0; isalnum(*s); ++len, ++s) for (id = s, len = 0; isalnum(*s) || *s == '_'; ++len, ++s)
; ;
if (len > sizeof(NameData)) if (len > sizeof(NameData))
elog(WARN, "getid: identifier cannot be >%d characters", elog(WARN, "getid: identifier cannot be >%d characters",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment