-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy patheunit.delete.tst
92 lines (83 loc) · 4.25 KB
/
eunit.delete.tst
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
%%-*- mode: erlang -*-
%%-*- coding: utf-8 -*-
% Test control options
[{tests, []}].
%% =============================================================================
%% TESTS: DELETE
%% -----------------------------------------------------------------------------
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% delete_statement
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
"delete from \"exotic name\" alias_1".
"delete from \"exotic name\"".
"delete from :param_1 alias_1".
"delete from :param_1 where current of cursor_1 return * into *".
"delete from :param_1".
"Delete From :param_1\"@link_1\" alias_1".
"delete from :param_1\"@link_1\"".
"Delete From \"^&()\" alias_1".
"Delete From \"^&()\"".
"Delete From schema_1.table_1 alias_1".
"Delete From schema_1.table_1".
"Delete From schema_1.table_1\"@link_1\" alias_1".
"delete from schema_1.table_1\"@link_1\"".
"Delete From table_1 alias_1".
"delete from table_1 return * into *".
"delete from table_1 return column_1,column_2 into column_3".
"delete from table_1 returning * into *".
"delete from table_1 returning column_1,column_2 into column_3".
"delete from table_1 where column_1 = column_2 and column_3 = column_4 return * into *".
"delete from table_1 where column_1 = column_2 and column_3 = column_4 return column_1,column_2 into column_3".
"delete from table_1 where column_1 = column_2 and column_3 = column_4 returning * into *".
"delete from table_1 where column_1 = column_2 and column_3 = column_4 returning column_1,column_2 into column_3".
"delete from table_1 where column_1 = column_2 and column_3 = column_4".
"delete from table_1 where current of cursor_1 return * into *".
"delete from table_1 where current of cursor_1 return column_1,column_2 into column_3".
"delete from table_1 where current of cursor_1 returning * into *".
"delete from table_1 where current of cursor_1 returning column_1,column_2 into column_3".
"delete from table_1 where current of cursor_1".
"Delete From table_1".
"Delete From table_1\"@link_1\" alias_1".
"Delete From table_1\"@link_1\"".
"DELETE FROM table_name WHERE CURRENT OF name_cursor".
"DELETE FROM table_name WHERE some_column=some_value RETURN c,d INTO :c, :d".
"DELETE FROM table_name WHERE some_column=some_value RETURN lob_column INTO :out_locator".
"DELETE FROM table_name WHERE some_column=some_value RETURNING c,d INTO :c, :d".
"DELETE FROM table_name WHERE some_column=some_value RETURNING lob_column INTO :out_locator".
"DELETE FROM table_name WHERE some_column=some_value".
"DELETE FROM table_name".
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% table collection expression
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
"delete from table (column_1|:b|)".
"delete from table (table_1.column_1|:b|)".
"delete from table (schema_1.table_1.column_1|:b|)".
"delete from table (column_1)".
"delete from table (table_1.column_1)".
"delete from table (schema_1.table_1.column_1)".
"delete from table (column_1(+))".
"delete from table (table_1.column_1(+))".
"delete from table (schema_1.table_1.column_1(+))".
"delete from table (table_1.*)".
"delete from table (schema_1.table_1.*)".
"delete from table (schema_1.package_1.function_1(arg_1, arg_2))".
"delete from table (package_1.function_1(arg_1, arg_2))".
"delete from table (function_1(arg_1, arg_2))".
"delete from table (max)".
"delete from table (max(arg_1, arg_2))".
"delete from table (max(*))".
"delete from table (max(distinct column_1))".
"delete from table (max(all column_1))".
"delete from table (schema_1.package_1.function_1(arg_1, arg_2)|:b[f(p:q)]|)".
"delete from table (package_1.function_1(arg_1, arg_2)|:b[f(p:q)]|)".
"delete from table (function_1(arg_1, arg_2)|:b[f(p:q)]|)".
"delete from table (max|:b[f(p:q)]|)".
"delete from table (max(arg_1, arg_2)|:b[f(p:q)]|)".
"delete from table (max(*)|:b[f(p:q)]|)".
"delete from table (max(distinct column_1)|:b[f(p:q)]|)".
"delete from table (max(all column_1)|:b[f(p:q)]|)".
"delete from table (select * from table_1)".
"delete from table (select column_1, column_2 from table_1)".
%% -----------------------------------------------------------------------------
%% TESTS: DELETE
%% =============================================================================