Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
3d41da50
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,发现更多精彩内容 >>
提交
3d41da50
编写于
5月 16, 2003
作者:
M
Michael Meskes
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Made variable type double work again.
上级
7e684fad
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
18 addition
and
15 deletion
+18
-15
src/interfaces/ecpg/ChangeLog
src/interfaces/ecpg/ChangeLog
+4
-0
src/interfaces/ecpg/preproc/c_keywords.c
src/interfaces/ecpg/preproc/c_keywords.c
+0
-1
src/interfaces/ecpg/preproc/preproc.y
src/interfaces/ecpg/preproc/preproc.y
+14
-14
未找到文件。
src/interfaces/ecpg/ChangeLog
浏览文件 @
3d41da50
...
...
@@ -1418,6 +1418,10 @@ Wed May 14 13:05:49 CEST 2003
Fri May 16 11:45:50 CEST 2003
- Fixed include in pgtypeslib to not include c.h
Fri May 16 13:32:10 CEST 2003
- Made double variables work again.
- Set ecpg version to 2.12.0.
- Set ecpg library to 3.4.2.
- Set pgtypes library to 1.0.0
...
...
src/interfaces/ecpg/preproc/c_keywords.c
浏览文件 @
3d41da50
...
...
@@ -25,7 +25,6 @@ static ScanKeyword ScanKeywords[] = {
{
"bool"
,
SQL_BOOL
},
{
"char"
,
CHAR_P
},
{
"const"
,
S_CONST
},
{
"double"
,
DOUBLE_P
},
{
"enum"
,
SQL_ENUM
},
{
"extern"
,
S_EXTERN
},
{
"float"
,
FLOAT_P
},
...
...
src/interfaces/ecpg/preproc/preproc.y
浏览文件 @
3d41da50
/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/Attic/preproc.y,v 1.21
8 2003/05/16 04:59:22 momjian
Exp $ */
/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/Attic/preproc.y,v 1.21
9 2003/05/16 11:30:09 meskes
Exp $ */
/* Copyright comment */
%{
...
...
@@ -4183,6 +4183,14 @@ ecpg_interval: opt_interval { $$ = $1; }
;
single_vt_type: common_type
| DOUBLE_P
{
$$.type_enum = ECPGt_double;
$$.type_str = make_str("double");
$$.type_dimension = make_str("-1");
$$.type_index = make_str("-1");
$$.type_sizeof = NULL;
}
| ECPGColLabelCommon ecpg_interval
{
if (strlen($2) != 0 && strcmp ($1, "datetime") != 0 && strcmp ($1, "interval") != 0)
...
...
@@ -4208,14 +4216,6 @@ single_vt_type: common_type
$$.type_index = make_str("-1");
$$.type_sizeof = NULL;
}
else if (strcmp($1, "double") == 0)
{
$$.type_enum = ECPGt_double;
$$.type_str = make_str("double");
$$.type_dimension = make_str("-1");
$$.type_index = make_str("-1");
$$.type_sizeof = NULL;
}
else if (strcmp($1, "numeric") == 0)
{
$$.type_enum = ECPGt_numeric;
...
...
@@ -4671,7 +4671,7 @@ variable: opt_pointer ECPGColLabelCommon opt_array_bounds opt_initializer
struct ECPGtype * type;
char *dimension = $3.index1; /* dimension of array */
char *length = $3.index2; /* lenght of string */
char dim[14L]
, ascii_len[12]
;
char dim[14L];
adjust_array(actual_type[struct_level].type_enum, &dimension, &length, actual_type[struct_level].type_dimension, actual_type[struct_level].type_index, strlen($1));
...
...
@@ -5289,11 +5289,11 @@ symbol: ColLabel { $$ = $1; }
/* Column identifier --- names that can be column, table, etc names.
*/
ColId: ident
{ $$ = $1; }
ColId: ident { $$ = $1; }
| unreserved_keyword { $$ = $1; }
| col_name_keyword
{ $$ = $1; }
| ECPGKeywords
{ $$ = $1; }
| CHAR_P
{ $$ = make_str("char"); }
| col_name_keyword { $$ = $1; }
| ECPGKeywords { $$ = $1; }
| CHAR_P { $$ = make_str("char"); }
;
/* Type identifier --- names that can be type names.
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录