aboutsummaryrefslogtreecommitdiff
path: root/common/transaction/basics/testscript
blob: 94c58b62af1fde019e6703d5331b8ff53ca169ef (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
# file      : common/transaction/basics/testscript
# license   : GNU GPL v2; see accompanying LICENSE file

.include ../../../database-options.testscript

+cat <<EOI >=output
  test 001
  begin transaction
  begin transaction
  rollback transaction
  rollback transaction
  test 002
  begin transaction
  commit transaction
  test 003
  begin transaction
  rollback transaction
  test 004
  begin transaction
  rollback transaction
  test 005
  begin transaction
  already_in_transaction
  rollback transaction
  test 006
  begin transaction
  rollback transaction
  test 007
  begin transaction
  commit transaction
  begin transaction
  commit transaction
  EOI

test.redirects += >>>../output

: mysql
:
if $mysql
{
  .include ../../../mysql.testscript

  $*
}

: sqlite
:
if $sqlite
{
  .include ../../../sqlite.testscript

  $*
}

: pgsql
:
if $pgsql
{
  .include ../../../pgsql.testscript

  $*
}