mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-20292 REPEAT(x,-1) returns a wrong data type
This commit is contained in:
@ -5068,5 +5068,21 @@ NULL
|
||||
|
||||
DROP TABLE t1;
|
||||
#
|
||||
# MDEV-20292 REPEAT(x,-1) returns a wrong data type
|
||||
#
|
||||
CREATE OR REPLACE TABLE t1 (i BIGINT);
|
||||
INSERT INTO t1 VALUES (42);
|
||||
CREATE OR REPLACE TABLE t2 AS SELECT
|
||||
REPEAT(i,0) AS c0,
|
||||
REPEAT(i,-1) AS c1
|
||||
FROM t1;
|
||||
SHOW CREATE TABLE t2;
|
||||
Table Create Table
|
||||
t2 CREATE TABLE `t2` (
|
||||
`c0` char(0) CHARACTER SET utf8 DEFAULT NULL,
|
||||
`c1` char(0) CHARACTER SET utf8 DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
DROP TABLE t1, t2;
|
||||
#
|
||||
# End of 10.3 tests
|
||||
#
|
||||
|
Reference in New Issue
Block a user