Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
4c943c87
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,发现更多精彩内容 >>
提交
4c943c87
编写于
2月 27, 2003
作者:
B
Barry Lind
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
A little cleanup. Removing an unnecessary method.
Modified Files: jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java
上级
1cc55168
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
9 addition
and
20 deletion
+9
-20
src/interfaces/jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java
...ces/jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java
+9
-20
未找到文件。
src/interfaces/jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java
浏览文件 @
4c943c87
...
@@ -15,7 +15,7 @@ import org.postgresql.util.PGbytea;
...
@@ -15,7 +15,7 @@ import org.postgresql.util.PGbytea;
import
org.postgresql.util.PSQLException
;
import
org.postgresql.util.PSQLException
;
/* $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/Attic/AbstractJdbc2ResultSet.java,v 1.1
3 2003/02/04 09:20:10
barry Exp $
/* $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/Attic/AbstractJdbc2ResultSet.java,v 1.1
4 2003/02/27 05:56:27
barry Exp $
* This class defines methods of the jdbc2 specification. This class extends
* This class defines methods of the jdbc2 specification. This class extends
* org.postgresql.jdbc1.AbstractJdbc1ResultSet which provides the jdbc1
* org.postgresql.jdbc1.AbstractJdbc1ResultSet which provides the jdbc1
* methods. The real Statement class (for jdbc2) is org.postgresql.jdbc2.Jdbc2ResultSet
* methods. The real Statement class (for jdbc2) is org.postgresql.jdbc2.Jdbc2ResultSet
...
@@ -1261,22 +1261,6 @@ public abstract class AbstractJdbc2ResultSet extends org.postgresql.jdbc1.Abstra
...
@@ -1261,22 +1261,6 @@ public abstract class AbstractJdbc2ResultSet extends org.postgresql.jdbc1.Abstra
}
}
private
int
_findColumn
(
String
columnName
)
{
int
i
;
final
int
flen
=
fields
.
length
;
for
(
i
=
0
;
i
<
flen
;
++
i
)
{
if
(
fields
[
i
].
getName
().
equalsIgnoreCase
(
columnName
))
{
return
(
i
+
1
);
}
}
return
-
1
;
}
/**
/**
* Is this ResultSet updateable?
* Is this ResultSet updateable?
*/
*/
...
@@ -1313,12 +1297,18 @@ public abstract class AbstractJdbc2ResultSet extends org.postgresql.jdbc1.Abstra
...
@@ -1313,12 +1297,18 @@ public abstract class AbstractJdbc2ResultSet extends org.postgresql.jdbc1.Abstra
usingOID
=
false
;
usingOID
=
false
;
int
oidIndex
=
_findColumn
(
"oid"
);
int
oidIndex
=
0
;
try
{
oidIndex
=
findColumn
(
"oid"
);
}
catch
(
SQLException
l_se
)
{
//Ignore if column oid isn't selected
}
int
i
=
0
;
int
i
=
0
;
// if we find the oid then just use it
// if we find the oid then just use it
//oidIndex will be >0 if the oid was in the select list
if
(
oidIndex
>
0
)
if
(
oidIndex
>
0
)
{
{
i
++;
i
++;
...
@@ -1343,7 +1333,6 @@ public abstract class AbstractJdbc2ResultSet extends org.postgresql.jdbc1.Abstra
...
@@ -1343,7 +1333,6 @@ public abstract class AbstractJdbc2ResultSet extends org.postgresql.jdbc1.Abstra
for
(;
rs
.
next
();
i
++
)
for
(;
rs
.
next
();
i
++
)
{
{
String
columnName
=
rs
.
getString
(
4
);
// get the columnName
String
columnName
=
rs
.
getString
(
4
);
// get the columnName
int
index
=
findColumn
(
columnName
);
int
index
=
findColumn
(
columnName
);
if
(
index
>
0
)
if
(
index
>
0
)
...
@@ -1413,7 +1402,7 @@ public abstract class AbstractJdbc2ResultSet extends org.postgresql.jdbc1.Abstra
...
@@ -1413,7 +1402,7 @@ public abstract class AbstractJdbc2ResultSet extends org.postgresql.jdbc1.Abstra
while
(
columns
.
hasMoreElements
()
)
while
(
columns
.
hasMoreElements
()
)
{
{
String
columnName
=
(
String
)
columns
.
nextElement
();
String
columnName
=
(
String
)
columns
.
nextElement
();
int
columnIndex
=
_
findColumn
(
columnName
)
-
1
;
int
columnIndex
=
findColumn
(
columnName
)
-
1
;
Object
valueObject
=
updateValues
.
get
(
columnName
);
Object
valueObject
=
updateValues
.
get
(
columnName
);
if
(
valueObject
instanceof
NullObject
)
{
if
(
valueObject
instanceof
NullObject
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录