Details
-
Bug
-
Status: Closed (View Workflow)
-
Blocker
-
Resolution: Fixed
-
10.4.3
-
None
-
All
Description
|
#
|
#MDEV-18922 Alter on long unique varchar column makes result null |
#
|
CREATE TABLE t1 (b int, a varchar(4000)); |
INSERT INTO t1 VALUES (1, 2),(2,3),(3,4); |
ALTER TABLE t1 ADD UNIQUE INDEX (a); |
SELECT * FROM t1; |
SELECT a FROM t1; |
drop table t1; |
|
|
Result
CREATE TABLE t1 (b int, a varchar(4000)); |
INSERT INTO t1 VALUES (1, 2),(2,3),(3,4); |
ALTER TABLE t1 ADD UNIQUE INDEX (a); |
SELECT * FROM t1; |
b a
|
1 2
|
2 3
|
3 4
|
SELECT a FROM t1; |
a
|
NULL
|
NULL
|
NULL
|
drop table t1; |
|
Attachments
Issue Links
- causes
-
MDEV-18941 HEAP index is no longer used
- Closed
- is caused by
-
MDEV-371 Unique indexes for blobs
- Closed
- is part of
-
MDEV-18901 Wrong results after ADD UNIQUE INDEX(blob_column)
- Closed