提交 3b7ee8f5 编写于 作者: B Bruce Momjian

Allow underscores in user names.

上级 35a952a2
......@@ -7,7 +7,7 @@
*
*
* 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)
while (isspace(*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))
elog(WARN, "getid: identifier cannot be >%d characters",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册