[BUGFIX]fix repeat text type

This commit is contained in:
skylhd
2023-06-15 03:54:00 +00:00
committed by ob-robot
parent 2d00d761eb
commit e3165df6d4
3 changed files with 24 additions and 3 deletions

View File

@ -96,3 +96,13 @@ desc t2;
| repeat('a',65536) | longtext | YES | | NULL | |
+-------------------+--------------+------+-----+---------+-------+
drop table t2;
create table t2(c1 text, c2 mediumtext, c3 longtext);
insert into t2 values('a','b','c');
select repeat(c1, 10),repeat(c2,10),repeat(c3,10) from t2;
+----------------+---------------+---------------+
| repeat(c1, 10) | repeat(c2,10) | repeat(c3,10) |
+----------------+---------------+---------------+
| aaaaaaaaaa | bbbbbbbbbb | cccccccccc |
+----------------+---------------+---------------+
drop table t2;

View File

@ -41,5 +41,10 @@ drop table t2;
--enable_warnings
create table t2(c1 text, c2 mediumtext, c3 longtext);
insert into t2 values('a','b','c');
select repeat(c1, 10),repeat(c2,10),repeat(c3,10) from t2;
drop table t2;
connection syscon;
--sleep 2