Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
0521051b
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,发现更多精彩内容 >>
提交
0521051b
编写于
9月 11, 2001
作者:
H
Hiroshi Inoue
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix some multibyte related bugs.
Psqlodbc is 7.01.0007 now. Hiroshi Inoue
上级
7e99cea8
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
21 addition
and
3 deletion
+21
-3
src/interfaces/odbc/connection.c
src/interfaces/odbc/connection.c
+8
-2
src/interfaces/odbc/convert.c
src/interfaces/odbc/convert.c
+4
-0
src/interfaces/odbc/info.c
src/interfaces/odbc/info.c
+2
-1
src/interfaces/odbc/parse.c
src/interfaces/odbc/parse.c
+7
-0
未找到文件。
src/interfaces/odbc/connection.c
浏览文件 @
0521051b
...
...
@@ -551,13 +551,19 @@ CC_connect(ConnectionClass *self, char do_password)
ci
->
drivers
.
bools_as_char
);
#ifdef MULTIBYTE
encoding
=
check_client_encoding
(
ci
->
drivers
.
conn_settings
);
encoding
=
check_client_encoding
(
ci
->
conn_settings
);
if
(
encoding
&&
strcmp
(
encoding
,
"OTHER"
))
self
->
client_encoding
=
strdup
(
encoding
);
else
{
encoding
=
check_client_encoding
(
ci
->
drivers
.
conn_settings
);
if
(
encoding
&&
strcmp
(
encoding
,
"OTHER"
))
self
->
client_encoding
=
strdup
(
encoding
);
}
qlog
(
" extra_systable_prefixes='%s', conn_settings='%s' conn_encoding='%s'
\n
"
,
ci
->
drivers
.
extra_systable_prefixes
,
ci
->
drivers
.
conn_settings
,
check_client_encoding
(
ci
->
drivers
.
conn_settings
)
);
encoding
?
encoding
:
""
);
#else
qlog
(
" extra_systable_prefixes='%s', conn_settings='%s'
\n
"
,
ci
->
drivers
.
extra_systable_prefixes
,
...
...
src/interfaces/odbc/convert.c
浏览文件 @
0521051b
...
...
@@ -1156,7 +1156,11 @@ copy_statement_with_parameters(StatementClass *stmt)
}
opos
+=
lit_call_len
;
CVT_APPEND_STR
(
"SELECT "
);
#ifdef MULTIBYTE
if
(
multibyte_strchr
(
&
old_statement
[
opos
],
'('
))
#else
if
(
strchr
(
&
old_statement
[
opos
],
'('
))
#endif
/* MULTIBYTE */
proc_no_param
=
FALSE
;
continue
;
}
...
...
src/interfaces/odbc/info.c
浏览文件 @
0521051b
...
...
@@ -826,7 +826,6 @@ PGAPI_GetTypeInfo(
RETCODE
SQL_API
/*SQLGetFunctions(*/
PGAPI_GetFunctions
(
HDBC
hdbc
,
UWORD
fFunction
,
...
...
@@ -2202,6 +2201,8 @@ PGAPI_Statistics(
" and i.indexrelid = c.oid"
" and c.relam = a.oid"
,
table_name
);
if
(
PG_VERSION_GT
(
SC_get_conn
(
stmt
),
6
.
4
))
strcat
(
index_query
,
" order by i.indisprimary desc"
);
result
=
PGAPI_ExecDirect
(
hindx_stmt
,
index_query
,
strlen
(
index_query
));
if
((
result
!=
SQL_SUCCESS
)
&&
(
result
!=
SQL_SUCCESS_WITH_INFO
))
...
...
src/interfaces/odbc/parse.c
浏览文件 @
0521051b
...
...
@@ -616,7 +616,14 @@ in_expr = TRUE;
/* lower case table name */
for
(
ptr
=
ti
[
stmt
->
ntab
]
->
name
;
*
ptr
;
ptr
++
)
{
#ifdef MULTIBYTE
if
((
unsigned
char
)
*
ptr
>=
0x80
)
ptr
++
;
else
#endif
/* MULTIBYTE */
*
ptr
=
tolower
((
unsigned
char
)
*
ptr
);
}
}
mylog
(
"got table = '%s'
\n
"
,
ti
[
stmt
->
ntab
]
->
name
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录