Merge branch 'text-utils-simple' into text-utils-javacc

This commit is contained in:
Clément Fournier
2022-04-30 16:24:23 +02:00
7 changed files with 25 additions and 6 deletions

View File

@ -0,0 +1,19 @@
/**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.plsql.ast;
import org.junit.runner.RunWith;
import org.junit.runners.Suite;
import org.junit.runners.Suite.SuiteClasses;
@RunWith(Suite.class)
@SuiteClasses({
PlsqlTreeDumpTest.class,
ParenthesisGroupTest.class,
ExecuteImmediateBulkCollectTest.class
})
public class AllPlsqlAstTreeDumpTest {
}

View File

@ -1,4 +1,4 @@
+- Input[@CanonicalImage = null, @ExcludedLinesCount = 0, @ExcludedRangesCount = 0, @Sourcecode = "--\n-- BSD-style license; for more info see http://pmd.sourceforge.net/license.html\n--\n\nCREATE OR REPLACE PROCEDURE EXAMPLE_PROCEDURE IS\n --\n TYPE t_data IS TABLE OF dual%ROWTYPE INDEX BY BINARY_INTEGER;\n --\n l_data t_data;\n l_sql VARCHAR2(500);\n --\nBEGIN\n --\n l_sql := \'SELECT * FROM DUAL\';\n --\n EXECUTE IMMEDIATE l_sql BULK COLLECT\n INTO l_data;\n --\nEND EXAMPLE_PROCEDURE;\n"]
+- Input[@CanonicalImage = null, @ExcludedLinesCount = 0, @ExcludedRangesCount = 0]
+- Global[@CanonicalImage = null]
+- ProgramUnit[@CanonicalImage = null, @MethodName = "EXAMPLE_PROCEDURE", @Name = "EXAMPLE_PROCEDURE", @ObjectName = null]
+- MethodDeclarator[@CanonicalImage = "EXAMPLE_PROCEDURE", @Image = "EXAMPLE_PROCEDURE", @ParameterCount = 1]

View File

@ -1,4 +1,4 @@
+- Input[@CanonicalImage = null, @ExcludedLinesCount = 0, @ExcludedRangesCount = 0, @Sourcecode = "--\n-- BSD-style license; for more info see http://pmd.sourceforge.net/license.html\n--\n\nCREATE OR REPLACE PROCEDURE EXAMPLE_PROCEDURE IS\n --\n TYPE t_data_key IS TABLE OF NUMBER INDEX BY BINARY_INTEGER;\n TYPE t_data_description IS TABLE OF VARCHAR2(100) INDEX BY BINARY_INTEGER;\n --\n l_data_key t_data_key;\n l_data_description t_data_description;\n l_sql VARCHAR2(500);\n p_rownum1 NUMBER(20);\n p_rownum2 NUMBER(20);\n --\nBEGIN\n --\n p_rownum1 := 10;\n p_rownum2 := 30;\n --\n l_sql := \'SELECT 1, \' || CHR(39) || \'First key\' || CHR(39) || \n \' FROM DUAL \'||\' WHERE ROWNUM <= :p_rownum1 \' ||\n \'UNION ALL \'||\n \'SELECT 2, \' || CHR(39) || \'Second key \' || CHR(39) || \n \' FROM DUAL\'||\' WHERE ROWNUM <= :p_rownum2 \';\n --\n EXECUTE IMMEDIATE l_sql BULK COLLECT\n INTO l_data_key, l_data_description USING p_rownum1, p_rownum2;\n --\nEND EXAMPLE_PROCEDURE;\n"]
+- Input[@CanonicalImage = null, @ExcludedLinesCount = 0, @ExcludedRangesCount = 0]
+- Global[@CanonicalImage = null]
+- ProgramUnit[@CanonicalImage = null, @MethodName = "EXAMPLE_PROCEDURE", @Name = "EXAMPLE_PROCEDURE", @ObjectName = null]
+- MethodDeclarator[@CanonicalImage = "EXAMPLE_PROCEDURE", @Image = "EXAMPLE_PROCEDURE", @ParameterCount = 1]

View File

@ -1,4 +1,4 @@
+- Input[@CanonicalImage = null, @ExcludedLinesCount = 0, @ExcludedRangesCount = 0, @Sourcecode = "--\n-- BSD-style license; for more info see http://pmd.sourceforge.net/license.html\n--\n\nCREATE OR REPLACE PROCEDURE EXAMPLE_PROCEDURE IS\n --\n TYPE t_data_key IS TABLE OF NUMBER INDEX BY BINARY_INTEGER;\n TYPE t_data_description IS TABLE OF VARCHAR2(100) INDEX BY BINARY_INTEGER;\n --\n l_data_key t_data_key;\n l_data_description t_data_description;\n l_sql VARCHAR2(500);\n --\nBEGIN\n --\n l_sql := \'SELECT 1, \' || CHR(39) || \'First key\' || CHR(39) || \n \' FROM DUAL \'||\n \'UNION ALL \'||\n \'SELECT 2, \' || CHR(39) || \'Second key \' || CHR(39) || \n \' FROM DUAL\';\n --\n EXECUTE IMMEDIATE l_sql BULK COLLECT\n INTO l_data_key, l_data_description;\n --\nEND EXAMPLE_PROCEDURE;\n"]
+- Input[@CanonicalImage = null, @ExcludedLinesCount = 0, @ExcludedRangesCount = 0]
+- Global[@CanonicalImage = null]
+- ProgramUnit[@CanonicalImage = null, @MethodName = "EXAMPLE_PROCEDURE", @Name = "EXAMPLE_PROCEDURE", @ObjectName = null]
+- MethodDeclarator[@CanonicalImage = "EXAMPLE_PROCEDURE", @Image = "EXAMPLE_PROCEDURE", @ParameterCount = 1]

View File

@ -1,4 +1,4 @@
+- Input[@CanonicalImage = null, @ExcludedLinesCount = "0", @ExcludedRangesCount = "0"]
+- Input[@CanonicalImage = null, @ExcludedLinesCount = 0, @ExcludedRangesCount = 0]
+- Global[@CanonicalImage = null]
+- ProgramUnit[@CanonicalImage = null, @MethodName = "EXAMPLE_PROCEDURE", @Name = "EXAMPLE_PROCEDURE", @ObjectName = null]
+- MethodDeclarator[@CanonicalImage = "EXAMPLE_PROCEDURE", @Image = "EXAMPLE_PROCEDURE", @ParameterCount = 1]

View File

@ -1,4 +1,4 @@
+- Input[@CanonicalImage = null, @ExcludedLinesCount = "0", @ExcludedRangesCount = "0"]
+- Input[@CanonicalImage = null, @ExcludedLinesCount = 0, @ExcludedRangesCount = 0]
+- Global[@CanonicalImage = null]
+- ProgramUnit[@CanonicalImage = null, @MethodName = "EXAMPLE_PROCEDURE", @Name = "EXAMPLE_PROCEDURE", @ObjectName = null]
+- MethodDeclarator[@CanonicalImage = "EXAMPLE_PROCEDURE", @Image = "EXAMPLE_PROCEDURE", @ParameterCount = 1]

View File

@ -1,4 +1,4 @@
+- Input[@CanonicalImage = null, @ExcludedLinesCount = "0", @ExcludedRangesCount = "0"]
+- Input[@CanonicalImage = null, @ExcludedLinesCount = 0, @ExcludedRangesCount = 0]
+- Global[@CanonicalImage = null]
+- ProgramUnit[@CanonicalImage = null, @MethodName = "TEST_PROCEDURE", @Name = "TEST_PROCEDURE", @ObjectName = null]
+- MethodDeclarator[@CanonicalImage = "TEST_PROCEDURE", @Image = "TEST_PROCEDURE", @ParameterCount = 1]