Normally if nothing is returned, the message would be ‘0 row(s) fetched’. I’ve never seen this ‘SQL statement doesn’t return rows’ before. Which client are you using? could you please take a screenshot of the script page? Does it show the datagrid after the query was run?
See attached screen shot file; but you were right to question the Oracle client.
Upon checking my PATH statement of the test machine where our trial SQL Nav 6.1 is located, I found the 8.172 client path listed first. When I removed this it allowed for the 9.2 client to be used and SQL Nav 6.1 executed the query as expected.
Thanks for your help! sqlnavScreenShots1.doc (70 KB)
We have here a similar error. We use a oracle home with 10.2.0.1.0 client in the connection information.
Why path is related here?
In the path there is a oracle home wiht 10.1.0.5.0 client in front of some other.
I tried following select in sql navigator 6.1.1.1105:
SELECT * FROM (WITH a AS (SELECT * FROM DUAL) SELECT * FROM a)
No data grid is shown after executing.
Spool output shows:
**** SCRIPT STARTED 9.03.2009 15:01:17 ****
SELECT * FROM (WITH a AS (SELECT * FROM DUAL) SELECT * FROM a)
==>
SQL statement executed
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
**** SCRIPT ENDED 9.03.2009 15:01:17 ****
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Opposite the original statement above works fine in sql navigator 6.1.1.1105.
I concur with tkleiber’s findings. I now have both V5.5.4 and V6.1 on my own desktop machine, they should both be looking at the same PATH.
In 5.5.4 I get this result of his query:
** SCRIPT START : Session:XX_CUSTOM@OCDEV(1) 3/9/09 9:21:08 ***
Processing …
SELECT * FROM (WITH a AS (SELECT * FROM DUAL) SELECT * FROM a)
1 row(s) selected
DUMMY
X
1 row(s) retrieved
**** SCRIPT STARTED 3/9/2009 9:20:02 AM ****
SELECT * FROM (WITH a AS (SELECT * FROM DUAL) SELECT * FROM a)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
No result grid appears.
FYI
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
PL/SQL Release 10.2.0.4.0 - Production
CORE 10.2.0.4.0 Production
TNS for Linux: Version 10.2.0.4.0 - Production
NLSRTL Version 10.2.0.4.0 - Production
*** SCRIPT END : Session:XX_CUSTOM@OCDEV(1) 3/9/09 9:21:08 ***
I believe this to be the expected result.
However in V 6.1, no errors but no results appear.
The statement “WITH a AS (SELECT * FROM DUAL) SELECT * FROM a” returns ‘X’ in the data grid as it should? It does in 6.2.0.1250, anyway.
The statement “SELECT * FROM (WITH a AS (SELECT * FROM DUAL) SELECT * FROM a)” also does not show a data grid and (about) the same spool output in 6.2.
That one is already in our list and currently being fixed.
Torsten, could you give me an example of issue with INTERSECT clause?
We haven’t committed to a date yet. I will update as soon as we have one.
I will also have a chat with Bruce to see if we can do another beta release.
The INTERSECT problem seems to be fixed in 6.1.1.1105.
But as the WITH problems still persist, we wait urgent for 6.2, as we have to deploy the version to a lot of programmers.
The problem with
“SELECT * FROM (WITH a AS (SELECT * FROM DUAL) SELECT * FROM a)”
is furthermore reproducable in beta build 1317 .
This is an important problem on our side.