summaryrefslogtreecommitdiff
path: root/src/test/extended-query-test/tests/query-cache.data
blob: 9973f22ef7aab6966282f8237d7cf872606f664b (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
# query cache test
#

##memory_cache_enabled = on

# Create test table
'Q'	"DROP TABLE IF EXISTS pgproto_test1"
'Y'
'Q'	"CREATE TABLE pgproto_test1(i INT)"
'Y'
'Q'	"INSERT INTO pgproto_test1 VALUES(1)"
'Y'

'Q'	"SELECT * FROM pgproto_test1"
'Y'
'Q'	"SELECT * FROM pgproto_test1"
'Y'

# Start a transaction
'P'	"S1"	"BEGIN"	0
'B'	""	"S1"	0	0	0
'E'	""	0
'C'	'S'	"S1"

# Issue SELECT
'P'	"S2"	"SELECT 1 FROM pgproto_test1"	0
'B'	""	"S2"	0	0	0
'E'	""	0
'C'	'S'	"S2"

# Issue COMMIT
'P'	"S4"	"COMMIT"	0
'B'	""	"S4"	0	0	0
'E'	""	0
'C'	'S'	"S4"

'S'
'Y'

# Issue SELECT
'P'	"S3"	"SELECT 1 FROM pgproto_test1"	0
'B'	""	"S3"	0	0	0
'E'	""	0
'C'	'S'	"S3"

'S'
'Y'

# DROP test table
'Q'	"DROP TABLE pgproto_test1"
'Y'

'X'