Menu

#14 execute sql creates new tabs in an endless loop

open
nobody
None
5
2003-10-30
2003-10-30
No

Hello,

I installed the polished plugin version.
I am using Eclipse 2.1.1 and the oracle thin driver
to connect to an oracle 9i database.

URL: jdbc:oracle:thin:@...
Driver: oracle.jdbc.driver.OracleDriver

Executing a SELECT statement works fine.

Executing a DELETE, INSERT or UPDATE statement
misbehaves. In an endless loop new tabs are created
in the results view.

I fixed this problem locally by adding a break in line 462
the views.connection.ConnectionContentProvider class:

while (true) {
if (flag) {
...
} else {
int updateCount = stmt.getUpdateCount();
if (updateCount == -1) {
break;
}
ResultView.getInstance().addText(
updateCount + " records effected.",
statements[i],
newTab);
*break*;
}
...
}

the while loop never stops because
stmt.getUpdateCount() never returns -1

bye,

feri

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.