Details
-
Bug
-
Status: Closed (View Workflow)
-
Critical
-
Resolution: Fixed
-
N/A
-
None
Description
--source include/have_innodb.inc
|
|
--let $datadir= `select @@datadir`
|
|
CREATE TABLE t (a INT) ENGINE=InnoDB; |
INSERT INTO t VALUES (1); |
|
--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD
|
ALTER TABLE t ADD v BLOB NOT NULL, ADD VECTOR INDEX (v); |
--list_files $datadir/test/ #*
|
ALTER TABLE t ADD v BLOB NOT NULL DEFAULT x'00000000', ADD VECTOR INDEX (v); |
|
|
# Cleanup
|
DROP TABLE t; |
bb-11.6-MDEV-32887-vector e19526802732b5723664b17ac026a1ea36f99dce |
ALTER TABLE t ADD v BLOB NOT NULL, ADD VECTOR INDEX (v); |
ERROR 22007: Incorrect vector value: '...' for column `test`.`t`.`v` at row 1 |
#sql-alter-26b5e1-4#i#00.ibd |
ALTER TABLE t ADD v BLOB NOT NULL DEFAULT x'00000000', ADD VECTOR INDEX (v); |
bug.vec2 [ fail ]
|
Test ended at 2024-09-27 01:23:14 |
|
CURRENT_TEST: bug.vec2
|
mysqltest: At line 11: query 'ALTER TABLE t ADD v BLOB NOT NULL DEFAULT x'00000000', ADD VECTOR INDEX (v)' failed: ER_TABLE_EXISTS_ERROR (1050): Table '`test`.`#sql-alter-26b5e1-4#i#00`' already exists |
If the table is MyISAM, the temporary .MYD and .MYI files also remain, but the server doesn't mind overriding them on the next attempt, no error is produced.
Attachments
Issue Links
- is caused by
-
MDEV-34939 vector search in 11.7
- Closed