mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Merge branch '10.4' into 10.5
This commit is contained in:
@@ -2093,6 +2093,24 @@ SELECT c1 FROM t2;
|
||||
DROP TABLE t1, t2;
|
||||
|
||||
|
||||
--echo #
|
||||
--echo # MDEV-25560 Creating table with certain generated column crashes server
|
||||
--echo #
|
||||
|
||||
CREATE TABLE t1 (i int, b int AS (RPAD(123,1)) stored);
|
||||
|
||||
--echo # Original case from the reporter
|
||||
--error ER_GENERATED_COLUMN_FUNCTION_IS_NOT_ALLOWED
|
||||
CREATE TABLE crash_test_2 (
|
||||
DATA_VALUE CHAR(10) NULL,
|
||||
HAS_DATA BIT NOT NULL,
|
||||
TEST_COLUMN CHAR(10) AS (RPAD(CASE WHEN HAS_DATA = 1
|
||||
THEN DATA_VALUE ELSE NULL END, 10)) STORED);
|
||||
|
||||
--echo # Cleanup
|
||||
DROP TABLE t1;
|
||||
|
||||
|
||||
--echo #
|
||||
--echo # End of 10.3 tests
|
||||
--echo #
|
||||
|
Reference in New Issue
Block a user