~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/suite/cast/r/unsigned.result

Merge Joe, plus I updated the tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
SELECT CAST("12" AS UNSIGNED);
2
 
CAST("12" AS UNSIGNED)
3
 
12
4
 
SELECT CAST(12 AS UNSIGNED);
5
 
CAST(12 AS UNSIGNED)
6
 
12
7
 
SELECT CAST(0 AS UNSIGNED);
8
 
CAST(0 AS UNSIGNED)
9
 
0
10
 
SELECT CAST("0" AS UNSIGNED);
11
 
CAST("0" AS UNSIGNED)
12
 
0
13
 
SELECT CAST(0.0 AS UNSIGNED);
14
 
CAST(0.0 AS UNSIGNED)
15
 
0
16
 
SELECT CAST(0.1 AS UNSIGNED);
17
 
CAST(0.1 AS UNSIGNED)
18
 
0
19
 
SELECT CAST(0.4 AS UNSIGNED);
20
 
CAST(0.4 AS UNSIGNED)
21
 
0
22
 
SELECT CAST(0.5 AS UNSIGNED);
23
 
CAST(0.5 AS UNSIGNED)
24
 
1
25
 
SELECT CAST(0.9 AS UNSIGNED);
26
 
CAST(0.9 AS UNSIGNED)
27
 
1
28
 
SELECT CAST(10.1 AS UNSIGNED);
29
 
CAST(10.1 AS UNSIGNED)
30
 
10
31
 
SELECT CAST("18446744073709551615" AS UNSIGNED);
32
 
CAST("18446744073709551615" AS UNSIGNED)
33
 
18446744073709551615
34
 
SELECT CAST(18446744073709551615 AS UNSIGNED);
35
 
CAST(18446744073709551615 AS UNSIGNED)
36
 
18446744073709551615
37
 
SELECT CAST(-1 AS UNSIGNED);
38
 
ERROR HY000: Cast to unsigned converted negative integer to it's positive complement: -1
39
 
SELECT CAST(-18446744073709551614 AS UNSIGNED);
40
 
ERROR HY000: Cast to unsigned converted negative integer to it's positive complement: -18446744073709551614
41
 
SELECT CAST(-18446744073709551615 AS UNSIGNED);
42
 
ERROR HY000: Cast to unsigned converted negative integer to it's positive complement: -18446744073709551615
43
 
SELECT CAST("-1" AS UNSIGNED);
44
 
ERROR HY000: Cast to unsigned converted negative integer to it's positive complement: -1
45
 
SELECT CAST("-18446744073709551614" AS UNSIGNED);
46
 
ERROR HY000: Cast to unsigned converted negative integer to it's positive complement: -18446744073709551614
47
 
SELECT CAST("-18446744073709551615" AS UNSIGNED);
48
 
ERROR HY000: Cast to unsigned converted negative integer to it's positive complement: -18446744073709551615
49
 
SELECT CAST(-1.1 AS UNSIGNED);
50
 
ERROR HY000: Cast to unsigned converted negative integer to it's positive complement: -1.1
51
 
SELECT CAST(-18446744073709551614.1 AS UNSIGNED);
52
 
ERROR HY000: Cast to unsigned converted negative integer to it's positive complement: -18446744073709551614.1
53
 
SELECT CAST(-18446744073709551615.1 AS UNSIGNED);
54
 
ERROR HY000: Cast to unsigned converted negative integer to it's positive complement: -18446744073709551615.1
55
 
SELECT CAST("-1.1" AS UNSIGNED);
56
 
ERROR HY000: Cast to unsigned converted negative integer to it's positive complement: -1.1
57
 
SELECT CAST("-18446744073709551614.1" AS UNSIGNED);
58
 
ERROR HY000: Cast to unsigned converted negative integer to it's positive complement: -18446744073709551614.1
59
 
SELECT CAST("-18446744073709551615.1" AS UNSIGNED);
60
 
ERROR HY000: Cast to unsigned converted negative integer to it's positive complement: -18446744073709551615.1
61
 
SELECT CAST("-18446744073709551615.1" AS UNSIGNED);
62
 
ERROR HY000: Cast to unsigned converted negative integer to it's positive complement: -18446744073709551615.1
63
 
SELECT CAST(-(-1) AS UNSIGNED);
64
 
CAST(-(-1) AS UNSIGNED)
65
 
1