Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
94a71056
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,发现更多精彩内容 >>
提交
94a71056
编写于
3月 20, 2008
作者:
M
Michael Meskes
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Added ECPGget_PGconn() function to ecpglib, courtesy of Mike Aubury.
Bumped library version to 6.1.
上级
6a78d754
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
30 addition
and
16 deletion
+30
-16
src/interfaces/ecpg/ChangeLog
src/interfaces/ecpg/ChangeLog
+4
-1
src/interfaces/ecpg/ecpglib/Makefile
src/interfaces/ecpg/ecpglib/Makefile
+2
-2
src/interfaces/ecpg/ecpglib/connect.c
src/interfaces/ecpg/ecpglib/connect.c
+11
-1
src/interfaces/ecpg/include/ecpglib.h
src/interfaces/ecpg/include/ecpglib.h
+13
-12
未找到文件。
src/interfaces/ecpg/ChangeLog
浏览文件 @
94a71056
...
...
@@ -2331,4 +2331,7 @@ Sun, 02 Mar 2008 11:50:48 +0100
Thu, 20 Mar 2008 16:54:27 +0100
- Changed statement escaping to not escape continuation line markers.
- Bumped ecpg version number to 4.4.1.
- Bumped ecpg version to 4.4.1.
- Added ECPGget_PGconn() function to ecpglib, courtesy of Mike Aubury.
- Bumped ecpglib version to 6.1.
src/interfaces/ecpg/ecpglib/Makefile
浏览文件 @
94a71056
...
...
@@ -5,7 +5,7 @@
# Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
# Portions Copyright (c) 1994, Regents of the University of California
#
# $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/Makefile,v 1.54
2008/01/01 19:45:59 momjian
Exp $
# $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/Makefile,v 1.54
.2.1 2008/03/20 16:30:14 meskes
Exp $
#
#-------------------------------------------------------------------------
...
...
@@ -15,7 +15,7 @@ include $(top_builddir)/src/Makefile.global
NAME
=
ecpg
SO_MAJOR_VERSION
=
6
SO_MINOR_VERSION
=
0
SO_MINOR_VERSION
=
1
DLTYPE
=
library
override CPPFLAGS
:
= -I../include -I$(top_srcdir)/src/interfaces/ecpg/include
\
...
...
src/interfaces/ecpg/ecpglib/connect.c
浏览文件 @
94a71056
/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/connect.c,v 1.48
2007/11/15 21:14:45 momjian
Exp $ */
/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/connect.c,v 1.48
.2.1 2008/03/20 16:30:14 meskes
Exp $ */
#define POSTGRES_ECPG_INTERNAL
#include "postgres_fe.h"
...
...
@@ -565,3 +565,13 @@ ECPGdisconnect(int lineno, const char *connection_name)
return
true
;
}
PGconn
*
ECPGget_PGconn
(
const
char
*
connection_name
)
{
struct
connection
*
con
;
con
=
ecpg_get_connection
(
connection_name
);
if
(
con
==
NULL
)
return
NULL
;
return
con
->
connection
;
}
src/interfaces/ecpg/include/ecpglib.h
浏览文件 @
94a71056
/*
* this is a small part of c.h since we don't want to leak all postgres
* definitions into ecpg programs
* $PostgreSQL: pgsql/src/interfaces/ecpg/include/ecpglib.h,v 1.74.2.
1 2008/02/15 12:11:02
meskes Exp $
* $PostgreSQL: pgsql/src/interfaces/ecpg/include/ecpglib.h,v 1.74.2.
2 2008/03/20 16:30:14
meskes Exp $
*/
#ifndef _ECPGLIB_H
...
...
@@ -47,11 +47,13 @@ bool ECPGdo(const int, const int, const int, const char *, const bool, const in
bool
ECPGtrans
(
int
,
const
char
*
,
const
char
*
);
bool
ECPGdisconnect
(
int
,
const
char
*
);
bool
ECPGprepare
(
int
,
const
char
*
,
const
int
,
const
char
*
,
const
char
*
);
bool
ECPGdeallocate
(
int
,
int
,
const
char
*
connection_name
,
const
char
*
name
);
bool
ECPGdeallocate_all
(
int
,
int
,
const
char
*
connection_name
);
char
*
ECPGprepared_statement
(
const
char
*
connection_name
,
const
char
*
name
,
int
);
bool
ECPGdeallocate
(
int
,
int
,
const
char
*
,
const
char
*
);
bool
ECPGdeallocate_all
(
int
,
int
,
const
char
*
);
char
*
ECPGprepared_statement
(
const
char
*
,
const
char
*
,
int
);
PGconn
*
ECPGget_PGconn
(
const
char
*
);
char
*
ECPGerrmsg
(
void
);
char
*
ECPGerrmsg
(
void
);
/* print an error message */
void
sqlprint
(
void
);
...
...
@@ -63,18 +65,17 @@ void sqlprint(void);
/* dynamic SQL */
bool
ECPGdo_descriptor
(
int
line
,
const
char
*
connection
,
const
char
*
descriptor
,
const
char
*
query
);
bool
ECPGdeallocate_desc
(
int
line
,
const
char
*
name
);
bool
ECPGallocate_desc
(
int
line
,
const
char
*
name
);
bool
ECPGdo_descriptor
(
int
,
const
char
*
,
const
char
*
,
const
char
*
);
bool
ECPGdeallocate_desc
(
int
,
const
char
*
);
bool
ECPGallocate_desc
(
int
,
const
char
*
);
bool
ECPGget_desc_header
(
int
,
const
char
*
,
int
*
);
bool
ECPGget_desc
(
int
,
const
char
*
,
int
,...);
bool
ECPGget_desc
(
int
,
const
char
*
,
int
,
...);
bool
ECPGset_desc_header
(
int
,
const
char
*
,
int
);
bool
ECPGset_desc
(
int
,
const
char
*
,
int
,...);
bool
ECPGset_desc
(
int
,
const
char
*
,
int
,
...);
void
ECPGset_noind_null
(
enum
ECPGttype
,
void
*
);
bool
ECPGis_noind_null
(
enum
ECPGttype
,
void
*
);
bool
ECPGdescribe
(
int
,
bool
,
const
char
*
,...);
bool
ECPGdescribe
(
int
,
bool
,
const
char
*
,
...);
/* dynamic result allocation */
void
ECPGfree_auto_mem
(
void
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录