1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-30 14:21:11 +03:00
Files
mariadb-columnstore-engine/mysql-test/columnstore/devregression/t/mcs7212_regression_MCOL-2139.test
Daniel Lee 4c9d6e39ac Dlee mtr restructure (#2494)
* Restructured test suites and added autopilot and extended suites

* Updated autopilot with correct branch - develop

* Moved setup test case to a 'setup' directory, for consistency

* Fixed a path issue

* Updated some tests cases to keep up with development

Co-authored-by: root <root@rocky8.localdomain>
2022-08-09 21:20:56 +03:00

28 lines
1.2 KiB
Plaintext

# -------------------------------------------------------------- #
# Test case migrated from regression test suite: MCOL-2139.sql
#
# Author: Daniel Lee, daniel.lee@mariadb.com
# -------------------------------------------------------------- #
#
--source ../include/have_columnstore.inc
#
USE tpch1;
#
--disable_warnings
drop table if exists dairy_collection_animal;
drop view if exists dairy_collection_view;
--enable_warnings
create table dairy_collection_animal (collection_id int(11), animal_id varchar(18), cdcb_verified tinyint(4)) engine = columnstore;
insert into dairy_collection_animal values (1, '1', 1), (2, '2', 2);
create algorithm = undefined view dairy_collection_view as select a.collection_id as collection_id, a.animal_id as animal_id, a.cdcb_verified as cdcb_verified from dairy_collection_animal a;
select * from dairy_collection_animal;
select * from dairy_collection_view;
update dairy_collection_animal a, (select collection_id from dairy_collection_view where collection_id = 2)b set a.animal_id = '4' where a.collection_id = b.collection_id;
select * from dairy_collection_animal;
select * from dairy_collection_view;
drop table dairy_collection_animal;
drop view dairy_collection_view;
#