Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
3baf7400
G
Gpdb
项目概览
Greenplum
/
Gpdb
通知
7
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
Gpdb
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
3baf7400
编写于
9月 19, 2001
作者:
P
Peter Eisentraut
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Replace useless strcasecmp's by strcmp's.
上级
4a4abd42
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
28 addition
and
28 deletion
+28
-28
src/backend/commands/sequence.c
src/backend/commands/sequence.c
+7
-7
src/backend/commands/user.c
src/backend/commands/user.c
+21
-21
未找到文件。
src/backend/commands/sequence.c
浏览文件 @
3baf7400
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/sequence.c,v 1.6
3 2001/08/16 20:38:53 tgl
Exp $
* $Header: /cvsroot/pgsql/src/backend/commands/sequence.c,v 1.6
4 2001/09/19 09:48:42 petere
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -737,17 +737,17 @@ init_params(CreateSeqStmt *seq, Form_pg_sequence new)
{
DefElem
*
defel
=
(
DefElem
*
)
lfirst
(
option
);
if
(
!
strcasecmp
(
defel
->
defname
,
"increment"
)
)
if
(
strcmp
(
defel
->
defname
,
"increment"
)
==
0
)
increment_by
=
defel
;
else
if
(
!
strcasecmp
(
defel
->
defname
,
"start"
)
)
else
if
(
strcmp
(
defel
->
defname
,
"start"
)
==
0
)
last_value
=
defel
;
else
if
(
!
strcasecmp
(
defel
->
defname
,
"maxvalue"
)
)
else
if
(
strcmp
(
defel
->
defname
,
"maxvalue"
)
==
0
)
max_value
=
defel
;
else
if
(
!
strcasecmp
(
defel
->
defname
,
"minvalue"
)
)
else
if
(
strcmp
(
defel
->
defname
,
"minvalue"
)
==
0
)
min_value
=
defel
;
else
if
(
!
strcasecmp
(
defel
->
defname
,
"cache"
)
)
else
if
(
strcmp
(
defel
->
defname
,
"cache"
)
==
0
)
cache_value
=
defel
;
else
if
(
!
strcasecmp
(
defel
->
defname
,
"cycle"
)
)
else
if
(
strcmp
(
defel
->
defname
,
"cycle"
)
==
0
)
{
if
(
defel
->
arg
!=
(
Node
*
)
NULL
)
elog
(
ERROR
,
"DefineSequence: CYCLE ??"
);
...
...
src/backend/commands/user.c
浏览文件 @
3baf7400
...
...
@@ -6,7 +6,7 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Header: /cvsroot/pgsql/src/backend/commands/user.c,v 1.8
3 2001/09/08 15:24:00
petere Exp $
* $Header: /cvsroot/pgsql/src/backend/commands/user.c,v 1.8
4 2001/09/19 09:48:42
petere Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -220,38 +220,38 @@ CreateUser(CreateUserStmt *stmt)
{
DefElem
*
defel
=
(
DefElem
*
)
lfirst
(
option
);
if
(
strc
asec
mp
(
defel
->
defname
,
"password"
)
==
0
||
strc
asec
mp
(
defel
->
defname
,
"encryptedPassword"
)
==
0
||
strc
asec
mp
(
defel
->
defname
,
"unencryptedPassword"
)
==
0
)
{
if
(
strcmp
(
defel
->
defname
,
"password"
)
==
0
||
strcmp
(
defel
->
defname
,
"encryptedPassword"
)
==
0
||
strcmp
(
defel
->
defname
,
"unencryptedPassword"
)
==
0
)
{
if
(
dpassword
)
elog
(
ERROR
,
"CREATE USER: conflicting options"
);
dpassword
=
defel
;
if
(
strc
asec
mp
(
defel
->
defname
,
"encryptedPassword"
)
==
0
)
if
(
strcmp
(
defel
->
defname
,
"encryptedPassword"
)
==
0
)
encrypt_password
=
true
;
else
if
(
strc
asec
mp
(
defel
->
defname
,
"unencryptedPassword"
)
==
0
)
else
if
(
strcmp
(
defel
->
defname
,
"unencryptedPassword"
)
==
0
)
encrypt_password
=
false
;
}
else
if
(
strc
asec
mp
(
defel
->
defname
,
"sysid"
)
==
0
)
{
else
if
(
strcmp
(
defel
->
defname
,
"sysid"
)
==
0
)
{
if
(
dsysid
)
elog
(
ERROR
,
"CREATE USER: conflicting options"
);
dsysid
=
defel
;
}
else
if
(
strc
asec
mp
(
defel
->
defname
,
"createdb"
)
==
0
)
{
else
if
(
strcmp
(
defel
->
defname
,
"createdb"
)
==
0
)
{
if
(
dcreatedb
)
elog
(
ERROR
,
"CREATE USER: conflicting options"
);
dcreatedb
=
defel
;
}
else
if
(
strc
asec
mp
(
defel
->
defname
,
"createuser"
)
==
0
)
{
else
if
(
strcmp
(
defel
->
defname
,
"createuser"
)
==
0
)
{
if
(
dcreateuser
)
elog
(
ERROR
,
"CREATE USER: conflicting options"
);
dcreateuser
=
defel
;
}
else
if
(
strc
asec
mp
(
defel
->
defname
,
"groupElts"
)
==
0
)
{
else
if
(
strcmp
(
defel
->
defname
,
"groupElts"
)
==
0
)
{
if
(
dgroupElts
)
elog
(
ERROR
,
"CREATE USER: conflicting options"
);
dgroupElts
=
defel
;
}
else
if
(
strc
asec
mp
(
defel
->
defname
,
"validUntil"
)
==
0
)
{
else
if
(
strcmp
(
defel
->
defname
,
"validUntil"
)
==
0
)
{
if
(
dvalidUntil
)
elog
(
ERROR
,
"CREATE USER: conflicting options"
);
dvalidUntil
=
defel
;
...
...
@@ -455,28 +455,28 @@ AlterUser(AlterUserStmt *stmt)
{
DefElem
*
defel
=
(
DefElem
*
)
lfirst
(
option
);
if
(
strc
asec
mp
(
defel
->
defname
,
"password"
)
==
0
||
strc
asec
mp
(
defel
->
defname
,
"encryptedPassword"
)
==
0
||
strc
asec
mp
(
defel
->
defname
,
"unencryptedPassword"
)
==
0
)
{
if
(
strcmp
(
defel
->
defname
,
"password"
)
==
0
||
strcmp
(
defel
->
defname
,
"encryptedPassword"
)
==
0
||
strcmp
(
defel
->
defname
,
"unencryptedPassword"
)
==
0
)
{
if
(
dpassword
)
elog
(
ERROR
,
"ALTER USER: conflicting options"
);
dpassword
=
defel
;
if
(
strc
asec
mp
(
defel
->
defname
,
"encryptedPassword"
)
==
0
)
if
(
strcmp
(
defel
->
defname
,
"encryptedPassword"
)
==
0
)
encrypt_password
=
true
;
else
if
(
strc
asec
mp
(
defel
->
defname
,
"unencryptedPassword"
)
==
0
)
else
if
(
strcmp
(
defel
->
defname
,
"unencryptedPassword"
)
==
0
)
encrypt_password
=
false
;
}
else
if
(
strc
asec
mp
(
defel
->
defname
,
"createdb"
)
==
0
)
{
else
if
(
strcmp
(
defel
->
defname
,
"createdb"
)
==
0
)
{
if
(
dcreatedb
)
elog
(
ERROR
,
"ALTER USER: conflicting options"
);
dcreatedb
=
defel
;
}
else
if
(
strc
asec
mp
(
defel
->
defname
,
"createuser"
)
==
0
)
{
else
if
(
strcmp
(
defel
->
defname
,
"createuser"
)
==
0
)
{
if
(
dcreateuser
)
elog
(
ERROR
,
"ALTER USER: conflicting options"
);
dcreateuser
=
defel
;
}
else
if
(
strc
asec
mp
(
defel
->
defname
,
"validUntil"
)
==
0
)
{
else
if
(
strcmp
(
defel
->
defname
,
"validUntil"
)
==
0
)
{
if
(
dvalidUntil
)
elog
(
ERROR
,
"ALTER USER: conflicting options"
);
dvalidUntil
=
defel
;
...
...
@@ -849,12 +849,12 @@ CreateGroup(CreateGroupStmt *stmt)
{
DefElem
*
defel
=
(
DefElem
*
)
lfirst
(
option
);
if
(
strc
asec
mp
(
defel
->
defname
,
"sysid"
)
==
0
)
{
if
(
strcmp
(
defel
->
defname
,
"sysid"
)
==
0
)
{
if
(
dsysid
)
elog
(
ERROR
,
"CREATE GROUP: conflicting options"
);
dsysid
=
defel
;
}
else
if
(
strc
asec
mp
(
defel
->
defname
,
"userElts"
)
==
0
)
{
else
if
(
strcmp
(
defel
->
defname
,
"userElts"
)
==
0
)
{
if
(
duserElts
)
elog
(
ERROR
,
"CREATE GROUP: conflicting options"
);
duserElts
=
defel
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录