config root man

Current Path : /home/usr.opt/mysql57/mysql-test/suite/engines/funcs/t/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //home/usr.opt/mysql57/mysql-test/suite/engines/funcs/t/in_number_length.test

--disable_warnings
DROP TABLE IF EXISTS t4,t5;
--enable_warnings
CREATE TABLE t4(c1 DECIMAL(1,0) NOT NULL);
INSERT INTO t4 (c1) VALUES(0);
INSERT INTO t4 (c1) VALUES(1.0);
INSERT INTO t4 (c1) VALUES(-9.0);
SELECT * FROM t4;
SELECT COUNT(c1) AS total_rows FROM t4;
SELECT COUNT(c1) AS positive_rows FROM t4 WHERE c1 > 0.0;
SELECT COUNT(c1) AS negative_rows FROM t4 WHERE c1 < 0.0;
SELECT COUNT(c1) AS zero_rows FROM t4 WHERE c1 = 0.0;
DROP TABLE t4;
CREATE TABLE t5(c1 DECIMAL(5,4) NOT NULL);
INSERT INTO t5 (c1) VALUES(0);
INSERT INTO t5 (c1) VALUES(1.0);
INSERT INTO t5 (c1) VALUES(1.2345);
INSERT INTO t5 (c1) VALUES(-9.0);
INSERT INTO t5 (c1) VALUES(-9.12345);
SELECT * FROM t5;
SELECT COUNT(c1) AS positive_rows FROM t5 WHERE c1 > 0.0;
SELECT COUNT(c1) AS negative_rows FROM t5 WHERE c1 < 0.0;
SELECT COUNT(c1) AS zero_rows FROM t5 WHERE c1 = 0.0;
DROP TABLE t5;
CREATE TABLE t4(c1 DEC(1,0) NOT NULL);
INSERT INTO t4 (c1) VALUES(0);
INSERT INTO t4 (c1) VALUES(1.0);
INSERT INTO t4 (c1) VALUES(-9.0);
SELECT * FROM t4;
SELECT COUNT(c1) AS total_rows FROM t4;
SELECT COUNT(c1) AS positive_rows FROM t4 WHERE c1 > 0.0;
SELECT COUNT(c1) AS negative_rows FROM t4 WHERE c1 < 0.0;
SELECT COUNT(c1) AS zero_rows FROM t4 WHERE c1 = 0.0;
DROP TABLE t4;
CREATE TABLE t5(c1 DEC(5,4) NOT NULL);
INSERT INTO t5 (c1) VALUES(0);
INSERT INTO t5 (c1) VALUES(1.0);
INSERT INTO t5 (c1) VALUES(1.2345);
INSERT INTO t5 (c1) VALUES(-9.0);
INSERT INTO t5 (c1) VALUES(-9.12345);
SELECT * FROM t5;
SELECT COUNT(c1) AS positive_rows FROM t5 WHERE c1 > 0.0;
SELECT COUNT(c1) AS negative_rows FROM t5 WHERE c1 < 0.0;
SELECT COUNT(c1) AS zero_rows FROM t5 WHERE c1 = 0.0;
DROP TABLE t5;
CREATE TABLE t4(c1 FIXED(1,0) NOT NULL);
INSERT INTO t4 (c1) VALUES(0);
INSERT INTO t4 (c1) VALUES(1.0);
INSERT INTO t4 (c1) VALUES(-9.0);
SELECT * FROM t4;
SELECT COUNT(c1) AS total_rows FROM t4;
SELECT COUNT(c1) AS positive_rows FROM t4 WHERE c1 > 0.0;
SELECT COUNT(c1) AS negative_rows FROM t4 WHERE c1 < 0.0;
SELECT COUNT(c1) AS zero_rows FROM t4 WHERE c1 = 0.0;
DROP TABLE t4;
CREATE TABLE t5(c1 FIXED(5,4) NOT NULL);
INSERT INTO t5 (c1) VALUES(0);
INSERT INTO t5 (c1) VALUES(1.0);
INSERT INTO t5 (c1) VALUES(1.2345);
INSERT INTO t5 (c1) VALUES(-9.0);
INSERT INTO t5 (c1) VALUES(-9.12345);
SELECT * FROM t5;
SELECT COUNT(c1) AS positive_rows FROM t5 WHERE c1 > 0.0;
SELECT COUNT(c1) AS negative_rows FROM t5 WHERE c1 < 0.0;
SELECT COUNT(c1) AS zero_rows FROM t5 WHERE c1 = 0.0;
DROP TABLE t5;
CREATE TABLE t4(c1 NUMERIC(1,0) NOT NULL);
INSERT INTO t4 (c1) VALUES(0);
INSERT INTO t4 (c1) VALUES(1.0);
INSERT INTO t4 (c1) VALUES(-9.0);
SELECT * FROM t4;
SELECT COUNT(c1) AS total_rows FROM t4;
SELECT COUNT(c1) AS positive_rows FROM t4 WHERE c1 > 0.0;
SELECT COUNT(c1) AS negative_rows FROM t4 WHERE c1 < 0.0;
SELECT COUNT(c1) AS zero_rows FROM t4 WHERE c1 = 0.0;
DROP TABLE t4;
CREATE TABLE t5(c1 NUMERIC(5,4) NOT NULL);
INSERT INTO t5 (c1) VALUES(0);
INSERT INTO t5 (c1) VALUES(1.0);
INSERT INTO t5 (c1) VALUES(1.2345);
INSERT INTO t5 (c1) VALUES(-9.0);
INSERT INTO t5 (c1) VALUES(-9.12345);
SELECT * FROM t5;
SELECT COUNT(c1) AS positive_rows FROM t5 WHERE c1 > 0.0;
SELECT COUNT(c1) AS negative_rows FROM t5 WHERE c1 < 0.0;
SELECT COUNT(c1) AS zero_rows FROM t5 WHERE c1 = 0.0;
DROP TABLE t5;
CREATE TABLE t4(c1 DOUBLE(1,0) NOT NULL);
INSERT INTO t4 (c1) VALUES(0);
INSERT INTO t4 (c1) VALUES(1.0);
INSERT INTO t4 (c1) VALUES(-9.0);
SELECT * FROM t4;
SELECT COUNT(c1) AS total_rows FROM t4;
SELECT COUNT(c1) AS positive_rows FROM t4 WHERE c1 > 0.0;
SELECT COUNT(c1) AS negative_rows FROM t4 WHERE c1 < 0.0;
SELECT COUNT(c1) AS zero_rows FROM t4 WHERE c1 = 0.0;
DROP TABLE t4;
CREATE TABLE t5(c1 DOUBLE(5,4) NOT NULL);
INSERT INTO t5 (c1) VALUES(0);
INSERT INTO t5 (c1) VALUES(1.0);
INSERT INTO t5 (c1) VALUES(1.2345);
INSERT INTO t5 (c1) VALUES(-9.0);
INSERT INTO t5 (c1) VALUES(-9.12345);
SELECT * FROM t5;
SELECT COUNT(c1) AS positive_rows FROM t5 WHERE c1 > 0.0;
SELECT COUNT(c1) AS negative_rows FROM t5 WHERE c1 < 0.0;
SELECT COUNT(c1) AS zero_rows FROM t5 WHERE c1 = 0.0;
DROP TABLE t5;
CREATE TABLE t4(c1 REAL(1,0) NOT NULL);
INSERT INTO t4 (c1) VALUES(0);
INSERT INTO t4 (c1) VALUES(1.0);
INSERT INTO t4 (c1) VALUES(-9.0);
SELECT * FROM t4;
SELECT COUNT(c1) AS total_rows FROM t4;
SELECT COUNT(c1) AS positive_rows FROM t4 WHERE c1 > 0.0;
SELECT COUNT(c1) AS negative_rows FROM t4 WHERE c1 < 0.0;
SELECT COUNT(c1) AS zero_rows FROM t4 WHERE c1 = 0.0;
DROP TABLE t4;
CREATE TABLE t5(c1 REAL(5,4) NOT NULL);
INSERT INTO t5 (c1) VALUES(0);
INSERT INTO t5 (c1) VALUES(1.0);
INSERT INTO t5 (c1) VALUES(1.2345);
INSERT INTO t5 (c1) VALUES(-9.0);
INSERT INTO t5 (c1) VALUES(-9.12345);
SELECT * FROM t5;
SELECT COUNT(c1) AS positive_rows FROM t5 WHERE c1 > 0.0;
SELECT COUNT(c1) AS negative_rows FROM t5 WHERE c1 < 0.0;
SELECT COUNT(c1) AS zero_rows FROM t5 WHERE c1 = 0.0;
DROP TABLE t5;
CREATE TABLE t4(c1 DOUBLE PRECISION(1,0) NOT NULL);
INSERT INTO t4 (c1) VALUES(0);
INSERT INTO t4 (c1) VALUES(1.0);
INSERT INTO t4 (c1) VALUES(-9.0);
SELECT * FROM t4;
SELECT COUNT(c1) AS total_rows FROM t4;
SELECT COUNT(c1) AS positive_rows FROM t4 WHERE c1 > 0.0;
SELECT COUNT(c1) AS negative_rows FROM t4 WHERE c1 < 0.0;
SELECT COUNT(c1) AS zero_rows FROM t4 WHERE c1 = 0.0;
DROP TABLE t4;
CREATE TABLE t5(c1 DOUBLE PRECISION(5,4) NOT NULL);
INSERT INTO t5 (c1) VALUES(0);
INSERT INTO t5 (c1) VALUES(1.0);
INSERT INTO t5 (c1) VALUES(1.2345);
INSERT INTO t5 (c1) VALUES(-9.0);
INSERT INTO t5 (c1) VALUES(-9.12345);
SELECT * FROM t5;
SELECT COUNT(c1) AS positive_rows FROM t5 WHERE c1 > 0.0;
SELECT COUNT(c1) AS negative_rows FROM t5 WHERE c1 < 0.0;
SELECT COUNT(c1) AS zero_rows FROM t5 WHERE c1 = 0.0;
DROP TABLE t5;
CREATE TABLE t4(c1 FLOAT(1,0) NOT NULL);
INSERT INTO t4 (c1) VALUES(0);
INSERT INTO t4 (c1) VALUES(1.0);
INSERT INTO t4 (c1) VALUES(-9.0);
SELECT * FROM t4;
SELECT COUNT(c1) AS total_rows FROM t4;
SELECT COUNT(c1) AS positive_rows FROM t4 WHERE c1 > 0.0;
SELECT COUNT(c1) AS negative_rows FROM t4 WHERE c1 < 0.0;
SELECT COUNT(c1) AS zero_rows FROM t4 WHERE c1 = 0.0;
DROP TABLE t4;
CREATE TABLE t5(c1 FLOAT(5,4) NOT NULL);
INSERT INTO t5 (c1) VALUES(0);
INSERT INTO t5 (c1) VALUES(1.0);
INSERT INTO t5 (c1) VALUES(1.2345);
INSERT INTO t5 (c1) VALUES(-9.0);
INSERT INTO t5 (c1) VALUES(-9.12345);
SELECT * FROM t5;
SELECT COUNT(c1) AS positive_rows FROM t5 WHERE c1 > 0.0;
SELECT COUNT(c1) AS negative_rows FROM t5 WHERE c1 < 0.0;
SELECT COUNT(c1) AS zero_rows FROM t5 WHERE c1 = 0.0;
DROP TABLE t5;


Man Man