Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
ec7806db
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,发现更多精彩内容 >>
提交
ec7806db
编写于
12月 06, 2004
作者:
M
Michael Meskes
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fixed bug in parsing of typedef'ed array sizes.
Synced parser.
上级
b3f3092c
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
16 addition
and
15 deletion
+16
-15
src/interfaces/ecpg/ChangeLog
src/interfaces/ecpg/ChangeLog
+5
-0
src/interfaces/ecpg/preproc/preproc.y
src/interfaces/ecpg/preproc/preproc.y
+9
-13
src/interfaces/ecpg/preproc/type.c
src/interfaces/ecpg/preproc/type.c
+1
-1
src/interfaces/ecpg/preproc/variable.c
src/interfaces/ecpg/preproc/variable.c
+1
-1
未找到文件。
src/interfaces/ecpg/ChangeLog
浏览文件 @
ec7806db
...
...
@@ -1877,6 +1877,11 @@ Mon Oct 18 15:34:51 CEST 2004
Wed Nov 10 14:43:50 CET 2004
- List VALUE as a keyword.
Mon Dec 6 21:27:34 CET 2004
- Fixed bug in parsing of typedef'ed array sizes.
- Synced parser.
- Set ecpg version to 3.2.0.
- Set compat library version to 1.2.
- Set ecpg library version to 4.2.
...
...
src/interfaces/ecpg/preproc/preproc.y
浏览文件 @
ec7806db
/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/preproc.y,v 1.30
1 2004/11/10 13:48:10
meskes Exp $ */
/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/preproc.y,v 1.30
2 2004/12/06 20:35:35
meskes Exp $ */
/* Copyright comment */
%{
...
...
@@ -208,16 +208,16 @@ static char *
adjust_informix(struct arguments *list)
{
/* Informix accepts DECLARE with variables that are out of scope when OPEN is called.
* for instance you can declare variables in a function, and then subsequently use them
* {
* declare_vars();
* exec sql ... which uses vars declared in the above function
*
* for instance you can declare variables in a function, and then subsequently use them
* {
* declare_vars();
* exec sql ... which uses vars declared in the above function
*
* This breaks standard and leads to some very dangerous programming.
* Since they do, we have to work around and accept their syntax as well.
* But we will do so ONLY in Informix mode.
* We have to change the variables to our own struct and just store the pointer instead of the variable
*/
*/
struct arguments *ptr;
char *result = make_str("");
...
...
@@ -1955,12 +1955,8 @@ any_name: ColId { $$ = $1; }
| ColId attrs { $$ = cat2_str($1, $2); }
;
/*
* The slightly convoluted way of writing this production avoids reduce/reduce
* errors against indirection_el.
*/
attrs: '.' attr_name { $$ = cat2_str(make_str("."), $2); }
|
'.' attr_name attrs { $$ = cat_str(3, make_str("."), $2
, $3); }
|
attrs '.' attr_name { $$ = cat_str(3, $1, make_str(".")
, $3); }
;
/*****************************************************************************
...
...
@@ -4167,7 +4163,7 @@ qualified_name_list: qualified_name
qualified_name: relation_name
{ $$ = $1; }
| relation_name
attrs
| relation_name
indirection
{ $$ = cat2_str($1, $2); }
;
...
...
src/interfaces/ecpg/preproc/type.c
浏览文件 @
ec7806db
...
...
@@ -365,7 +365,7 @@ ECPGdump_a_simple(FILE *o, const char *name, enum ECPGttype type,
else
sprintf
(
variable
,
"&(%s%s)"
,
prefix
?
prefix
:
""
,
name
);
sprintf
(
offset
,
"
%s
*sizeof(char)"
,
strcmp
(
varcharsize
,
"0"
)
==
0
?
"1"
:
varcharsize
);
sprintf
(
offset
,
"
(%s)
*sizeof(char)"
,
strcmp
(
varcharsize
,
"0"
)
==
0
?
"1"
:
varcharsize
);
break
;
case
ECPGt_numeric
:
...
...
src/interfaces/ecpg/preproc/variable.c
浏览文件 @
ec7806db
...
...
@@ -560,7 +560,7 @@ adjust_array(enum ECPGttype type_enum, char **dimension, char **length, char *ty
* changed later on when the variable is defined
*/
*
length
=
make_str
(
"1"
);
else
if
(
atoi
(
*
dimension
)
==
0
)
else
if
(
strcmp
(
*
dimension
,
"0"
)
==
0
)
*
length
=
make_str
(
"-1"
);
else
*
length
=
*
dimension
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录