Permalink
Browse files

[376359] Added test case entry for bug

Added a new test case entry to the
testSqlDmlParser004_resolvedColumnsAndTables method of the 
TestSQLQueryParserColumnTableReferences class for the bug.
  • Loading branch information...
1 parent 137a026 commit 46150395dc4613c9d9505cda046882941b3298fe Brian Payton committed Jun 6, 2012
View
2 tests/org.eclipse.datatools.sqltools.parsers.sql.query.test/META-INF/MANIFEST.MF
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: org.eclipse.datatools.sqltools.parsers.sql.query.test;singleton:=true
-Bundle-Version: 1.0.1.qualifier
+Bundle-Version: 1.0.2.qualifier
Bundle-Activator: org.eclipse.datatools.sqltools.parsers.sql.query.test.TestPlugin
Bundle-Vendor: %providerName
Bundle-Localization: plugin
View
5 ...se/datatools/sqltools/parsers/sql/query/test/TestSQLQueryParserColumnTableReferences.java
@@ -293,6 +293,11 @@ with temp_tab (colA,colB) as (select v.* from (values ('string', 256)) as v)
assertTrue( "column reference \"t1.col1\" should be resolved", //$NON-NLS-1$
columnRefTable(withQuery, "t1.col1", "t1") ); //$NON-NLS-1$ //$NON-NLS-2$
+
+ // check that the column in the sub-query doesn't get qualified by the sub-query correlation name.
+ input = "SELECT * FROM (SELECT COLA FROM T1, T2) QUERY1";
+ parserVerifySuccess(input, true);
+
}

0 comments on commit 4615039

Please sign in to comment.