Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
30f35ef9
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,发现更多精彩内容 >>
提交
30f35ef9
编写于
11月 04, 1998
作者:
T
Thomas G. Lockhart
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Test for and handle NULL arguments to mylog() print statements.
Include definition for _IN_ADDR_T if INADDR_NONE is not defined.
上级
f47bd801
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
11 addition
and
3 deletion
+11
-3
src/interfaces/odbc/convert.c
src/interfaces/odbc/convert.c
+1
-1
src/interfaces/odbc/qresult.c
src/interfaces/odbc/qresult.c
+2
-1
src/interfaces/odbc/results.c
src/interfaces/odbc/results.c
+1
-1
src/interfaces/odbc/socket.h
src/interfaces/odbc/socket.h
+7
-0
未找到文件。
src/interfaces/odbc/convert.c
浏览文件 @
30f35ef9
...
...
@@ -120,7 +120,7 @@ struct tm *tim;
st
.
d
=
tim
->
tm_mday
;
st
.
y
=
tim
->
tm_year
+
1900
;
mylog
(
"copy_and_convert: field_type = %d, fctype = %d, value = '%s', cbValueMax=%d
\n
"
,
field_type
,
fCType
,
value
,
cbValueMax
);
mylog
(
"copy_and_convert: field_type = %d, fctype = %d, value = '%s', cbValueMax=%d
\n
"
,
field_type
,
fCType
,
(
value
==
NULL
)
?
"<NULL>"
:
value
,
cbValueMax
);
if
(
!
value
)
{
/* handle a null just by returning SQL_NULL_DATA in pcbValue, */
...
...
src/interfaces/odbc/qresult.c
浏览文件 @
30f35ef9
...
...
@@ -186,7 +186,8 @@ QR_fetch_tuples(QResultClass *self, ConnectionClass *conn, char *cursor)
if
(
conn
!=
NULL
)
{
self
->
conn
=
conn
;
mylog
(
"QR_fetch_tuples: cursor = '%s', self->cursor=%u
\n
"
,
cursor
,
self
->
cursor
);
mylog
(
"QR_fetch_tuples: cursor = '%s', self->cursor=%u
\n
"
,
(
cursor
==
NULL
)
?
""
:
cursor
,
self
->
cursor
);
if
(
self
->
cursor
)
free
(
self
->
cursor
);
...
...
src/interfaces/odbc/results.c
浏览文件 @
30f35ef9
...
...
@@ -855,7 +855,7 @@ mylog("SQLFetch: stmt = %u, stmt->result= %u\n", stmt, stmt->result);
value
=
QR_get_value_backend_row
(
res
,
stmt
->
currTuple
,
lf
);
}
mylog
(
"value = '%s'
\n
"
,
value
);
mylog
(
"value = '%s'
\n
"
,
(
value
==
NULL
)
?
"<NULL>"
:
value
);
retval
=
copy_and_convert_field_bindinfo
(
stmt
,
type
,
value
,
lf
);
...
...
src/interfaces/odbc/socket.h
浏览文件 @
30f35ef9
...
...
@@ -23,6 +23,13 @@
#include <arpa/inet.h>
#define closesocket(xxx) close(xxx)
#define SOCKETFD int
#ifndef INADDR_NONE
#ifndef _IN_ADDR_T
#define _IN_ADDR_T
typedef
unsigned
int
in_addr_t
;
#endif
#define INADDR_NONE ((in_addr_t)-1)
#endif
#else
#include <winsock.h>
#define SOCKETFD SOCKET
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录