blob: 89e57264c8c2bdb171a475ea6f5a42d70c596db0 (
plain)
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
|
# file : common/inheritance/polymorphism/testscript
# license : GNU GPL v2; see accompanying LICENSE file
.include ../../../database-options.testscript
+cat <<EOI >=output
base pre_persist 1 const
base post_persist 1 const
derived pre_persist 2 const
derived post_persist 2 const
base pre_load 0
base post_load 1
derived pre_load 0 const
derived post_load 2 const
base pre_load 1
base post_load 1
derived pre_load 2 const
derived post_load 2 const
base pre_load 1
base post_load 1
derived pre_load 2 const
derived post_load 2 const
base pre_update 1 const
base post_update 1 const
derived pre_update 2 const
derived post_update 2 const
base pre_load 0
base post_load 1
derived pre_load 0 const
derived post_load 2 const
base pre_erase 1 const
base post_erase 1 const
derived pre_erase 2 const
derived post_erase 2 const
derived pre_persist 3 const
derived post_persist 3 const
derived pre_persist 4 const
derived post_persist 4 const
derived pre_load 0 const
derived pre_load 0 const
derived post_load 4 const
derived post_load 3 const
EOI
test.redirects += >>>../output
: mysql
:
if $mysql
{
.include ../../../mysql-schema.testscript
for s: $schemas
cat $out_base/"$s"($multi ? '-mysql' : '').sql | $create_schema_cmd
end;
$* ($multi ? 'mysql' : ) $mysql_options
}
: sqlite
:
if $sqlite
{
.include ../../../sqlite.testscript
$*
}
: pgsql
:
if $pgsql
{
.include ../../../pgsql-schema.testscript
for s: $schemas
$create_schema_cmd -f $out_base/"$s"($multi ? '-pgsql' : '').sql
end;
$* ($multi ? 'pgsql' : ) $pgsql_options
}
|