Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
2f7d369a
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,发现更多精彩内容 >>
提交
2f7d369a
编写于
7月 01, 2005
作者:
B
Bruce Momjian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Clarify code to double \\ and '.
上级
f009248a
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
9 addition
and
11 deletion
+9
-11
src/bin/initdb/initdb.c
src/bin/initdb/initdb.c
+3
-5
src/bin/psql/describe.c
src/bin/psql/describe.c
+2
-2
src/bin/psql/large_obj.c
src/bin/psql/large_obj.c
+2
-2
src/pl/plpgsql/src/gram.y
src/pl/plpgsql/src/gram.y
+2
-2
未找到文件。
src/bin/initdb/initdb.c
浏览文件 @
2f7d369a
...
...
@@ -42,7 +42,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
* Portions taken from FreeBSD.
*
* $PostgreSQL: pgsql/src/bin/initdb/initdb.c,v 1.8
8 2005/06/28 15:38:12 tgl
Exp $
* $PostgreSQL: pgsql/src/bin/initdb/initdb.c,v 1.8
9 2005/07/01 17:40:28 momjian
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -1986,10 +1986,8 @@ escape_quotes(const char *src)
for
(
i
=
0
,
j
=
0
;
i
<
len
;
i
++
)
{
if
(
src
[
i
]
==
'\\'
)
result
[
j
++
]
=
'\\'
;
if
(
src
[
i
]
==
'\''
)
/* ANSI standard, '' */
result
[
j
++
]
=
'\''
;
if
(
src
[
i
]
==
'\\'
||
src
[
i
]
==
'\''
)
result
[
j
++
]
=
src
[
i
];
/* double these */
result
[
j
++
]
=
src
[
i
];
}
result
[
j
]
=
'\0'
;
...
...
src/bin/psql/describe.c
浏览文件 @
2f7d369a
...
...
@@ -3,7 +3,7 @@
*
* Copyright (c) 2000-2005, PostgreSQL Global Development Group
*
* $PostgreSQL: pgsql/src/bin/psql/describe.c,v 1.11
8 2005/06/26 03:03:56
momjian Exp $
* $PostgreSQL: pgsql/src/bin/psql/describe.c,v 1.11
9 2005/07/01 17:40:28
momjian Exp $
*/
#include "postgres_fe.h"
#include "describe.h"
...
...
@@ -1899,7 +1899,7 @@ processNamePattern(PQExpBuffer buf, const char *pattern,
/* Ensure chars special to string literals are passed properly */
if
(
*
cp
==
'\''
||
*
cp
==
'\\'
)
appendPQExpBufferChar
(
&
namebuf
,
*
cp
);
appendPQExpBufferChar
(
&
namebuf
,
*
cp
);
/* double these */
i
=
PQmblen
(
cp
,
pset
.
encoding
);
while
(
i
--
)
...
...
src/bin/psql/large_obj.c
浏览文件 @
2f7d369a
...
...
@@ -3,7 +3,7 @@
*
* Copyright (c) 2000-2005, PostgreSQL Global Development Group
*
* $PostgreSQL: pgsql/src/bin/psql/large_obj.c,v 1.3
7 2005/06/14 02:57:41
momjian Exp $
* $PostgreSQL: pgsql/src/bin/psql/large_obj.c,v 1.3
8 2005/07/01 17:40:28
momjian Exp $
*/
#include "postgres_fe.h"
#include "large_obj.h"
...
...
@@ -178,7 +178,7 @@ do_lo_import(const char *filename_arg, const char *comment_arg)
for
(
i
=
0
;
i
<
slen
;
i
++
)
{
if
(
comment_arg
[
i
]
==
'\''
||
comment_arg
[
i
]
==
'\\'
)
*
bufptr
++
=
'\\'
;
*
bufptr
++
=
comment_arg
[
i
];
/* double these */
*
bufptr
++
=
comment_arg
[
i
];
}
strcpy
(
bufptr
,
"'"
);
...
...
src/pl/plpgsql/src/gram.y
浏览文件 @
2f7d369a
...
...
@@ -4,7 +4,7 @@
* procedural language
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/pl/plpgsql/src/gram.y,v 1.7
7 2005/06/22 01:35:02 neilc
Exp $
* $PostgreSQL: pgsql/src/pl/plpgsql/src/gram.y,v 1.7
8 2005/07/01 17:40:29 momjian
Exp $
*
* This software is copyrighted by Jan Wieck - Hamburg.
*
...
...
@@ -387,7 +387,7 @@ decl_statement : decl_varname decl_const decl_datatype decl_notnull decl_defval
while (*cp1 != '\0')
{
if (*cp1 == '\\' || *cp1 == '\'')
*cp2++ =
'\\';
*cp2++ =
*cp1; /* double these */
*cp2++ = *cp1++;
}
strcpy(cp2, "'::refcursor");
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录