~ubuntu-branches/ubuntu/maverick/mysql-5.1/maverick-proposed

« back to all changes in this revision

Viewing changes to mysql-test/suite/parts/inc/partition_decimal.inc

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2012-02-22 14:16:05 UTC
  • mto: This revision was merged to the branch mainline in revision 20.
  • Revision ID: package-import@ubuntu.com-20120222141605-nxlu9yzc6attylc2
Tags: upstream-5.1.61
ImportĀ upstreamĀ versionĀ 5.1.61

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
 
38
38
# Bug 30577: FLOOR() and CEILING() not usable as partition functions
39
39
# Partition functions are required to return INT_RESULT; FLOOR() and
40
 
# CEILING() do not, unless they have an INT argument.  Disable this
41
 
# portion of the test until bug 30577 is fixed.
 
40
# CEILING() do not, unless they have an INT or DECIMAL argument.
42
41
 
43
 
--disable_parsing
44
42
 
45
43
eval create table t3 (a decimal(18,9) not null, primary key(a)) engine=$engine 
46
44
partition by range (floor(a)) subpartition by key (a) subpartitions 2 (
65
63
drop table t3;
66
64
 
67
65
eval create table t4 (a decimal(18,9) not null, primary key(a)) engine=$engine 
68
 
partition by list (floor(a)) subpartition by key (a) subpartitions 2 (
 
66
partition by list (ceiling(a)) subpartition by key (a) subpartitions 2 (
69
67
partition pa2 values in (1,2),
70
68
partition pa4 values in (3,4),
71
69
partition pa6 values in (5,6),
85
83
--enable_query_log
86
84
select count(*) from t4;
87
85
drop table t4;
88
 
 
89
 
# Disabled due to Bug 30577
90
 
--enable_parsing