You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-29 08:21:15 +03:00
MCOL-4674 Fix ColumnStore to run MTR tests in a build directory
This commit is contained in:
51
mysql-test/columnstore/basic/r/mcs82_update_join.result
Normal file
51
mysql-test/columnstore/basic/r/mcs82_update_join.result
Normal file
@ -0,0 +1,51 @@
|
||||
DROP DATABASE IF EXISTS mcs82_db;
|
||||
CREATE DATABASE mcs82_db;
|
||||
USE mcs82_db;
|
||||
CREATE TABLE t1 (t1_int INT, t1_char CHAR(5))ENGINE=Columnstore;
|
||||
CREATE TABLE t2 (t2_int INT, t2_char CHAR(5))ENGINE=Columnstore;
|
||||
INSERT INTO t1 VALUES (NULL, ''),(1, 'aaa'),(2, 'bbb'),(3, 'ccc'),(4, 'ddd'),(5, 'aa'),(6, ''),(7, 'aaaaa');
|
||||
INSERT INTO t2 VALUES (NULL, ''),(1, 'hhhh'),(3, 'iii'),(5, 'jjj'),(6, ''),(7, 'lll'),(9, 'm'),(11, 'nnn');
|
||||
SELECT * FROM t1 ORDER BY t1_int;
|
||||
t1_int t1_char
|
||||
NULL NULL
|
||||
1 aaa
|
||||
2 bbb
|
||||
3 ccc
|
||||
4 ddd
|
||||
5 aa
|
||||
6 NULL
|
||||
7 aaaaa
|
||||
UPDATE t1 JOIN t2 on t1.t1_int=t2.t2_int SET t1.t1_char='sssss';
|
||||
SELECT * FROM t1 ORDER BY t1_int;
|
||||
t1_int t1_char
|
||||
NULL NULL
|
||||
1 sssss
|
||||
2 bbb
|
||||
3 sssss
|
||||
4 ddd
|
||||
5 sssss
|
||||
6 sssss
|
||||
7 sssss
|
||||
UPDATE t1 INNER JOIN t2 on t1.t1_int=t2.t2_int SET t1.t1_char='pqrs' WHERE t1_char LIKE '%a%';
|
||||
SELECT * FROM t1 ORDER BY t1_int;
|
||||
t1_int t1_char
|
||||
NULL NULL
|
||||
1 sssss
|
||||
2 bbb
|
||||
3 sssss
|
||||
4 ddd
|
||||
5 sssss
|
||||
6 sssss
|
||||
7 sssss
|
||||
UPDATE t2 LEFT JOIN t1 on t1.t1_int=t2.t2_int SET t1.t1_char='xyz' WHERE t1_char is NULL;
|
||||
SELECT * FROM t2 ORDER BY t2_int;
|
||||
t2_int t2_char
|
||||
NULL NULL
|
||||
1 hhhh
|
||||
3 iii
|
||||
5 jjj
|
||||
6 NULL
|
||||
7 lll
|
||||
9 m
|
||||
11 nnn
|
||||
DROP DATABASE mcs82_db;
|
Reference in New Issue
Block a user