text: -- insert data  whith create range partition table on a varchar field and add a partition with maxvalue and then query data and drop table
  
  create table range_test(id int not null,
  			test_int int,
  			test_char char(50),
  			test_varchar varchar(2000),
  			test_datetime timestamp,primary key(id,test_varchar))
  PARTITION BY RANGE (test_varchar) (
      PARTITION p0 VALUES LESS THAN ('ddd'),
      PARTITION p1 VALUES LESS THAN ('ggg'),
      PARTITION p2 VALUES LESS THAN ('kkk')
  );
  
  insert into range_test values (1,1,'aaa','aaa','2000-01-01 09:00:00');
  insert into range_test values (2,2,'bbb','bbb','2000-01-02 09:00:00');
  insert into range_test values (3,3,'ccc','ccc','2000-01-03 09:00:00');
  insert into range_test values (4,11,'ddd','ddd','2000-02-01 09:00:00');
  insert into range_test values (5,12,'eee','eee','2000-02-02 09:00:00');
  insert into range_test values (6,13,'fff','fff','2000-02-03 09:00:00');
  insert into range_test values (7,21,'ggg','ggg','2000-03-01 09:00:00');
  insert into range_test values (8,22,'hhh','hhh','2000-03-02 09:00:00');
  insert into range_test values (9,23,'iii','iii','2000-03-03 09:00:00');
  insert into range_test values (10,31,'jjj','jjj','2000-04-01 09:00:00');
  
  ALTER TABLE range_test add partition (
  partition p8 values less than maxvalue
  );
  select * from db_partition order by 1,2 ;
  insert into range_test values (11,41,'zzz','zzz','2000-05-01 09:00:00');
  select * from range_test order by 1,2;
  select * from range_test__p__p0 order by 1,2;
  select * from range_test__p__p1 order by 1,2;;
  select * from range_test__p__p2 order by 1,2;
  select * from range_test__p__p8 order by 1,2;
  
  drop class range_test;
  