Current Path : /home/usr.opt/mysql57/mysql-test/suite/engines/funcs/r/ |
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 |
Current File : //home/usr.opt/mysql57/mysql-test/suite/engines/funcs/r/ps_number_length.result |
DROP TABLE IF EXISTS t4,t5; CREATE TABLE t4(c1 DECIMAL(1,0) NOT NULL); PREPARE stmt4 FROM 'INSERT INTO t4 (c1) VALUES(?)'; SET @a=0; EXECUTE stmt4 USING @a; SET @a=1.0; EXECUTE stmt4 USING @a; SET @a=-9.0; EXECUTE stmt4 USING @a; DEALLOCATE PREPARE stmt4; SELECT * FROM t4; c1 -9 0 1 SELECT COUNT(c1) AS total_rows FROM t4; total_rows 3 SELECT COUNT(c1) AS positive_rows FROM t4 WHERE c1 > 0.0; positive_rows 1 SELECT COUNT(c1) AS negative_rows FROM t4 WHERE c1 < 0.0; negative_rows 1 SELECT COUNT(c1) AS zero_rows FROM t4 WHERE c1 = 0.0; zero_rows 1 PREPARE stmt4 FROM 'SELECT * FROM t4 WHERE c1 = ?'; SET @a=0; EXECUTE stmt4 USING @a; c1 0 SET @a=1.0; EXECUTE stmt4 USING @a; c1 1 SET @a=-9.0; EXECUTE stmt4 USING @a; c1 -9 DEALLOCATE PREPARE stmt4; PREPARE stmt4 FROM 'UPDATE t4 SET c1 = ? WHERE c1 = ?'; SET @a=0; SET @b=1.0; EXECUTE stmt4 USING @a,@b; SET @a=1.0; SET @b=0; EXECUTE stmt4 USING @a,@b; SET @a=-9.0; SET @b=7.0; EXECUTE stmt4 USING @a,@b; DEALLOCATE PREPARE stmt4; SELECT * FROM t4; c1 -9 1 1 SELECT COUNT(c1) AS total_rows FROM t4; total_rows 3 SELECT COUNT(c1) AS positive_rows FROM t4 WHERE c1 > 0.0; positive_rows 2 SELECT COUNT(c1) AS negative_rows FROM t4 WHERE c1 < 0.0; negative_rows 1 SELECT COUNT(c1) AS zero_rows FROM t4 WHERE c1 = 0.0; zero_rows 0 PREPARE stmt4 FROM 'DELETE FROM t4 WHERE c1 = ?'; SET @a=0; EXECUTE stmt4 USING @a; SET @a=1.0; EXECUTE stmt4 USING @a; SET @a=-9.0; EXECUTE stmt4 USING @a; DEALLOCATE PREPARE stmt4; SELECT * FROM t4; c1 SELECT COUNT(c1) AS total_rows FROM t4; total_rows 0 SELECT COUNT(c1) AS positive_rows FROM t4 WHERE c1 > 0.0; positive_rows 0 SELECT COUNT(c1) AS negative_rows FROM t4 WHERE c1 < 0.0; negative_rows 0 SELECT COUNT(c1) AS zero_rows FROM t4 WHERE c1 = 0.0; zero_rows 0 DROP TABLE t4; CREATE TABLE t5(c1 DECIMAL(5,4) NOT NULL); PREPARE stmt5 FROM 'INSERT INTO t5 (c1) VALUES(?)'; SET @a=0; EXECUTE stmt5 USING @a; SET @a=1.0; EXECUTE stmt5 USING @a; SET @a=1.2345; EXECUTE stmt5 USING @a; SET @a=-9.0; EXECUTE stmt5 USING @a; SET @a=-9.12345; EXECUTE stmt5 USING @a; Warnings: Note 1265 Data truncated for column 'c1' at row 1 SELECT * FROM t5; c1 -9.0000 -9.1235 0.0000 1.0000 1.2345 SELECT COUNT(c1) AS positive_rows FROM t5 WHERE c1 > 0.0; positive_rows 2 SELECT COUNT(c1) AS negative_rows FROM t5 WHERE c1 < 0.0; negative_rows 2 SELECT COUNT(c1) AS zero_rows FROM t5 WHERE c1 = 0.0; zero_rows 1 DEALLOCATE PREPARE stmt5; PREPARE stmt5 FROM 'SELECT * FROM t5 WHERE c1 = ?'; SET @a=0; EXECUTE stmt5 USING @a; c1 0.0000 SET @a=1.0; EXECUTE stmt5 USING @a; c1 1.0000 SET @a=1.2345; EXECUTE stmt5 USING @a; c1 1.2345 SET @a=-9.0; EXECUTE stmt5 USING @a; c1 -9.0000 SET @a=-9.12345; EXECUTE stmt5 USING @a; c1 PREPARE stmt5 FROM 'UPDATE t5 SET c1 = ? WHERE c1 = ?'; SET @a=0; SET @b=1.0; EXECUTE stmt5 USING @a,@b; SET @a=1.0; SET @a=0; EXECUTE stmt5 USING @a,@b; SET @a=1.2345; SET @a=3.5432; EXECUTE stmt5 USING @a,@b; SET @a=-9.0; SET @a=-9.1; EXECUTE stmt5 USING @a,@b; SET @a=-9.12345; SET @a=-8.54321; EXECUTE stmt5 USING @a,@b; SELECT * FROM t5; c1 -9.0000 -9.1235 0.0000 0.0000 1.2345 SELECT COUNT(c1) AS positive_rows FROM t5 WHERE c1 > 0.0; positive_rows 1 SELECT COUNT(c1) AS negative_rows FROM t5 WHERE c1 < 0.0; negative_rows 2 SELECT COUNT(c1) AS zero_rows FROM t5 WHERE c1 = 0.0; zero_rows 2 DEALLOCATE PREPARE stmt5; PREPARE stmt5 FROM 'DELETE FROM t5 WHERE c1 = ?'; SET @a=0; EXECUTE stmt5 USING @a; SET @a=1.0; EXECUTE stmt5 USING @a; SET @a=1.2345; EXECUTE stmt5 USING @a; SET @a=-9.0; EXECUTE stmt5 USING @a; SET @a=-9.12345; EXECUTE stmt5 USING @a; SELECT * FROM t5; c1 -9.1235 SELECT COUNT(c1) AS positive_rows FROM t5 WHERE c1 > 0.0; positive_rows 0 SELECT COUNT(c1) AS negative_rows FROM t5 WHERE c1 < 0.0; negative_rows 1 SELECT COUNT(c1) AS zero_rows FROM t5 WHERE c1 = 0.0; zero_rows 0 DEALLOCATE PREPARE stmt5; DROP TABLE t5; CREATE TABLE t4(c1 DEC(1,0) NOT NULL); PREPARE stmt4 FROM 'INSERT INTO t4 (c1) VALUES(?)'; SET @a=0; EXECUTE stmt4 USING @a; SET @a=1.0; EXECUTE stmt4 USING @a; SET @a=-9.0; EXECUTE stmt4 USING @a; DEALLOCATE PREPARE stmt4; SELECT * FROM t4; c1 -9 0 1 SELECT COUNT(c1) AS total_rows FROM t4; total_rows 3 SELECT COUNT(c1) AS positive_rows FROM t4 WHERE c1 > 0.0; positive_rows 1 SELECT COUNT(c1) AS negative_rows FROM t4 WHERE c1 < 0.0; negative_rows 1 SELECT COUNT(c1) AS zero_rows FROM t4 WHERE c1 = 0.0; zero_rows 1 PREPARE stmt4 FROM 'SELECT * FROM t4 WHERE c1 = ?'; SET @a=0; EXECUTE stmt4 USING @a; c1 0 SET @a=1.0; EXECUTE stmt4 USING @a; c1 1 SET @a=-9.0; EXECUTE stmt4 USING @a; c1 -9 DEALLOCATE PREPARE stmt4; PREPARE stmt4 FROM 'UPDATE t4 SET c1 = ? WHERE c1 = ?'; SET @a=0; SET @b=1.0; EXECUTE stmt4 USING @a,@b; SET @a=1.0; SET @b=0; EXECUTE stmt4 USING @a,@b; SET @a=-9.0; SET @b=7.0; EXECUTE stmt4 USING @a,@b; DEALLOCATE PREPARE stmt4; SELECT * FROM t4; c1 -9 1 1 SELECT COUNT(c1) AS total_rows FROM t4; total_rows 3 SELECT COUNT(c1) AS positive_rows FROM t4 WHERE c1 > 0.0; positive_rows 2 SELECT COUNT(c1) AS negative_rows FROM t4 WHERE c1 < 0.0; negative_rows 1 SELECT COUNT(c1) AS zero_rows FROM t4 WHERE c1 = 0.0; zero_rows 0 PREPARE stmt4 FROM 'DELETE FROM t4 WHERE c1 = ?'; SET @a=0; EXECUTE stmt4 USING @a; SET @a=1.0; EXECUTE stmt4 USING @a; SET @a=-9.0; EXECUTE stmt4 USING @a; DEALLOCATE PREPARE stmt4; SELECT * FROM t4; c1 SELECT COUNT(c1) AS total_rows FROM t4; total_rows 0 SELECT COUNT(c1) AS positive_rows FROM t4 WHERE c1 > 0.0; positive_rows 0 SELECT COUNT(c1) AS negative_rows FROM t4 WHERE c1 < 0.0; negative_rows 0 SELECT COUNT(c1) AS zero_rows FROM t4 WHERE c1 = 0.0; zero_rows 0 DROP TABLE t4; CREATE TABLE t5(c1 DEC(5,4) NOT NULL); PREPARE stmt5 FROM 'INSERT INTO t5 (c1) VALUES(?)'; SET @a=0; EXECUTE stmt5 USING @a; SET @a=1.0; EXECUTE stmt5 USING @a; SET @a=1.2345; EXECUTE stmt5 USING @a; SET @a=-9.0; EXECUTE stmt5 USING @a; SET @a=-9.12345; EXECUTE stmt5 USING @a; Warnings: Note 1265 Data truncated for column 'c1' at row 1 SELECT * FROM t5; c1 -9.0000 -9.1235 0.0000 1.0000 1.2345 SELECT COUNT(c1) AS positive_rows FROM t5 WHERE c1 > 0.0; positive_rows 2 SELECT COUNT(c1) AS negative_rows FROM t5 WHERE c1 < 0.0; negative_rows 2 SELECT COUNT(c1) AS zero_rows FROM t5 WHERE c1 = 0.0; zero_rows 1 DEALLOCATE PREPARE stmt5; PREPARE stmt5 FROM 'SELECT * FROM t5 WHERE c1 = ?'; SET @a=0; EXECUTE stmt5 USING @a; c1 0.0000 SET @a=1.0; EXECUTE stmt5 USING @a; c1 1.0000 SET @a=1.2345; EXECUTE stmt5 USING @a; c1 1.2345 SET @a=-9.0; EXECUTE stmt5 USING @a; c1 -9.0000 SET @a=-9.12345; EXECUTE stmt5 USING @a; c1 PREPARE stmt5 FROM 'UPDATE t5 SET c1 = ? WHERE c1 = ?'; SET @a=0; SET @b=1.0; EXECUTE stmt5 USING @a,@b; SET @a=1.0; SET @a=0; EXECUTE stmt5 USING @a,@b; SET @a=1.2345; SET @a=3.5432; EXECUTE stmt5 USING @a,@b; SET @a=-9.0; SET @a=-9.1; EXECUTE stmt5 USING @a,@b; SET @a=-9.12345; SET @a=-8.54321; EXECUTE stmt5 USING @a,@b; SELECT * FROM t5; c1 -9.0000 -9.1235 0.0000 0.0000 1.2345 SELECT COUNT(c1) AS positive_rows FROM t5 WHERE c1 > 0.0; positive_rows 1 SELECT COUNT(c1) AS negative_rows FROM t5 WHERE c1 < 0.0; negative_rows 2 SELECT COUNT(c1) AS zero_rows FROM t5 WHERE c1 = 0.0; zero_rows 2 DEALLOCATE PREPARE stmt5; PREPARE stmt5 FROM 'DELETE FROM t5 WHERE c1 = ?'; SET @a=0; EXECUTE stmt5 USING @a; SET @a=1.0; EXECUTE stmt5 USING @a; SET @a=1.2345; EXECUTE stmt5 USING @a; SET @a=-9.0; EXECUTE stmt5 USING @a; SET @a=-9.12345; EXECUTE stmt5 USING @a; SELECT * FROM t5; c1 -9.1235 SELECT COUNT(c1) AS positive_rows FROM t5 WHERE c1 > 0.0; positive_rows 0 SELECT COUNT(c1) AS negative_rows FROM t5 WHERE c1 < 0.0; negative_rows 1 SELECT COUNT(c1) AS zero_rows FROM t5 WHERE c1 = 0.0; zero_rows 0 DEALLOCATE PREPARE stmt5; DROP TABLE t5; CREATE TABLE t4(c1 FIXED(1,0) NOT NULL); PREPARE stmt4 FROM 'INSERT INTO t4 (c1) VALUES(?)'; SET @a=0; EXECUTE stmt4 USING @a; SET @a=1.0; EXECUTE stmt4 USING @a; SET @a=-9.0; EXECUTE stmt4 USING @a; DEALLOCATE PREPARE stmt4; SELECT * FROM t4; c1 -9 0 1 SELECT COUNT(c1) AS total_rows FROM t4; total_rows 3 SELECT COUNT(c1) AS positive_rows FROM t4 WHERE c1 > 0.0; positive_rows 1 SELECT COUNT(c1) AS negative_rows FROM t4 WHERE c1 < 0.0; negative_rows 1 SELECT COUNT(c1) AS zero_rows FROM t4 WHERE c1 = 0.0; zero_rows 1 PREPARE stmt4 FROM 'SELECT * FROM t4 WHERE c1 = ?'; SET @a=0; EXECUTE stmt4 USING @a; c1 0 SET @a=1.0; EXECUTE stmt4 USING @a; c1 1 SET @a=-9.0; EXECUTE stmt4 USING @a; c1 -9 DEALLOCATE PREPARE stmt4; PREPARE stmt4 FROM 'UPDATE t4 SET c1 = ? WHERE c1 = ?'; SET @a=0; SET @b=1.0; EXECUTE stmt4 USING @a,@b; SET @a=1.0; SET @b=0; EXECUTE stmt4 USING @a,@b; SET @a=-9.0; SET @b=7.0; EXECUTE stmt4 USING @a,@b; DEALLOCATE PREPARE stmt4; SELECT * FROM t4; c1 -9 1 1 SELECT COUNT(c1) AS total_rows FROM t4; total_rows 3 SELECT COUNT(c1) AS positive_rows FROM t4 WHERE c1 > 0.0; positive_rows 2 SELECT COUNT(c1) AS negative_rows FROM t4 WHERE c1 < 0.0; negative_rows 1 SELECT COUNT(c1) AS zero_rows FROM t4 WHERE c1 = 0.0; zero_rows 0 PREPARE stmt4 FROM 'DELETE FROM t4 WHERE c1 = ?'; SET @a=0; EXECUTE stmt4 USING @a; SET @a=1.0; EXECUTE stmt4 USING @a; SET @a=-9.0; EXECUTE stmt4 USING @a; DEALLOCATE PREPARE stmt4; SELECT * FROM t4; c1 SELECT COUNT(c1) AS total_rows FROM t4; total_rows 0 SELECT COUNT(c1) AS positive_rows FROM t4 WHERE c1 > 0.0; positive_rows 0 SELECT COUNT(c1) AS negative_rows FROM t4 WHERE c1 < 0.0; negative_rows 0 SELECT COUNT(c1) AS zero_rows FROM t4 WHERE c1 = 0.0; zero_rows 0 DROP TABLE t4; CREATE TABLE t5(c1 FIXED(5,4) NOT NULL); PREPARE stmt5 FROM 'INSERT INTO t5 (c1) VALUES(?)'; SET @a=0; EXECUTE stmt5 USING @a; SET @a=1.0; EXECUTE stmt5 USING @a; SET @a=1.2345; EXECUTE stmt5 USING @a; SET @a=-9.0; EXECUTE stmt5 USING @a; SET @a=-9.12345; EXECUTE stmt5 USING @a; Warnings: Note 1265 Data truncated for column 'c1' at row 1 SELECT * FROM t5; c1 -9.0000 -9.1235 0.0000 1.0000 1.2345 SELECT COUNT(c1) AS positive_rows FROM t5 WHERE c1 > 0.0; positive_rows 2 SELECT COUNT(c1) AS negative_rows FROM t5 WHERE c1 < 0.0; negative_rows 2 SELECT COUNT(c1) AS zero_rows FROM t5 WHERE c1 = 0.0; zero_rows 1 DEALLOCATE PREPARE stmt5; PREPARE stmt5 FROM 'SELECT * FROM t5 WHERE c1 = ?'; SET @a=0; EXECUTE stmt5 USING @a; c1 0.0000 SET @a=1.0; EXECUTE stmt5 USING @a; c1 1.0000 SET @a=1.2345; EXECUTE stmt5 USING @a; c1 1.2345 SET @a=-9.0; EXECUTE stmt5 USING @a; c1 -9.0000 SET @a=-9.12345; EXECUTE stmt5 USING @a; c1 PREPARE stmt5 FROM 'UPDATE t5 SET c1 = ? WHERE c1 = ?'; SET @a=0; SET @b=1.0; EXECUTE stmt5 USING @a,@b; SET @a=1.0; SET @a=0; EXECUTE stmt5 USING @a,@b; SET @a=1.2345; SET @a=3.5432; EXECUTE stmt5 USING @a,@b; SET @a=-9.0; SET @a=-9.1; EXECUTE stmt5 USING @a,@b; SET @a=-9.12345; SET @a=-8.54321; EXECUTE stmt5 USING @a,@b; SELECT * FROM t5; c1 -9.0000 -9.1235 0.0000 0.0000 1.2345 SELECT COUNT(c1) AS positive_rows FROM t5 WHERE c1 > 0.0; positive_rows 1 SELECT COUNT(c1) AS negative_rows FROM t5 WHERE c1 < 0.0; negative_rows 2 SELECT COUNT(c1) AS zero_rows FROM t5 WHERE c1 = 0.0; zero_rows 2 DEALLOCATE PREPARE stmt5; PREPARE stmt5 FROM 'DELETE FROM t5 WHERE c1 = ?'; SET @a=0; EXECUTE stmt5 USING @a; SET @a=1.0; EXECUTE stmt5 USING @a; SET @a=1.2345; EXECUTE stmt5 USING @a; SET @a=-9.0; EXECUTE stmt5 USING @a; SET @a=-9.12345; EXECUTE stmt5 USING @a; SELECT * FROM t5; c1 -9.1235 SELECT COUNT(c1) AS positive_rows FROM t5 WHERE c1 > 0.0; positive_rows 0 SELECT COUNT(c1) AS negative_rows FROM t5 WHERE c1 < 0.0; negative_rows 1 SELECT COUNT(c1) AS zero_rows FROM t5 WHERE c1 = 0.0; zero_rows 0 DEALLOCATE PREPARE stmt5; DROP TABLE t5; CREATE TABLE t4(c1 NUMERIC(1,0) NOT NULL); PREPARE stmt4 FROM 'INSERT INTO t4 (c1) VALUES(?)'; SET @a=0; EXECUTE stmt4 USING @a; SET @a=1.0; EXECUTE stmt4 USING @a; SET @a=-9.0; EXECUTE stmt4 USING @a; DEALLOCATE PREPARE stmt4; SELECT * FROM t4; c1 -9 0 1 SELECT COUNT(c1) AS total_rows FROM t4; total_rows 3 SELECT COUNT(c1) AS positive_rows FROM t4 WHERE c1 > 0.0; positive_rows 1 SELECT COUNT(c1) AS negative_rows FROM t4 WHERE c1 < 0.0; negative_rows 1 SELECT COUNT(c1) AS zero_rows FROM t4 WHERE c1 = 0.0; zero_rows 1 PREPARE stmt4 FROM 'SELECT * FROM t4 WHERE c1 = ?'; SET @a=0; EXECUTE stmt4 USING @a; c1 0 SET @a=1.0; EXECUTE stmt4 USING @a; c1 1 SET @a=-9.0; EXECUTE stmt4 USING @a; c1 -9 DEALLOCATE PREPARE stmt4; PREPARE stmt4 FROM 'UPDATE t4 SET c1 = ? WHERE c1 = ?'; SET @a=0; SET @b=1.0; EXECUTE stmt4 USING @a,@b; SET @a=1.0; SET @b=0; EXECUTE stmt4 USING @a,@b; SET @a=-9.0; SET @b=7.0; EXECUTE stmt4 USING @a,@b; DEALLOCATE PREPARE stmt4; SELECT * FROM t4; c1 -9 1 1 SELECT COUNT(c1) AS total_rows FROM t4; total_rows 3 SELECT COUNT(c1) AS positive_rows FROM t4 WHERE c1 > 0.0; positive_rows 2 SELECT COUNT(c1) AS negative_rows FROM t4 WHERE c1 < 0.0; negative_rows 1 SELECT COUNT(c1) AS zero_rows FROM t4 WHERE c1 = 0.0; zero_rows 0 PREPARE stmt4 FROM 'DELETE FROM t4 WHERE c1 = ?'; SET @a=0; EXECUTE stmt4 USING @a; SET @a=1.0; EXECUTE stmt4 USING @a; SET @a=-9.0; EXECUTE stmt4 USING @a; DEALLOCATE PREPARE stmt4; SELECT * FROM t4; c1 SELECT COUNT(c1) AS total_rows FROM t4; total_rows 0 SELECT COUNT(c1) AS positive_rows FROM t4 WHERE c1 > 0.0; positive_rows 0 SELECT COUNT(c1) AS negative_rows FROM t4 WHERE c1 < 0.0; negative_rows 0 SELECT COUNT(c1) AS zero_rows FROM t4 WHERE c1 = 0.0; zero_rows 0 DROP TABLE t4; CREATE TABLE t5(c1 NUMERIC(5,4) NOT NULL); PREPARE stmt5 FROM 'INSERT INTO t5 (c1) VALUES(?)'; SET @a=0; EXECUTE stmt5 USING @a; SET @a=1.0; EXECUTE stmt5 USING @a; SET @a=1.2345; EXECUTE stmt5 USING @a; SET @a=-9.0; EXECUTE stmt5 USING @a; SET @a=-9.12345; EXECUTE stmt5 USING @a; Warnings: Note 1265 Data truncated for column 'c1' at row 1 SELECT * FROM t5; c1 -9.0000 -9.1235 0.0000 1.0000 1.2345 SELECT COUNT(c1) AS positive_rows FROM t5 WHERE c1 > 0.0; positive_rows 2 SELECT COUNT(c1) AS negative_rows FROM t5 WHERE c1 < 0.0; negative_rows 2 SELECT COUNT(c1) AS zero_rows FROM t5 WHERE c1 = 0.0; zero_rows 1 DEALLOCATE PREPARE stmt5; PREPARE stmt5 FROM 'SELECT * FROM t5 WHERE c1 = ?'; SET @a=0; EXECUTE stmt5 USING @a; c1 0.0000 SET @a=1.0; EXECUTE stmt5 USING @a; c1 1.0000 SET @a=1.2345; EXECUTE stmt5 USING @a; c1 1.2345 SET @a=-9.0; EXECUTE stmt5 USING @a; c1 -9.0000 SET @a=-9.12345; EXECUTE stmt5 USING @a; c1 PREPARE stmt5 FROM 'UPDATE t5 SET c1 = ? WHERE c1 = ?'; SET @a=0; SET @b=1.0; EXECUTE stmt5 USING @a,@b; SET @a=1.0; SET @a=0; EXECUTE stmt5 USING @a,@b; SET @a=1.2345; SET @a=3.5432; EXECUTE stmt5 USING @a,@b; SET @a=-9.0; SET @a=-9.1; EXECUTE stmt5 USING @a,@b; SET @a=-9.12345; SET @a=-8.54321; EXECUTE stmt5 USING @a,@b; SELECT * FROM t5; c1 -9.0000 -9.1235 0.0000 0.0000 1.2345 SELECT COUNT(c1) AS positive_rows FROM t5 WHERE c1 > 0.0; positive_rows 1 SELECT COUNT(c1) AS negative_rows FROM t5 WHERE c1 < 0.0; negative_rows 2 SELECT COUNT(c1) AS zero_rows FROM t5 WHERE c1 = 0.0; zero_rows 2 DEALLOCATE PREPARE stmt5; PREPARE stmt5 FROM 'DELETE FROM t5 WHERE c1 = ?'; SET @a=0; EXECUTE stmt5 USING @a; SET @a=1.0; EXECUTE stmt5 USING @a; SET @a=1.2345; EXECUTE stmt5 USING @a; SET @a=-9.0; EXECUTE stmt5 USING @a; SET @a=-9.12345; EXECUTE stmt5 USING @a; SELECT * FROM t5; c1 -9.1235 SELECT COUNT(c1) AS positive_rows FROM t5 WHERE c1 > 0.0; positive_rows 0 SELECT COUNT(c1) AS negative_rows FROM t5 WHERE c1 < 0.0; negative_rows 1 SELECT COUNT(c1) AS zero_rows FROM t5 WHERE c1 = 0.0; zero_rows 0 DEALLOCATE PREPARE stmt5; DROP TABLE t5; CREATE TABLE t4(c1 DOUBLE(1,0) NOT NULL); PREPARE stmt4 FROM 'INSERT INTO t4 (c1) VALUES(?)'; SET @a=0; EXECUTE stmt4 USING @a; SET @a=1.0; EXECUTE stmt4 USING @a; SET @a=-9.0; EXECUTE stmt4 USING @a; DEALLOCATE PREPARE stmt4; SELECT * FROM t4; c1 -9 0 1 SELECT COUNT(c1) AS total_rows FROM t4; total_rows 3 SELECT COUNT(c1) AS positive_rows FROM t4 WHERE c1 > 0.0; positive_rows 1 SELECT COUNT(c1) AS negative_rows FROM t4 WHERE c1 < 0.0; negative_rows 1 SELECT COUNT(c1) AS zero_rows FROM t4 WHERE c1 = 0.0; zero_rows 1 PREPARE stmt4 FROM 'SELECT * FROM t4 WHERE c1 = ?'; SET @a=0; EXECUTE stmt4 USING @a; c1 0 SET @a=1.0; EXECUTE stmt4 USING @a; c1 1 SET @a=-9.0; EXECUTE stmt4 USING @a; c1 -9 DEALLOCATE PREPARE stmt4; PREPARE stmt4 FROM 'UPDATE t4 SET c1 = ? WHERE c1 = ?'; SET @a=0; SET @b=1.0; EXECUTE stmt4 USING @a,@b; SET @a=1.0; SET @b=0; EXECUTE stmt4 USING @a,@b; SET @a=-9.0; SET @b=7.0; EXECUTE stmt4 USING @a,@b; DEALLOCATE PREPARE stmt4; SELECT * FROM t4; c1 -9 1 1 SELECT COUNT(c1) AS total_rows FROM t4; total_rows 3 SELECT COUNT(c1) AS positive_rows FROM t4 WHERE c1 > 0.0; positive_rows 2 SELECT COUNT(c1) AS negative_rows FROM t4 WHERE c1 < 0.0; negative_rows 1 SELECT COUNT(c1) AS zero_rows FROM t4 WHERE c1 = 0.0; zero_rows 0 PREPARE stmt4 FROM 'DELETE FROM t4 WHERE c1 = ?'; SET @a=0; EXECUTE stmt4 USING @a; SET @a=1.0; EXECUTE stmt4 USING @a; SET @a=-9.0; EXECUTE stmt4 USING @a; DEALLOCATE PREPARE stmt4; SELECT * FROM t4; c1 SELECT COUNT(c1) AS total_rows FROM t4; total_rows 0 SELECT COUNT(c1) AS positive_rows FROM t4 WHERE c1 > 0.0; positive_rows 0 SELECT COUNT(c1) AS negative_rows FROM t4 WHERE c1 < 0.0; negative_rows 0 SELECT COUNT(c1) AS zero_rows FROM t4 WHERE c1 = 0.0; zero_rows 0 DROP TABLE t4; CREATE TABLE t5(c1 DOUBLE(5,4) NOT NULL); PREPARE stmt5 FROM 'INSERT INTO t5 (c1) VALUES(?)'; SET @a=0; EXECUTE stmt5 USING @a; SET @a=1.0; EXECUTE stmt5 USING @a; SET @a=1.2345; EXECUTE stmt5 USING @a; SET @a=-9.0; EXECUTE stmt5 USING @a; SET @a=-9.12345; EXECUTE stmt5 USING @a; SELECT * FROM t5; c1 -9.0000 -9.1234 0.0000 1.0000 1.2345 SELECT COUNT(c1) AS positive_rows FROM t5 WHERE c1 > 0.0; positive_rows 2 SELECT COUNT(c1) AS negative_rows FROM t5 WHERE c1 < 0.0; negative_rows 2 SELECT COUNT(c1) AS zero_rows FROM t5 WHERE c1 = 0.0; zero_rows 1 DEALLOCATE PREPARE stmt5; PREPARE stmt5 FROM 'SELECT * FROM t5 WHERE c1 = ?'; SET @a=0; EXECUTE stmt5 USING @a; c1 0.0000 SET @a=1.0; EXECUTE stmt5 USING @a; c1 1.0000 SET @a=1.2345; EXECUTE stmt5 USING @a; c1 1.2345 SET @a=-9.0; EXECUTE stmt5 USING @a; c1 -9.0000 SET @a=-9.12345; EXECUTE stmt5 USING @a; c1 PREPARE stmt5 FROM 'UPDATE t5 SET c1 = ? WHERE c1 = ?'; SET @a=0; SET @b=1.0; EXECUTE stmt5 USING @a,@b; SET @a=1.0; SET @a=0; EXECUTE stmt5 USING @a,@b; SET @a=1.2345; SET @a=3.5432; EXECUTE stmt5 USING @a,@b; SET @a=-9.0; SET @a=-9.1; EXECUTE stmt5 USING @a,@b; SET @a=-9.12345; SET @a=-8.54321; EXECUTE stmt5 USING @a,@b; SELECT * FROM t5; c1 -9.0000 -9.1234 0.0000 0.0000 1.2345 SELECT COUNT(c1) AS positive_rows FROM t5 WHERE c1 > 0.0; positive_rows 1 SELECT COUNT(c1) AS negative_rows FROM t5 WHERE c1 < 0.0; negative_rows 2 SELECT COUNT(c1) AS zero_rows FROM t5 WHERE c1 = 0.0; zero_rows 2 DEALLOCATE PREPARE stmt5; PREPARE stmt5 FROM 'DELETE FROM t5 WHERE c1 = ?'; SET @a=0; EXECUTE stmt5 USING @a; SET @a=1.0; EXECUTE stmt5 USING @a; SET @a=1.2345; EXECUTE stmt5 USING @a; SET @a=-9.0; EXECUTE stmt5 USING @a; SET @a=-9.12345; EXECUTE stmt5 USING @a; SELECT * FROM t5; c1 -9.1234 SELECT COUNT(c1) AS positive_rows FROM t5 WHERE c1 > 0.0; positive_rows 0 SELECT COUNT(c1) AS negative_rows FROM t5 WHERE c1 < 0.0; negative_rows 1 SELECT COUNT(c1) AS zero_rows FROM t5 WHERE c1 = 0.0; zero_rows 0 DEALLOCATE PREPARE stmt5; DROP TABLE t5; CREATE TABLE t4(c1 REAL(1,0) NOT NULL); PREPARE stmt4 FROM 'INSERT INTO t4 (c1) VALUES(?)'; SET @a=0; EXECUTE stmt4 USING @a; SET @a=1.0; EXECUTE stmt4 USING @a; SET @a=-9.0; EXECUTE stmt4 USING @a; DEALLOCATE PREPARE stmt4; SELECT * FROM t4; c1 -9 0 1 SELECT COUNT(c1) AS total_rows FROM t4; total_rows 3 SELECT COUNT(c1) AS positive_rows FROM t4 WHERE c1 > 0.0; positive_rows 1 SELECT COUNT(c1) AS negative_rows FROM t4 WHERE c1 < 0.0; negative_rows 1 SELECT COUNT(c1) AS zero_rows FROM t4 WHERE c1 = 0.0; zero_rows 1 PREPARE stmt4 FROM 'SELECT * FROM t4 WHERE c1 = ?'; SET @a=0; EXECUTE stmt4 USING @a; c1 0 SET @a=1.0; EXECUTE stmt4 USING @a; c1 1 SET @a=-9.0; EXECUTE stmt4 USING @a; c1 -9 DEALLOCATE PREPARE stmt4; PREPARE stmt4 FROM 'UPDATE t4 SET c1 = ? WHERE c1 = ?'; SET @a=0; SET @b=1.0; EXECUTE stmt4 USING @a,@b; SET @a=1.0; SET @b=0; EXECUTE stmt4 USING @a,@b; SET @a=-9.0; SET @b=7.0; EXECUTE stmt4 USING @a,@b; DEALLOCATE PREPARE stmt4; SELECT * FROM t4; c1 -9 1 1 SELECT COUNT(c1) AS total_rows FROM t4; total_rows 3 SELECT COUNT(c1) AS positive_rows FROM t4 WHERE c1 > 0.0; positive_rows 2 SELECT COUNT(c1) AS negative_rows FROM t4 WHERE c1 < 0.0; negative_rows 1 SELECT COUNT(c1) AS zero_rows FROM t4 WHERE c1 = 0.0; zero_rows 0 PREPARE stmt4 FROM 'DELETE FROM t4 WHERE c1 = ?'; SET @a=0; EXECUTE stmt4 USING @a; SET @a=1.0; EXECUTE stmt4 USING @a; SET @a=-9.0; EXECUTE stmt4 USING @a; DEALLOCATE PREPARE stmt4; SELECT * FROM t4; c1 SELECT COUNT(c1) AS total_rows FROM t4; total_rows 0 SELECT COUNT(c1) AS positive_rows FROM t4 WHERE c1 > 0.0; positive_rows 0 SELECT COUNT(c1) AS negative_rows FROM t4 WHERE c1 < 0.0; negative_rows 0 SELECT COUNT(c1) AS zero_rows FROM t4 WHERE c1 = 0.0; zero_rows 0 DROP TABLE t4; CREATE TABLE t5(c1 REAL(5,4) NOT NULL); PREPARE stmt5 FROM 'INSERT INTO t5 (c1) VALUES(?)'; SET @a=0; EXECUTE stmt5 USING @a; SET @a=1.0; EXECUTE stmt5 USING @a; SET @a=1.2345; EXECUTE stmt5 USING @a; SET @a=-9.0; EXECUTE stmt5 USING @a; SET @a=-9.12345; EXECUTE stmt5 USING @a; SELECT * FROM t5; c1 -9.0000 -9.1234 0.0000 1.0000 1.2345 SELECT COUNT(c1) AS positive_rows FROM t5 WHERE c1 > 0.0; positive_rows 2 SELECT COUNT(c1) AS negative_rows FROM t5 WHERE c1 < 0.0; negative_rows 2 SELECT COUNT(c1) AS zero_rows FROM t5 WHERE c1 = 0.0; zero_rows 1 DEALLOCATE PREPARE stmt5; PREPARE stmt5 FROM 'SELECT * FROM t5 WHERE c1 = ?'; SET @a=0; EXECUTE stmt5 USING @a; c1 0.0000 SET @a=1.0; EXECUTE stmt5 USING @a; c1 1.0000 SET @a=1.2345; EXECUTE stmt5 USING @a; c1 1.2345 SET @a=-9.0; EXECUTE stmt5 USING @a; c1 -9.0000 SET @a=-9.12345; EXECUTE stmt5 USING @a; c1 PREPARE stmt5 FROM 'UPDATE t5 SET c1 = ? WHERE c1 = ?'; SET @a=0; SET @b=1.0; EXECUTE stmt5 USING @a,@b; SET @a=1.0; SET @a=0; EXECUTE stmt5 USING @a,@b; SET @a=1.2345; SET @a=3.5432; EXECUTE stmt5 USING @a,@b; SET @a=-9.0; SET @a=-9.1; EXECUTE stmt5 USING @a,@b; SET @a=-9.12345; SET @a=-8.54321; EXECUTE stmt5 USING @a,@b; SELECT * FROM t5; c1 -9.0000 -9.1234 0.0000 0.0000 1.2345 SELECT COUNT(c1) AS positive_rows FROM t5 WHERE c1 > 0.0; positive_rows 1 SELECT COUNT(c1) AS negative_rows FROM t5 WHERE c1 < 0.0; negative_rows 2 SELECT COUNT(c1) AS zero_rows FROM t5 WHERE c1 = 0.0; zero_rows 2 DEALLOCATE PREPARE stmt5; PREPARE stmt5 FROM 'DELETE FROM t5 WHERE c1 = ?'; SET @a=0; EXECUTE stmt5 USING @a; SET @a=1.0; EXECUTE stmt5 USING @a; SET @a=1.2345; EXECUTE stmt5 USING @a; SET @a=-9.0; EXECUTE stmt5 USING @a; SET @a=-9.12345; EXECUTE stmt5 USING @a; SELECT * FROM t5; c1 -9.1234 SELECT COUNT(c1) AS positive_rows FROM t5 WHERE c1 > 0.0; positive_rows 0 SELECT COUNT(c1) AS negative_rows FROM t5 WHERE c1 < 0.0; negative_rows 1 SELECT COUNT(c1) AS zero_rows FROM t5 WHERE c1 = 0.0; zero_rows 0 DEALLOCATE PREPARE stmt5; DROP TABLE t5; CREATE TABLE t4(c1 DOUBLE PRECISION(1,0) NOT NULL); PREPARE stmt4 FROM 'INSERT INTO t4 (c1) VALUES(?)'; SET @a=0; EXECUTE stmt4 USING @a; SET @a=1.0; EXECUTE stmt4 USING @a; SET @a=-9.0; EXECUTE stmt4 USING @a; DEALLOCATE PREPARE stmt4; SELECT * FROM t4; c1 -9 0 1 SELECT COUNT(c1) AS total_rows FROM t4; total_rows 3 SELECT COUNT(c1) AS positive_rows FROM t4 WHERE c1 > 0.0; positive_rows 1 SELECT COUNT(c1) AS negative_rows FROM t4 WHERE c1 < 0.0; negative_rows 1 SELECT COUNT(c1) AS zero_rows FROM t4 WHERE c1 = 0.0; zero_rows 1 PREPARE stmt4 FROM 'SELECT * FROM t4 WHERE c1 = ?'; SET @a=0; EXECUTE stmt4 USING @a; c1 0 SET @a=1.0; EXECUTE stmt4 USING @a; c1 1 SET @a=-9.0; EXECUTE stmt4 USING @a; c1 -9 DEALLOCATE PREPARE stmt4; PREPARE stmt4 FROM 'UPDATE t4 SET c1 = ? WHERE c1 = ?'; SET @a=0; SET @b=1.0; EXECUTE stmt4 USING @a,@b; SET @a=1.0; SET @b=0; EXECUTE stmt4 USING @a,@b; SET @a=-9.0; SET @b=7.0; EXECUTE stmt4 USING @a,@b; DEALLOCATE PREPARE stmt4; SELECT * FROM t4; c1 -9 1 1 SELECT COUNT(c1) AS total_rows FROM t4; total_rows 3 SELECT COUNT(c1) AS positive_rows FROM t4 WHERE c1 > 0.0; positive_rows 2 SELECT COUNT(c1) AS negative_rows FROM t4 WHERE c1 < 0.0; negative_rows 1 SELECT COUNT(c1) AS zero_rows FROM t4 WHERE c1 = 0.0; zero_rows 0 PREPARE stmt4 FROM 'DELETE FROM t4 WHERE c1 = ?'; SET @a=0; EXECUTE stmt4 USING @a; SET @a=1.0; EXECUTE stmt4 USING @a; SET @a=-9.0; EXECUTE stmt4 USING @a; DEALLOCATE PREPARE stmt4; SELECT * FROM t4; c1 SELECT COUNT(c1) AS total_rows FROM t4; total_rows 0 SELECT COUNT(c1) AS positive_rows FROM t4 WHERE c1 > 0.0; positive_rows 0 SELECT COUNT(c1) AS negative_rows FROM t4 WHERE c1 < 0.0; negative_rows 0 SELECT COUNT(c1) AS zero_rows FROM t4 WHERE c1 = 0.0; zero_rows 0 DROP TABLE t4; CREATE TABLE t5(c1 DOUBLE PRECISION(5,4) NOT NULL); PREPARE stmt5 FROM 'INSERT INTO t5 (c1) VALUES(?)'; SET @a=0; EXECUTE stmt5 USING @a; SET @a=1.0; EXECUTE stmt5 USING @a; SET @a=1.2345; EXECUTE stmt5 USING @a; SET @a=-9.0; EXECUTE stmt5 USING @a; SET @a=-9.12345; EXECUTE stmt5 USING @a; SELECT * FROM t5; c1 -9.0000 -9.1234 0.0000 1.0000 1.2345 SELECT COUNT(c1) AS positive_rows FROM t5 WHERE c1 > 0.0; positive_rows 2 SELECT COUNT(c1) AS negative_rows FROM t5 WHERE c1 < 0.0; negative_rows 2 SELECT COUNT(c1) AS zero_rows FROM t5 WHERE c1 = 0.0; zero_rows 1 DEALLOCATE PREPARE stmt5; PREPARE stmt5 FROM 'SELECT * FROM t5 WHERE c1 = ?'; SET @a=0; EXECUTE stmt5 USING @a; c1 0.0000 SET @a=1.0; EXECUTE stmt5 USING @a; c1 1.0000 SET @a=1.2345; EXECUTE stmt5 USING @a; c1 1.2345 SET @a=-9.0; EXECUTE stmt5 USING @a; c1 -9.0000 SET @a=-9.12345; EXECUTE stmt5 USING @a; c1 PREPARE stmt5 FROM 'UPDATE t5 SET c1 = ? WHERE c1 = ?'; SET @a=0; SET @b=1.0; EXECUTE stmt5 USING @a,@b; SET @a=1.0; SET @a=0; EXECUTE stmt5 USING @a,@b; SET @a=1.2345; SET @a=3.5432; EXECUTE stmt5 USING @a,@b; SET @a=-9.0; SET @a=-9.1; EXECUTE stmt5 USING @a,@b; SET @a=-9.12345; SET @a=-8.54321; EXECUTE stmt5 USING @a,@b; SELECT * FROM t5; c1 -9.0000 -9.1234 0.0000 0.0000 1.2345 SELECT COUNT(c1) AS positive_rows FROM t5 WHERE c1 > 0.0; positive_rows 1 SELECT COUNT(c1) AS negative_rows FROM t5 WHERE c1 < 0.0; negative_rows 2 SELECT COUNT(c1) AS zero_rows FROM t5 WHERE c1 = 0.0; zero_rows 2 DEALLOCATE PREPARE stmt5; PREPARE stmt5 FROM 'DELETE FROM t5 WHERE c1 = ?'; SET @a=0; EXECUTE stmt5 USING @a; SET @a=1.0; EXECUTE stmt5 USING @a; SET @a=1.2345; EXECUTE stmt5 USING @a; SET @a=-9.0; EXECUTE stmt5 USING @a; SET @a=-9.12345; EXECUTE stmt5 USING @a; SELECT * FROM t5; c1 -9.1234 SELECT COUNT(c1) AS positive_rows FROM t5 WHERE c1 > 0.0; positive_rows 0 SELECT COUNT(c1) AS negative_rows FROM t5 WHERE c1 < 0.0; negative_rows 1 SELECT COUNT(c1) AS zero_rows FROM t5 WHERE c1 = 0.0; zero_rows 0 DEALLOCATE PREPARE stmt5; DROP TABLE t5; CREATE TABLE t4(c1 FLOAT(1,0) NOT NULL); PREPARE stmt4 FROM 'INSERT INTO t4 (c1) VALUES(?)'; SET @a=0; EXECUTE stmt4 USING @a; SET @a=1.0; EXECUTE stmt4 USING @a; SET @a=-9.0; EXECUTE stmt4 USING @a; DEALLOCATE PREPARE stmt4; SELECT * FROM t4; c1 -9 0 1 SELECT COUNT(c1) AS total_rows FROM t4; total_rows 3 SELECT COUNT(c1) AS positive_rows FROM t4 WHERE c1 > 0.0; positive_rows 1 SELECT COUNT(c1) AS negative_rows FROM t4 WHERE c1 < 0.0; negative_rows 1 SELECT COUNT(c1) AS zero_rows FROM t4 WHERE c1 = 0.0; zero_rows 1 PREPARE stmt4 FROM 'SELECT * FROM t4 WHERE c1 = ?'; SET @a=0; EXECUTE stmt4 USING @a; c1 0 SET @a=1.0; EXECUTE stmt4 USING @a; c1 1 SET @a=-9.0; EXECUTE stmt4 USING @a; c1 -9 DEALLOCATE PREPARE stmt4; PREPARE stmt4 FROM 'UPDATE t4 SET c1 = ? WHERE c1 = ?'; SET @a=0; SET @b=1.0; EXECUTE stmt4 USING @a,@b; SET @a=1.0; SET @b=0; EXECUTE stmt4 USING @a,@b; SET @a=-9.0; SET @b=7.0; EXECUTE stmt4 USING @a,@b; DEALLOCATE PREPARE stmt4; SELECT * FROM t4; c1 -9 1 1 SELECT COUNT(c1) AS total_rows FROM t4; total_rows 3 SELECT COUNT(c1) AS positive_rows FROM t4 WHERE c1 > 0.0; positive_rows 2 SELECT COUNT(c1) AS negative_rows FROM t4 WHERE c1 < 0.0; negative_rows 1 SELECT COUNT(c1) AS zero_rows FROM t4 WHERE c1 = 0.0; zero_rows 0 PREPARE stmt4 FROM 'DELETE FROM t4 WHERE c1 = ?'; SET @a=0; EXECUTE stmt4 USING @a; SET @a=1.0; EXECUTE stmt4 USING @a; SET @a=-9.0; EXECUTE stmt4 USING @a; DEALLOCATE PREPARE stmt4; SELECT * FROM t4; c1 SELECT COUNT(c1) AS total_rows FROM t4; total_rows 0 SELECT COUNT(c1) AS positive_rows FROM t4 WHERE c1 > 0.0; positive_rows 0 SELECT COUNT(c1) AS negative_rows FROM t4 WHERE c1 < 0.0; negative_rows 0 SELECT COUNT(c1) AS zero_rows FROM t4 WHERE c1 = 0.0; zero_rows 0 DROP TABLE t4; CREATE TABLE t5(c1 FLOAT(5,4) NOT NULL); PREPARE stmt5 FROM 'INSERT INTO t5 (c1) VALUES(?)'; SET @a=0; EXECUTE stmt5 USING @a; SET @a=1.0; EXECUTE stmt5 USING @a; SET @a=1.2345; EXECUTE stmt5 USING @a; SET @a=-9.0; EXECUTE stmt5 USING @a; SET @a=-9.12345; EXECUTE stmt5 USING @a; SELECT * FROM t5; c1 -9.0000 -9.1234 0.0000 1.0000 1.2345 SELECT COUNT(c1) AS positive_rows FROM t5 WHERE c1 > 0.0; positive_rows 2 SELECT COUNT(c1) AS negative_rows FROM t5 WHERE c1 < 0.0; negative_rows 2 SELECT COUNT(c1) AS zero_rows FROM t5 WHERE c1 = 0.0; zero_rows 1 DEALLOCATE PREPARE stmt5; PREPARE stmt5 FROM 'SELECT * FROM t5 WHERE c1 = ?'; SET @a=0; EXECUTE stmt5 USING @a; c1 0.0000 SET @a=1.0; EXECUTE stmt5 USING @a; c1 1.0000 SET @a=1.2345; EXECUTE stmt5 USING @a; c1 1.2345 SET @a=-9.0; EXECUTE stmt5 USING @a; c1 -9.0000 SET @a=-9.12345; EXECUTE stmt5 USING @a; c1 PREPARE stmt5 FROM 'UPDATE t5 SET c1 = ? WHERE c1 = ?'; SET @a=0; SET @b=1.0; EXECUTE stmt5 USING @a,@b; SET @a=1.0; SET @a=0; EXECUTE stmt5 USING @a,@b; SET @a=1.2345; SET @a=3.5432; EXECUTE stmt5 USING @a,@b; SET @a=-9.0; SET @a=-9.1; EXECUTE stmt5 USING @a,@b; SET @a=-9.12345; SET @a=-8.54321; EXECUTE stmt5 USING @a,@b; SELECT * FROM t5; c1 -9.0000 -9.1234 0.0000 0.0000 1.2345 SELECT COUNT(c1) AS positive_rows FROM t5 WHERE c1 > 0.0; positive_rows 1 SELECT COUNT(c1) AS negative_rows FROM t5 WHERE c1 < 0.0; negative_rows 2 SELECT COUNT(c1) AS zero_rows FROM t5 WHERE c1 = 0.0; zero_rows 2 DEALLOCATE PREPARE stmt5; PREPARE stmt5 FROM 'DELETE FROM t5 WHERE c1 = ?'; SET @a=0; EXECUTE stmt5 USING @a; SET @a=1.0; EXECUTE stmt5 USING @a; SET @a=1.2345; EXECUTE stmt5 USING @a; SET @a=-9.0; EXECUTE stmt5 USING @a; SET @a=-9.12345; EXECUTE stmt5 USING @a; SELECT * FROM t5; c1 -9.1234 SELECT COUNT(c1) AS positive_rows FROM t5 WHERE c1 > 0.0; positive_rows 0 SELECT COUNT(c1) AS negative_rows FROM t5 WHERE c1 < 0.0; negative_rows 1 SELECT COUNT(c1) AS zero_rows FROM t5 WHERE c1 = 0.0; zero_rows 0 DEALLOCATE PREPARE stmt5; DROP TABLE t5;