You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-11-03 17:13:17 +03:00
fix(mtr): lowercase database name
This commit is contained in:
committed by
Aleksei Bukhalov
parent
45fecde902
commit
11d5815e79
@@ -1,9 +1,9 @@
|
||||
DROP DATABASE IF EXISTS JSON_type;
|
||||
CREATE DATABASE JSON_type;
|
||||
USE JSON_type;
|
||||
DROP DATABASE IF EXISTS json_type;
|
||||
CREATE DATABASE json_type;
|
||||
USE json_type;
|
||||
CREATE TABLE tj(j JSON) ENGINE=COLUMNSTORE;
|
||||
INSERT INTO tj(j) VALUES ('()');
|
||||
ERROR 23000: CONSTRAINT `tj.j` failed for `JSON_type`.`tj`
|
||||
ERROR 23000: CONSTRAINT `tj.j` failed for `json_type`.`tj`
|
||||
INSERT INTO tj(j) VALUES ('[]'), ('{}'), ('"a"');
|
||||
SELECT * FROM tj WHERE j = '"A"';
|
||||
j
|
||||
@@ -13,4 +13,4 @@ j
|
||||
INSERT INTO tj(j) VALUES ('{"a":"b", "b":"a"}');
|
||||
SELECT * FROM tj WHERE j = '{"b":"a","a":"b"}';
|
||||
j
|
||||
DROP DATABASE JSON_type;
|
||||
DROP DATABASE json_type;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
--disable_warnings
|
||||
DROP DATABASE IF EXISTS JSON_type;
|
||||
DROP DATABASE IF EXISTS json_type;
|
||||
--enable_warnings
|
||||
CREATE DATABASE JSON_type;
|
||||
USE JSON_type;
|
||||
CREATE DATABASE json_type;
|
||||
USE json_type;
|
||||
CREATE TABLE tj(j JSON) ENGINE=COLUMNSTORE;
|
||||
--error 4025
|
||||
INSERT INTO tj(j) VALUES ('()'); # invalid
|
||||
@@ -13,5 +13,5 @@ INSERT INTO tj(j) VALUES ('{"a":"b", "b":"a"}');
|
||||
SELECT * FROM tj WHERE j = '{"b":"a","a":"b"}'; # empty set, comparison is not structural.
|
||||
# UPDATE is not tested because it does not work.
|
||||
#UPDATE tj SET j = CONCAT(j,'()');
|
||||
DROP DATABASE JSON_type;
|
||||
DROP DATABASE json_type;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user