You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-11-27 08:21:15 +03:00
44 lines
844 B
Plaintext
44 lines
844 B
Plaintext
#
|
|
# Some negative UPDATE statements #
|
|
# Author: Susil, susil.behera@mariadb.com
|
|
#
|
|
-- source ../include/have_columnstore.inc
|
|
#
|
|
--disable_warnings
|
|
DROP DATABASE IF EXISTS mcs31_db1;
|
|
--enable_warnings
|
|
|
|
CREATE DATABASE mcs31_db1;
|
|
USE mcs31_db1;
|
|
|
|
DROP TABLE IF EXISTS t1;
|
|
CREATE TABLE t1 (a INT NOT NULL, b INT) ENGINE=Columnstore;
|
|
INSERT INTO t1 VALUES (1,1),(1,2),(1,3),(3,1),(3,2);
|
|
CREATE table t2 LIKE t1;
|
|
|
|
--error 1054
|
|
UPDATE t1 SET nonexistingColumn = 1;
|
|
|
|
#BUG<ID>
|
|
#Getting wrong error
|
|
#--error 1054
|
|
#UPDATE t1 SET a = 5, SET nonexistingColumn = 1;
|
|
|
|
--error 1054
|
|
UPDATE t2 SET a = (SELECT nonexistingColumn FROM t1);
|
|
|
|
--error 1815
|
|
UPDATE t1 SET a = NULL;
|
|
|
|
--error 1815
|
|
UPDATE t1 SET a = NULL, b =1;
|
|
|
|
--error 1064
|
|
UPDATE t1 SET a = ;
|
|
|
|
SELECT * FROm t1 ORDER BY a;
|
|
SELECT * FROm t2 ORDER BY a;
|
|
|
|
# Clean up
|
|
DROP DATABASE IF EXISTS mcs31_db1;
|