mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 20:42:30 +01:00
a34e76c66a
Fixed bug in new code for regexp LIKE NULL BUILD/SETUP.sh: Fixes for gcc 3.1 BUILD/compile-solaris-sparc-debug: Fixes for gcc 3.1 BUILD/compile-solaris-sparc-purify: Fixes for gcc 3.1 BUILD/compile-solaris-sparc: Fixes for gcc 3.1 Docs/manual.texi: Fixed typo include/violite.h: Fixes for gcc 3.1 mysql-test/r/func_concat.result: Updated test results sql/item_cmpfunc.cc: Fixed bug in new code for regexp LIKE NULL
28 lines
1 KiB
Text
28 lines
1 KiB
Text
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;
|
|
number alpha new
|
|
1413006 idlfmv 1413006<---->idlfmv
|
|
1413065 smpsfz 1413065<---->smpsfz
|
|
1413127 sljrhx 1413127<---->sljrhx
|
|
1413304 qerfnd 1413304<---->qerfnd
|
|
SELECT CONCAT_WS('<---->',number,alpha) AS new
|
|
FROM t1 GROUP BY new LIMIT 1;
|
|
new
|
|
1413006<---->idlfmv
|
|
SELECT number, alpha, CONCAT_WS('<->',number,alpha) AS new
|
|
FROM t1 GROUP BY new LIMIT 1;
|
|
number alpha new
|
|
1413006 idlfmv 1413006<->idlfmv
|
|
SELECT number, alpha, CONCAT_WS('-',number,alpha,alpha,alpha,alpha,alpha,alpha,alpha) AS new
|
|
FROM t1 GROUP BY new LIMIT 1;
|
|
number alpha new
|
|
1413006 idlfmv 1413006-idlfmv-idlfmv-idlfmv-idlfmv-idlfmv-idlfmv-idlfmv
|
|
SELECT number, alpha, CONCAT_WS('<------------------>',number,alpha) AS new
|
|
FROM t1 GROUP BY new LIMIT 1;
|
|
number alpha new
|
|
1413006 idlfmv 1413006<------------------>idlfmv
|
|
drop table t1;
|