mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Merge mskold@bk-internal.mysql.com:/home/bk/mysql-4.1
into mysql.com:/usr/local/home/marty/MySQL/mysql-4.1
This commit is contained in:
@ -253,9 +253,9 @@ insert into t2 values (3, 1, 'xxbuz');
|
||||
select * from t1 join t2 using(`t1_id`) where match (t1.name, t2.name) against('xxfoo' in boolean mode);
|
||||
|
||||
#
|
||||
# bug with many short (< ft_min_word_len) words in boolean search
|
||||
# Bug #7858: bug with many short (< ft_min_word_len) words in boolean search
|
||||
#
|
||||
select * from t2 where match name against ('a* b* c* d* e* f*' in boolean mode);
|
||||
select * from t2 where match name against ('*a*b*c*d*e*f*' in boolean mode);
|
||||
drop table t1,t2;
|
||||
|
||||
#
|
||||
|
@ -1,3 +1,4 @@
|
||||
|
||||
# Initialise
|
||||
--disable_warnings
|
||||
drop table if exists t1,t2,t3;
|
||||
@ -524,7 +525,7 @@ select min(b) from t1;
|
||||
drop table t1;
|
||||
|
||||
#
|
||||
# Test for bug #11088: GROUP BY a BLOB colimn with COUNT(DISTINCT column1)
|
||||
# Test for bug #11088: GROUP BY a BLOB column with COUNT(DISTINCT column1)
|
||||
#
|
||||
|
||||
CREATE TABLE t1 (id int PRIMARY KEY, user_id int, hostname longtext);
|
||||
@ -539,3 +540,28 @@ SELECT hostname, COUNT(DISTINCT user_id) as no FROM t1
|
||||
WHERE hostname LIKE '%aol%'
|
||||
GROUP BY hostname;
|
||||
|
||||
DROP TABLE t1;
|
||||
|
||||
#
|
||||
# Test for bug #8614: GROUP BY 'const' with DISTINCT
|
||||
#
|
||||
|
||||
CREATE TABLE t1 (a int, b int);
|
||||
INSERT INTO t1 VALUES (1,2), (1,3);
|
||||
SELECT a, b FROM t1 GROUP BY 'const';
|
||||
SELECT DISTINCT a, b FROM t1 GROUP BY 'const';
|
||||
|
||||
DROP TABLE t1;
|
||||
|
||||
#
|
||||
# Test for bug #11385: GROUP BY for datetime converted to decimals
|
||||
#
|
||||
|
||||
CREATE TABLE t1 (id INT, dt DATETIME);
|
||||
INSERT INTO t1 VALUES ( 1, '2005-05-01 12:30:00' );
|
||||
INSERT INTO t1 VALUES ( 1, '2005-05-01 12:30:00' );
|
||||
INSERT INTO t1 VALUES ( 1, '2005-05-01 12:30:00' );
|
||||
INSERT INTO t1 VALUES ( 1, '2005-05-01 12:30:00' );
|
||||
SELECT dt DIV 1 AS f, id FROM t1 GROUP BY f;
|
||||
|
||||
DROP TABLE t1;
|
||||
|
Reference in New Issue
Block a user