Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
864e1e9d
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,发现更多精彩内容 >>
提交
864e1e9d
编写于
9月 15, 1999
作者:
M
Michael Meskes
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
*** empty log message ***
上级
3f681393
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
23 addition
and
10 deletion
+23
-10
src/interfaces/ecpg/ChangeLog
src/interfaces/ecpg/ChangeLog
+9
-0
src/interfaces/ecpg/TODO
src/interfaces/ecpg/TODO
+1
-0
src/interfaces/ecpg/include/sqlca.h
src/interfaces/ecpg/include/sqlca.h
+1
-1
src/interfaces/ecpg/lib/Makefile.in
src/interfaces/ecpg/lib/Makefile.in
+2
-2
src/interfaces/ecpg/lib/ecpglib.c
src/interfaces/ecpg/lib/ecpglib.c
+2
-1
src/interfaces/ecpg/preproc/Makefile
src/interfaces/ecpg/preproc/Makefile
+1
-1
src/interfaces/ecpg/preproc/pgc.l
src/interfaces/ecpg/preproc/pgc.l
+3
-3
src/interfaces/ecpg/preproc/preproc.y
src/interfaces/ecpg/preproc/preproc.y
+1
-1
src/interfaces/ecpg/test/test1.pgc
src/interfaces/ecpg/test/test1.pgc
+3
-1
未找到文件。
src/interfaces/ecpg/ChangeLog
浏览文件 @
864e1e9d
...
@@ -622,3 +622,12 @@ Sun Aug 1 13:31:19 CEST 1999
...
@@ -622,3 +622,12 @@ Sun Aug 1 13:31:19 CEST 1999
- Synced preproc.y with gram.y.
- Synced preproc.y with gram.y.
- Set ecpg version to 2.6.2
- Set ecpg version to 2.6.2
Tue Sep 14 22:26:40 CEST 1999
- Added patch by Andreas Theofilu <theofilu@eunet.at> to fix yet
another quoting bug.
- Minor bugfixes to ecpg
- Return OID in sqlca.sqlerrd[1] if possible.
- Set ecpg version to 2.6.3
- Set library version to 3.0.2
src/interfaces/ecpg/TODO
浏览文件 @
864e1e9d
...
@@ -14,6 +14,7 @@ support for dynamic SQL with unknown number of variables with DESCRIPTORS
...
@@ -14,6 +14,7 @@ support for dynamic SQL with unknown number of variables with DESCRIPTORS
The line numbering is not exact.
The line numbering is not exact.
Missing statements:
Missing statements:
- exec slq ifdef
- exec sql allocate
- exec sql allocate
- exec sql deallocate
- exec sql deallocate
- SQLSTATE
- SQLSTATE
src/interfaces/ecpg/include/sqlca.h
浏览文件 @
864e1e9d
...
@@ -19,7 +19,7 @@ extern "C"
...
@@ -19,7 +19,7 @@ extern "C"
char
sqlerrp
[
8
];
char
sqlerrp
[
8
];
long
sqlerrd
[
6
];
long
sqlerrd
[
6
];
/* Element 0: empty */
/* Element 0: empty */
/* 1:
empty
*/
/* 1:
OID of processed tuple if applicable
*/
/* 2: number of rows processed */
/* 2: number of rows processed */
/* after an INSERT, UPDATE or */
/* after an INSERT, UPDATE or */
/* DELETE statement */
/* DELETE statement */
...
...
src/interfaces/ecpg/lib/Makefile.in
浏览文件 @
864e1e9d
...
@@ -6,13 +6,13 @@
...
@@ -6,13 +6,13 @@
# Copyright (c) 1994, Regents of the University of California
# Copyright (c) 1994, Regents of the University of California
#
#
# IDENTIFICATION
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/Makefile.in,v 1.4
5 1999/07/19 12:37:46
meskes Exp $
# $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/Makefile.in,v 1.4
6 1999/09/15 08:29:14
meskes Exp $
#
#
#-------------------------------------------------------------------------
#-------------------------------------------------------------------------
NAME
=
ecpg
NAME
=
ecpg
SO_MAJOR_VERSION
=
3
SO_MAJOR_VERSION
=
3
SO_MINOR_VERSION
=
0.
1
SO_MINOR_VERSION
=
0.
2
SRCDIR
=
@top_srcdir@
SRCDIR
=
@top_srcdir@
include
$(SRCDIR)/Makefile.global
include
$(SRCDIR)/Makefile.global
...
...
src/interfaces/ecpg/lib/ecpglib.c
浏览文件 @
864e1e9d
...
@@ -368,7 +368,7 @@ next_insert(char *text)
...
@@ -368,7 +368,7 @@ next_insert(char *text)
bool
string
=
false
;
bool
string
=
false
;
for
(;
*
ptr
!=
'\0'
&&
(
*
ptr
!=
'?'
||
string
);
ptr
++
)
for
(;
*
ptr
!=
'\0'
&&
(
*
ptr
!=
'?'
||
string
);
ptr
++
)
if
(
*
ptr
==
'\''
)
if
(
*
ptr
==
'\''
&&
*
(
ptr
-
1
)
!=
'\\'
)
string
=
string
?
false
:
true
;
string
=
string
?
false
:
true
;
return
(
*
ptr
==
'\0'
)
?
NULL
:
ptr
;
return
(
*
ptr
==
'\0'
)
?
NULL
:
ptr
;
...
@@ -977,6 +977,7 @@ ECPGexecute(struct statement * stmt)
...
@@ -977,6 +977,7 @@ ECPGexecute(struct statement * stmt)
break
;
break
;
case
PGRES_COMMAND_OK
:
case
PGRES_COMMAND_OK
:
status
=
true
;
status
=
true
;
sqlca
.
sqlerrd
[
1
]
=
atol
(
PQoidStatus
(
results
));
sqlca
.
sqlerrd
[
2
]
=
atol
(
PQcmdTuples
(
results
));
sqlca
.
sqlerrd
[
2
]
=
atol
(
PQcmdTuples
(
results
));
ECPGlog
(
"ECPGexecute line %d Ok: %s
\n
"
,
stmt
->
lineno
,
PQcmdStatus
(
results
));
ECPGlog
(
"ECPGexecute line %d Ok: %s
\n
"
,
stmt
->
lineno
,
PQcmdStatus
(
results
));
break
;
break
;
...
...
src/interfaces/ecpg/preproc/Makefile
浏览文件 @
864e1e9d
...
@@ -3,7 +3,7 @@ include $(SRCDIR)/Makefile.global
...
@@ -3,7 +3,7 @@ include $(SRCDIR)/Makefile.global
MAJOR_VERSION
=
2
MAJOR_VERSION
=
2
MINOR_VERSION
=
6
MINOR_VERSION
=
6
PATCHLEVEL
=
2
PATCHLEVEL
=
3
CFLAGS
+=
-I
../include
-DMAJOR_VERSION
=
$(MAJOR_VERSION)
\
CFLAGS
+=
-I
../include
-DMAJOR_VERSION
=
$(MAJOR_VERSION)
\
-DMINOR_VERSION
=
$(MINOR_VERSION)
-DPATCHLEVEL
=
$(PATCHLEVEL)
\
-DMINOR_VERSION
=
$(MINOR_VERSION)
-DPATCHLEVEL
=
$(PATCHLEVEL)
\
...
...
src/interfaces/ecpg/preproc/pgc.l
浏览文件 @
864e1e9d
...
@@ -239,7 +239,7 @@ cppline {space}*#.*(\\{space}*\n)*\n*
...
@@ -239,7 +239,7 @@ cppline {space}*#.*(\\{space}*\n)*\n*
}
}
<xq>{xqstop} {
<xq>{xqstop} {
BEGIN(SQL);
BEGIN(SQL);
/* yylval.str =
scanstr(literal);
*/
/* yylval.str =
mm_strdup(scanstr(literal));
*/
yylval.str = mm_strdup(literal);
yylval.str = mm_strdup(literal);
return SCONST;
return SCONST;
}
}
...
@@ -601,7 +601,7 @@ cppline {space}*#.*(\\{space}*\n)*\n*
...
@@ -601,7 +601,7 @@ cppline {space}*#.*(\\{space}*\n)*\n*
if (strcmp(old, ptr->old) == 0)
if (strcmp(old, ptr->old) == 0)
{
{
free(ptr->new);
free(ptr->new);
/* ptr->new =
scanstr(literal);
*/
/* ptr->new =
mm_strdup(scanstr(literal));
*/
ptr->new = mm_strdup(literal);
ptr->new = mm_strdup(literal);
}
}
}
}
...
@@ -611,7 +611,7 @@ cppline {space}*#.*(\\{space}*\n)*\n*
...
@@ -611,7 +611,7 @@ cppline {space}*#.*(\\{space}*\n)*\n*
/* initial definition */
/* initial definition */
this->old = old;
this->old = old;
/* this->new =
scanstr(literal);
*/
/* this->new =
mm_strdup(scanstr(literal));
*/
this->new = mm_strdup(literal);
this->new = mm_strdup(literal);
this->next = defines;
this->next = defines;
defines = this;
defines = this;
...
...
src/interfaces/ecpg/preproc/preproc.y
浏览文件 @
864e1e9d
...
@@ -1142,7 +1142,7 @@ VariableSetStmt: SET ColId TO var_value
...
@@ -1142,7 +1142,7 @@ VariableSetStmt: SET ColId TO var_value
}
}
| SET NAMES encoding
| SET NAMES encoding
{
{
#ifdef M
B
#ifdef M
ULTIBYTE
$$ = cat2_str(make1_str("set names"), $3);
$$ = cat2_str(make1_str("set names"), $3);
#else
#else
yyerror("SET NAMES is not supported");
yyerror("SET NAMES is not supported");
...
...
src/interfaces/ecpg/test/test1.pgc
浏览文件 @
864e1e9d
...
@@ -48,7 +48,9 @@ exec sql end declare section;
...
@@ -48,7 +48,9 @@ exec sql end declare section;
strcpy(msg, "execute insert 1");
strcpy(msg, "execute insert 1");
sprintf(command, "insert into test(name, amount, letter) values ('db: ''mm''', 1, 'f')");
sprintf(command, "insert into test(name, amount, letter) values ('db: ''mm''', 1, 'f')");
exec sql execute immediate :command;
exec sql execute immediate :command;
sprintf(command, "insert into test(name, amount, letter) values ('db: ''mm''', 2, 't')");
printf("New tuple got OID = %d\n", sqlca.sqlerrd[1]);
sprintf(command, "insert into test(name, amount, letter) values ('db: \\\'mm\\\'', 2, 't')");
exec sql execute immediate :command;
exec sql execute immediate :command;
strcpy(msg, "execute insert 2");
strcpy(msg, "execute insert 2");
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录