1
by brian
clean slate |
1 |
#
|
2 |
# Testing of misc functions |
|
3 |
#
|
|
4 |
||
5 |
--disable_warnings
|
|
6 |
DROP TABLE IF EXISTS t1, t2; |
|
7 |
--enable_warnings
|
|
8 |
||
9 |
select format(1.5555,0),format(123.5555,1),format(1234.5555,2),format(12345.55555,3),format(123456.5555,4),format(1234567.5555,5),format("12345.2399",2); |
|
10 |
||
11 |
#
|
|
12 |
# Test for core dump with nan |
|
13 |
#
|
|
14 |
select length(format('nan', 2)) > 0; |
|
15 |
||
16 |
#
|
|
17 |
# Test for bug #628 |
|
18 |
#
|
|
19 |
select concat("$",format(2500,2)); |
|
20 |
||
21 |
# Test for BUG#7716 |
|
22 |
create table t1 ( a timestamp ); |
|
23 |
insert into t1 values ( '2004-01-06 12:34' ); |
|
24 |
select a from t1 where left(a+0,6) in ( left(20040106,6) ); |
|
25 |
select a from t1 where left(a+0,6) = ( left(20040106,6) ); |
|
26 |
||
27 |
select a from t1 where right(a+0,6) in ( right(20040106123400,6) ); |
|
28 |
select a from t1 where right(a+0,6) = ( right(20040106123400,6) ); |
|
29 |
||
30 |
select a from t1 where mid(a+0,6,3) in ( mid(20040106123400,6,3) ); |
|
31 |
select a from t1 where mid(a+0,6,3) = ( mid(20040106123400,6,3) ); |
|
32 |
||
33 |
drop table t1; |
|
34 |
||
35 |
--echo End of 4.1 tests |
|
36 |
||
37 |
||
38 |
#
|
|
39 |
# Test for BUG#9535 |
|
40 |
#
|
|
41 |
--disable_warnings
|
|
42 |
create table t1 as select uuid(), length(uuid()); |
|
43 |
--enable_warnings
|
|
942.3.1
by Vladimir Kolesnikov
test generalizations |
44 |
--replace_regex /ENGINE=[a-zA-Z]+/ENGINE=DEFAULT/ |
1
by brian
clean slate |
45 |
show create table t1; |
46 |
drop table t1; |
|
47 |
||
48 |
--echo End of 5.0 tests |
|
49 |
||
50 |
#
|
|
51 |
# Bug #30389: connection_id() always return 0 in embedded server |
|
52 |
#
|
|
53 |
||
54 |
select connection_id() > 0; |
|
55 |
||
56 |
--echo End of tests |