-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreadme.txt
More file actions
49 lines (33 loc) · 1.12 KB
/
readme.txt
File metadata and controls
49 lines (33 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
Automatic PL/SQL Code Checks and Edits
(just testing the CodeWalker class in plsql-parser)
class spinat.plsqlchecks.Varchar2Fixer
This program fixes declarations of kind varchar2(23) to varchar2(23 char).
Of course char() and varchar() are also handled.
Call
dir <directoryname>
fixes all files in dirextory and replaces the files in place.
You are using source control?
Given a file name, determine what the contents are: spec or body and then
retrieve all varchar() declarations.
These can occur as
variable type,
record field,
table of something
Of course it would be simpler to do this with a regular expression.
But this is a test for the pl/sql parser.
class spinat.plsqlchecks.WhenOthersThenBad
works on a directory
complains about exception handlers like:
when others then null;
just reraising then exception
when others then raise;
just logging and then raise ...
when others then
logging.log_info(...) (or something similar)
...
raise;
end;
class ToLargeNodataFound
comßplain about blocks with a no_data_found handler
which are to "large", meaning the ycotian several select statements
or another block