type_decimal.test
上传用户:tsgydb
上传日期:2007-04-14
资源大小:10674k
文件大小:14k
- # bug in decimal() with negative numbers by kaido@tradenet.ee
- DROP TABLE IF EXISTS t1;
- CREATE TABLE t1 (
- id int(11) DEFAULT '0' NOT NULL auto_increment,
- datatype_id int(11) DEFAULT '0' NOT NULL,
- minvalue decimal(20,10) DEFAULT '0.0000000000' NOT NULL,
- maxvalue decimal(20,10) DEFAULT '0.0000000000' NOT NULL,
- valuename varchar(20),
- forecolor int(11),
- backcolor int(11),
- PRIMARY KEY (id),
- UNIQUE datatype_id (datatype_id, minvalue, maxvalue)
- );
- INSERT INTO t1 VALUES ( '1', '4', '0.0000000000', '0.0000000000', 'Ei saja', '0', '16776960');
- INSERT INTO t1 VALUES ( '2', '4', '1.0000000000', '1.0000000000', 'Sajab', '16777215', '255');
- INSERT INTO t1 VALUES ( '3', '1', '2.0000000000', '49.0000000000', '', '0', '16777215');
- INSERT INTO t1 VALUES ( '60', '11', '0.0000000000', '0.0000000000', 'Rikkis', '16777215', '16711680');
- INSERT INTO t1 VALUES ( '4', '12', '1.0000000000', '1.0000000000', 'nork sadu', '65280', '14474460');
- INSERT INTO t1 VALUES ( '5', '12', '2.0000000000', '2.0000000000', 'keskmine sadu', '255', '14474460');
- INSERT INTO t1 VALUES ( '6', '12', '3.0000000000', '3.0000000000', 'tugev sadu', '127', '14474460');
- INSERT INTO t1 VALUES ( '43', '39', '6.0000000000', '6.0000000000', 'lobjakas', '13107327', '16763080');
- INSERT INTO t1 VALUES ( '40', '39', '2.0000000000', '2.0000000000', 'vihm', '8355839', '16777215');
- INSERT INTO t1 VALUES ( '53', '1', '-35.0000000000', '-5.0000000000', '', '0', '16777215');
- INSERT INTO t1 VALUES ( '41', '39', '3.0000000000', '3.0000000000', 'k黮m vihm', '120', '16763080');
- INSERT INTO t1 VALUES ( '12', '21', '21.0000000000', '21.0000000000', 'Kuiv', '13158600', '16777215');
- INSERT INTO t1 VALUES ( '13', '21', '13.0000000000', '13.0000000000', 'M鋜g', '5263615', '16777215');
- INSERT INTO t1 VALUES ( '14', '21', '22.0000000000', '22.0000000000', 'Niiske', '9869055', '16777215');
- INSERT INTO t1 VALUES ( '19', '21', '33.0000000000', '33.0000000000', 'M鋜g', '5263615', '16777215');
- INSERT INTO t1 VALUES ( '15', '21', '23.0000000000', '23.0000000000', 'M鋜g', '5263615', '16777215');
- INSERT INTO t1 VALUES ( '16', '21', '31.0000000000', '31.0000000000', 'Kuiv', '13158600', '16777215');
- INSERT INTO t1 VALUES ( '17', '21', '12.0000000000', '12.0000000000', 'Niiske', '9869055', '16777215');
- INSERT INTO t1 VALUES ( '18', '21', '32.0000000000', '32.0000000000', 'Niiske', '9869055', '16777215');
- INSERT INTO t1 VALUES ( '20', '21', '331.0000000000', '331.0000000000', 'H鋜matise hoiatus!', '14448840', '13158600');
- INSERT INTO t1 VALUES ( '21', '21', '11.0000000000', '11.0000000000', 'Kuiv', '13158600', '16777215');
- INSERT INTO t1 VALUES ( '22', '33', '21.0000000000', '21.0000000000', 'Pilves, kuiv', '8355711', '12632256');
- INSERT INTO t1 VALUES ( '23', '33', '13.0000000000', '13.0000000000', 'Sajab, m鋜g', '0', '8355839');
- INSERT INTO t1 VALUES ( '24', '33', '22.0000000000', '22.0000000000', 'Pilves, niiske', '8355711', '12632319');
- INSERT INTO t1 VALUES ( '29', '33', '33.0000000000', '33.0000000000', 'Selge, m鋜g', '16777215', '8355839');
- INSERT INTO t1 VALUES ( '25', '33', '23.0000000000', '23.0000000000', 'Pilves, m鋜g', '8355711', '8355839');
- INSERT INTO t1 VALUES ( '26', '33', '31.0000000000', '31.0000000000', 'Selge, kuiv', '16777215', '12632256');
- INSERT INTO t1 VALUES ( '27', '33', '12.0000000000', '12.0000000000', 'Sajab, niiske', '0', '12632319');
- INSERT INTO t1 VALUES ( '28', '33', '32.0000000000', '32.0000000000', 'Selge, niiske', '16777215', '12632319');
- INSERT INTO t1 VALUES ( '30', '33', '331.0000000000', '331.0000000000', 'H鋜matis! selge,kuiv', '16711680', '12632256');
- INSERT INTO t1 VALUES ( '31', '33', '11.0000000000', '11.0000000000', 'Sajab, kuiv', '0', '12632256');
- INSERT INTO t1 VALUES ( '32', '11', '1.0000000000', '1.0000000000', 'Korras', '16777215', '49152');
- INSERT INTO t1 VALUES ( '33', '21', '335.0000000000', '335.0000000000', 'H鋜matis!', '14448840', '11842740');
- INSERT INTO t1 VALUES ( '34', '21', '134.0000000000', '134.0000000000', 'Hoiatus, M+S!', '255', '13158600');
- INSERT INTO t1 VALUES ( '35', '21', '133.0000000000', '133.0000000000', 'Hoiatus, m鋜g!', '5263615', '13158600');
- INSERT INTO t1 VALUES ( '36', '21', '135.0000000000', '135.0000000000', 'H鋜matis!', '14448840', '11842740');
- INSERT INTO t1 VALUES ( '37', '21', '334.0000000000', '334.0000000000', 'H鋜matise hoiatus!', '14448840', '13158600');
- INSERT INTO t1 VALUES ( '38', '21', '132.0000000000', '132.0000000000', 'Hoiatus, niiske!', '9869055', '13158600');
- INSERT INTO t1 VALUES ( '39', '39', '1.0000000000', '1.0000000000', 'ei saja', '11206570', '16777215');
- INSERT INTO t1 VALUES ( '44', '39', '4.0000000000', '5.0000000000', 'lumi', '16711680', '16763080');
- INSERT INTO t1 VALUES ( '45', '12', '0.0000000000', '0.0000000000', '', '16777215', '14474460');
- INSERT INTO t1 VALUES ( '46', '39', '8.0000000000', '8.0000000000', 'rahe', '9830400', '16763080');
- INSERT INTO t1 VALUES ( '47', '39', '9.0000000000', '9.0000000000', 't