Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
eabd1b2e
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,发现更多精彩内容 >>
提交
eabd1b2e
编写于
5月 08, 2008
作者:
B
Bruce Momjian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Have psql output tab as the proper number of spaces, rather than \x09.
上级
5adf98ae
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
18 addition
and
8 deletion
+18
-8
src/bin/psql/mbprint.c
src/bin/psql/mbprint.c
+9
-1
src/test/regress/expected/prepare.out
src/test/regress/expected/prepare.out
+9
-7
未找到文件。
src/bin/psql/mbprint.c
浏览文件 @
eabd1b2e
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
*
*
* Copyright (c) 2000-2008, PostgreSQL Global Development Group
* Copyright (c) 2000-2008, PostgreSQL Global Development Group
*
*
* $PostgreSQL: pgsql/src/bin/psql/mbprint.c,v 1.3
1 2008/05/08 17:04:2
6 momjian Exp $
* $PostgreSQL: pgsql/src/bin/psql/mbprint.c,v 1.3
2 2008/05/08 19:11:3
6 momjian Exp $
*
*
* XXX this file does not really belong in psql/. Perhaps move to libpq?
* XXX this file does not really belong in psql/. Perhaps move to libpq?
* It also seems that the mbvalidate function is redundant with existing
* It also seems that the mbvalidate function is redundant with existing
...
@@ -321,6 +321,14 @@ pg_wcsformat(unsigned char *pwcs, size_t len, int encoding,
...
@@ -321,6 +321,14 @@ pg_wcsformat(unsigned char *pwcs, size_t len, int encoding,
linewidth
+=
2
;
linewidth
+=
2
;
ptr
+=
2
;
ptr
+=
2
;
}
}
else
if
(
*
pwcs
==
'\t'
)
/* Tab */
{
do
{
*
ptr
++
=
' '
;
linewidth
++
;
}
while
(
linewidth
%
8
!=
0
);
}
else
if
(
w
<
0
)
/* Other control char */
else
if
(
w
<
0
)
/* Other control char */
{
{
sprintf
((
char
*
)
ptr
,
"
\\
x%02X"
,
*
pwcs
);
sprintf
((
char
*
)
ptr
,
"
\\
x%02X"
,
*
pwcs
);
...
...
src/test/regress/expected/prepare.out
浏览文件 @
eabd1b2e
...
@@ -155,15 +155,17 @@ SELECT name, statement, parameter_types FROM pg_prepared_statements
...
@@ -155,15 +155,17 @@ SELECT name, statement, parameter_types FROM pg_prepared_statements
name | statement | parameter_types
name | statement | parameter_types
------+-----------------------------------------------------------------+--------------------------------------------------------
------+-----------------------------------------------------------------+--------------------------------------------------------
q2 | PREPARE q2(text) AS | {text}
q2 | PREPARE q2(text) AS | {text}
:
\x09SELECT datname, datistemplate, datallowconn
:
SELECT datname, datistemplate, datallowconn
:
\x09FROM pg_database WHERE datname = $1;
:
FROM pg_database WHERE datname = $1;
q3 | PREPARE q3(text, int, float, boolean, oid, smallint) AS | {text,integer,"double precision",boolean,oid,smallint}
q3 | PREPARE q3(text, int, float, boolean, oid, smallint) AS | {text,integer,"double precision",boolean,oid,smallint}
: \x09SELECT * FROM tenk1 WHERE string4 = $1 AND (four = $2 OR
: SELECT * FROM tenk1 WHERE string4 = $1 AND (four = $2 O
: \x09ten = $3::bigint OR true = $4 OR oid = $5 OR odd = $6::int)
; R
: \x09ORDER BY unique1;
: ten = $3::bigint OR true = $4 OR oid = $5 OR odd = $6::
; int)
: ORDER BY unique1;
q5 | PREPARE q5(int, text) AS | {integer,text}
q5 | PREPARE q5(int, text) AS | {integer,text}
:
\x09SELECT * FROM tenk1 WHERE unique1 = $1 OR stringu1 = $2
:
SELECT * FROM tenk1 WHERE unique1 = $1 OR stringu1 = $2
:
\x09ORDER BY unique1;
:
ORDER BY unique1;
q6 | PREPARE q6 AS | {integer,name}
q6 | PREPARE q6 AS | {integer,name}
: SELECT * FROM tenk1 WHERE unique1 = $1 AND stringu1 = $2;
: SELECT * FROM tenk1 WHERE unique1 = $1 AND stringu1 = $2;
q7 | PREPARE q7(unknown) AS | {path}
q7 | PREPARE q7(unknown) AS | {path}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录