Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  alter_table_errors.test  Sprache: unbekannt

 
Spracherkennung für: .test vermutete Sprache: SQL {SQL[190] Masm[96] Lisp[48]} [Methode: maximale Elemente, drei Dimensionen]

--source include/have_innodb.inc
--source include/have_sequence.inc

--echo #
--echo # MDEV-16110 ALTER with ALGORITHM=INPLACE breaks temporary table with virtual columns
--echo #
create table t (a int, v int as (a)) engine=innodb;
--error ER_ALTER_OPERATION_NOT_SUPPORTED_REASON
alter table t change column a b tinyint, algorithm=inplace;
show create table t;
drop table t;

create temporary table t1 (a int, v int as (a));
--error ER_ALTER_OPERATION_NOT_SUPPORTED
alter table t1 change column a b int, algorithm=inplace;
show create table t1;

create temporary table t2 (a int, v int as (a));
lock table t2 write;
--error ER_ALTER_OPERATION_NOT_SUPPORTED
alter table t2 change column a b int, algorithm=inplace;
show create table t2;
drop temporary table t1, t2;
unlock tables;

--echo #
--echo # MDEV-18083 ASAN heap-use-after-free in Field::set_warning_truncated_wrong_value upon inserting into temporary table
--echo #
create temporary table t1 (a int);
alter table t1 add column f text;
--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD
insert into t1 values ('x','foo');
drop temporary table t1;

--echo # End of 10.2 tests

--echo #
--echo # MDEV-23507 Wrong duplicate key value printed in ER_DUP_ENTRY
--echo #
create table t1 (a int) engine=myisam;
insert into t1 values (8);
insert into t1 select seq from seq_1_to_100;
--error ER_DUP_ENTRY
alter table t1 add unique (a);
alter table t1 engine=aria;
--error ER_DUP_ENTRY
alter table t1 add unique (a);
drop table t1;

--echo # End of 10.11 tests

[Dauer der Verarbeitung: 0.12 Sekunden, vorverarbeitet 2026-10-08]

                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1126438
#Domains=1867298