Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
e7ffdd44
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,发现更多精彩内容 >>
提交
e7ffdd44
编写于
5月 17, 2001
作者:
H
Hiroshi Inoue
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
1) Decrease the size of some buffers.
2) Repair broken SQLStatistics().
上级
77f27757
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
16 addition
and
13 deletion
+16
-13
src/interfaces/odbc/info.c
src/interfaces/odbc/info.c
+12
-12
src/interfaces/odbc/psqlodbc.h
src/interfaces/odbc/psqlodbc.h
+4
-1
未找到文件。
src/interfaces/odbc/info.c
浏览文件 @
e7ffdd44
...
...
@@ -1104,7 +1104,7 @@ SQLTables(
HSTMT
htbl_stmt
;
RETCODE
result
;
char
*
tableType
;
char
tables_query
[
STD_STATEMENT
_LEN
];
char
tables_query
[
INFO_INQUIRY
_LEN
];
char
table_name
[
MAX_INFO_STRING
],
table_owner
[
MAX_INFO_STRING
],
relkind_or_hasrules
[
MAX_INFO_STRING
];
...
...
@@ -1422,7 +1422,7 @@ SQLColumns(
TupleNode
*
row
;
HSTMT
hcol_stmt
;
StatementClass
*
col_stmt
;
char
columns_query
[
STD_STATEMENT
_LEN
];
char
columns_query
[
INFO_INQUIRY
_LEN
];
RETCODE
result
;
char
table_owner
[
MAX_INFO_STRING
],
table_name
[
MAX_INFO_STRING
],
...
...
@@ -1862,7 +1862,7 @@ SQLSpecialColumns(
ConnInfo
*
ci
;
HSTMT
hcol_stmt
;
StatementClass
*
col_stmt
;
char
columns_query
[
STD_STATEMENT
_LEN
];
char
columns_query
[
INFO_INQUIRY
_LEN
];
RETCODE
result
;
char
relhasrules
[
MAX_INFO_STRING
];
...
...
@@ -2003,7 +2003,7 @@ SQLStatistics(
{
static
char
*
func
=
"SQLStatistics"
;
StatementClass
*
stmt
=
(
StatementClass
*
)
hstmt
;
char
index_query
[
STD_STATEMENT
_LEN
];
char
index_query
[
INFO_INQUIRY
_LEN
];
HSTMT
hindx_stmt
;
RETCODE
result
;
char
*
table_name
;
...
...
@@ -2171,12 +2171,12 @@ SQLStatistics(
indx_stmt
=
(
StatementClass
*
)
hindx_stmt
;
sprintf
(
index_query
,
"select c.relname, i.indkey, i.indisunique"
",
x.indisclustered, a.amname, i
.relhasrules"
" from pg_index
x, pg_class i, pg_class c
, pg_am a"
" where
c
.relname = '%s'"
" and
c.oid = x
.indrelid"
" and
x.indexrelid = i
.oid"
" and
i
.relam = a.oid"
",
i.indisclustered, a.amname, c
.relhasrules"
" from pg_index
i, pg_class c, pg_class d
, pg_am a"
" where
d
.relname = '%s'"
" and
d.oid = i
.indrelid"
" and
i.indexrelid = c
.oid"
" and
c
.relam = a.oid"
,
table_name
);
result
=
SQLExecDirect
(
hindx_stmt
,
index_query
,
strlen
(
index_query
));
...
...
@@ -2455,7 +2455,7 @@ SQLPrimaryKeys(
int
seq
=
0
;
HSTMT
htbl_stmt
;
StatementClass
*
tbl_stmt
;
char
tables_query
[
STD_STATEMENT
_LEN
];
char
tables_query
[
INFO_INQUIRY
_LEN
];
char
attname
[
MAX_INFO_STRING
];
SDWORD
attname_len
;
char
pktab
[
MAX_TABLE_LEN
+
1
];
...
...
@@ -2641,7 +2641,7 @@ SQLForeignKeys(
StatementClass
*
tbl_stmt
;
RETCODE
result
,
keyresult
;
char
tables_query
[
STD_STATEMENT
_LEN
];
char
tables_query
[
INFO_INQUIRY
_LEN
];
char
trig_deferrable
[
2
];
char
trig_initdeferred
[
2
];
char
trig_args
[
1024
];
...
...
src/interfaces/odbc/psqlodbc.h
浏览文件 @
e7ffdd44
...
...
@@ -5,7 +5,7 @@
*
* Comments: See "notice.txt" for copyright and license information.
*
* $Id: psqlodbc.h,v 1.4
2 2001/05/01 00:47:06
inoue Exp $
* $Id: psqlodbc.h,v 1.4
3 2001/05/17 02:56:37
inoue Exp $
*
*/
...
...
@@ -191,6 +191,9 @@ typedef struct QueryInfo_
#define PG_NUMERIC_MAX_PRECISION 1000
#define PG_NUMERIC_MAX_SCALE 1000
#define INFO_INQUIRY_LEN 8192
/* this seems sufficiently big for
queries used in info.c inoue 2001/05/17 */
#include "misc.h"
#endif
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录