mirror of
https://github.com/MariaDB/server.git
synced 2025-09-11 05:52:26 +03:00
Fix bug in CONCAT_WS()
Update of glibc patch from MySQL 4.0 Docs/glibc-2.2.5.patch: Update of patch from MySQL 4.0 Docs/manual.texi: ChangeLog sql/item_strfunc.cc: Fix bug in CONCAT_WS() sql/share/italian/errmsg.txt: Update of new error messages
This commit is contained in:
24
mysql-test/t/func_concat.test
Normal file
24
mysql-test/t/func_concat.test
Normal file
@@ -0,0 +1,24 @@
|
||||
#
|
||||
# Test of problem with CONCAT_WS() and long separators.
|
||||
#
|
||||
|
||||
DROP TABLE IF EXISTS t1;
|
||||
CREATE TABLE t1 ( number INT NOT NULL, alpha CHAR(6) NOT NULL );
|
||||
INSERT INTO t1 VALUES (1413006,'idlfmv'),
|
||||
(1413065,'smpsfz'),(1413127,'sljrhx'),(1413304,'qerfnd');
|
||||
|
||||
SELECT number, alpha, CONCAT_WS('<---->',number,alpha) AS new
|
||||
FROM t1 GROUP BY number;
|
||||
|
||||
SELECT CONCAT_WS('<---->',number,alpha) AS new
|
||||
FROM t1 GROUP BY new LIMIT 1;
|
||||
|
||||
SELECT number, alpha, CONCAT_WS('<->',number,alpha) AS new
|
||||
FROM t1 GROUP BY new LIMIT 1;
|
||||
|
||||
SELECT number, alpha, CONCAT_WS('-',number,alpha,alpha,alpha,alpha,alpha,alpha,alpha) AS new
|
||||
FROM t1 GROUP BY new LIMIT 1;
|
||||
|
||||
SELECT number, alpha, CONCAT_WS('<------------------>',number,alpha) AS new
|
||||
FROM t1 GROUP BY new LIMIT 1;
|
||||
drop table t1;
|
Reference in New Issue
Block a user