Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/MariaDB/mysql-test/main/   (MariaDB Server Version 8.1-8.4©)  Datei vom 1.9.2026 mit Größe 540 B image not shown  

Quelle  partition_sp.test  Sprache: unbekannt

 
Spracherkennung für: .test vermutete Sprache: SQL {SQL[66] Masm[44] Shell[40]} [Methode: maximale Elemente, drei Dimensionen]

--source include/have_partition.inc

--echo #
--echo # MDEV-8652: Partitioned table creation problem when
--echo # creating from procedure context twice in same session
--echo #


DELIMITER |;
 
CREATE PROCEDURE p1()
BEGIN
  DROP TABLE IF EXISTS t1 ;
 
  CREATE TABLE t1 (
    id INT PRIMARY KEY
  )
  PARTITION BY RANGE (id) (
    PARTITION P1 VALUES LESS THAN (2),
    PARTITION P2 VALUES LESS THAN (3)
  ); 
END |
 
DELIMITER ;|
 
call p1(); 
call p1(); 

drop procedure p1;
drop table t1;

--echo #
--echo # End of 10.2 tests
--echo #


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