Commit 3b7ee8f5 authored by Bruce Momjian's avatar Bruce Momjian

Allow underscores in user names.

parent 35a952a2
...@@ -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",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment