Community
Participate
Working Groups
Build Identifier: M20110210-1200 In SQL Editor (or event in SQL Scrapbook), when a connection is already defined, connecting to a new defined connexion with the combos does not work. In reality, the SQL Editor remains connected to the first connection. This also happens even if you force disconnection to the first connection in the data source explorer and just keep the second connection. SQL Editor still remains connected to the first connection. Tested with PostgreSQL JDBC connections. The only solution I have found is to restart Eclipse and connect to the second server. Reproducible: Always Steps to Reproduce: 1. Create a connection to a server A in data source explorer 2. Create a connection to a server B in data source explorer 3. Create a new SQL file and connect to server A. Then execute the SQL code 4. Connect the same SQL file to server B (using combos) and execute the SQL code. The connection remains on server A 5. In the data source explorer, disconnect from server A and execute the SQL code. The connection still remains on server A
Hi, With the last 1.9.0 RC4 version of DTP, the bug seems to be fixed. Sorry for the disturbance. Regards, C. Duprez
Sorry, but the bug remains on DTP 1.9.0 RC4...
The problem only occurs for manual commit. With auto-commit, the connection is correctly closed, but with manual commit, it remains opened.
Actually the bug will happen whatever database system is used (Postgres, etc). Here's a patch that hopefully could fix this.
Created attachment 201197 [details] scrapbook connection patch
Hi, Thanks. I have just installed the last milestone version of DTP (1.9.1 RC2) and the bug is now corrected. Regard, C. Duprez
Hi, I don't see any commit related to the patch in DTP_1_9_1_RC2_201108270500 , are you sure you didn't revert to auto-commit? It might completely be an oversight on my part, so sorry if that's the case. Cheers, -- Pierre
Created attachment 204569 [details] Patch in EGit default format Patch exported without checking Git format in EGit.
Hi guys, can an sqltools committer have a look at the patch? Thank you!
OK, I done some basic testing on the fix and it looks like it works OK, in that I was able to switch connections in the SQLScrapbookEditor without problems. I've committed the fix. Here's the Git commit record: http://git.eclipse.org/c/datatools/org.eclipse.datatools.sqltools.git/commit/?id=6b8d926f524dbe205e9fd31ac27c1ba4bfa050e0