[plsql] Fix test cases

* table is a reserved word and cannot be used as an identifier
* correctly name test class for TableCollectionExpressionTest
This commit is contained in:
Andreas Dangel
2019-02-10 10:35:21 +01:00
parent fcdded6d5d
commit 833119e00c
2 changed files with 3 additions and 3 deletions

View File

@ -12,7 +12,7 @@ import org.junit.Test;
import net.sourceforge.pmd.lang.plsql.AbstractPLSQLParserTst;
public class TableCollectionExpression extends AbstractPLSQLParserTst {
public class TableCollectionExpressionTest extends AbstractPLSQLParserTst {
@Test
public void testExamples() throws Exception {

View File

@ -4,10 +4,10 @@
BEGIN
SELECT id INTO v_id FROM table
SELECT id INTO v_id FROM my_table
WHERE id = (SELECT id FROM other_table);
UPDATE table SET name = 'a'
UPDATE my_table SET name = 'a'
WHERE id = (SELECT id FROM other_table);
END;