File: incrdecr.result

package info (click to toggle)
tarantool 1.5.2.20.g5f5d924-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 26,568 kB
  • ctags: 18,697
  • sloc: ansic: 109,092; sh: 21,312; cpp: 20,633; xml: 9,666; asm: 2,488; python: 2,195; java: 1,759; perl: 1,002; makefile: 679
file content (53 lines) | stat: -rw-r--r-- 742 bytes parent folder | download | duplicates (3)
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
# incr/decr big value 
set bug21 0 0 19
9223372036854775807
STORED
incr bug21 1
9223372036854775808
incr bug21 1
9223372036854775809
decr bug21 1
9223372036854775808
# underflow protection 
set num 0 0 1
1
STORED
incr num 1
2
incr num 8
10
decr num 1
9
decr num 9
0
decr num 5
0
# 32-bit value 
set num 0 0 10
4294967296
STORED
incr num 1
4294967297
# overflow value 
set num 0 0 20
18446744073709551615
STORED
incr num 1
0
# bogus 
decr bogus 1
NOT_FOUND
decr incr 1
NOT_FOUND
# bit increment 
set bigincr 0 0 1
0
STORED
incr num 18446744073709551610
18446744073709551610
# incr text value error 
set text 0 0 2
hi
STORED
incr text 1
CLIENT_ERROR cannot increment or decrement non-numeric value