Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Genesys PGR
Uploader
Commits
1cb45e4e
Commit
1cb45e4e
authored
Sep 10, 2014
by
Matija Obreza
Browse files
One-off bug
parent
6ded8122
Changes
2
Hide whitespace changes
Inline
Side-by-side
anno-gui/src/main/java/org/genesys2/anno/gui/PushDialog.java
View file @
1cb45e4e
...
...
@@ -204,7 +204,7 @@ public class PushDialog extends Dialog {
}
if
(
count
%
100
==
0
)
_log
.
info
(
"Examining data at row "
+
count
);
_log
.
debug
(
"Examining data at row "
+
count
);
for
(
Object
[]
row
:
rows
)
{
count
++;
...
...
anno-gui/src/main/java/org/genesys2/anno/parser/JdbcRowReader.java
View file @
1cb45e4e
...
...
@@ -27,7 +27,6 @@ public class JdbcRowReader implements RowReader {
@Override
public
List
<
Object
[]>
readRows
(
int
rowsToRead
)
throws
IOException
{
List
<
Object
[]>
rows
=
new
ArrayList
<
Object
[]>(
rowsToRead
);
try
{
if
(
this
.
preparedStatement
==
null
)
{
this
.
preparedStatement
=
conn
.
prepareStatement
(
query
);
...
...
@@ -37,13 +36,16 @@ public class JdbcRowReader implements RowReader {
this
.
columnCount
=
metadata
.
getColumnCount
();
}
while
(
res
.
next
())
{
List
<
Object
[]>
rows
=
new
ArrayList
<
Object
[]>(
rowsToRead
);
int
rowCount
=
0
;
while
(
res
.
next
()
&&
rowCount
<
rowsToRead
)
{
List
<
Object
>
row
=
new
ArrayList
<
Object
>();
for
(
int
i
=
1
;
i
<
columnCount
;
i
++)
{
for
(
int
i
=
1
;
i
<
=
columnCount
;
i
++)
{
Object
val
=
res
.
getObject
(
i
);
row
.
add
(
val
);
}
rows
.
add
(
row
.
toArray
());
rowCount
++;
}
return
rows
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment