Eine aufbereitete Darstellung der Quelle

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

Benutzer

Quelle  galera_ddl_multiline.test  Sprache: unbekannt

 
Spracherkennung für: .test vermutete Sprache: SQL {SQL[120] ABAP[91] R[60]} [Methode: maximale Elemente, drei Dimensionen]

#
# Test that Galera works correctly with multiline statements, in particular involving DDLs
#

--source include/galera_cluster.inc

--connection node_1
CREATE TABLE t1 (f1 INTEGER) ENGINE=InnoDB; CREATE TABLE t2 (f1 INTEGER) ENGINE=InnoDB;

SHOW CREATE TABLE t1;
SHOW CREATE TABLE t2;

--connection node_2
SHOW CREATE TABLE t1;
SHOW CREATE TABLE t2;

--connection node_1
--send CREATE TABLE t3 (f1 INTEGER) ENGINE=InnoDB; CREATE TABLE t4 (f1 INTEGER) ENGINE=InnoDB;
--reap

SHOW CREATE TABLE t3;
SHOW CREATE TABLE t4;

--connection node_2
SHOW CREATE TABLE t3;
SHOW CREATE TABLE t4;

--connection node_1
INSERT INTO t1 VALUES (1); CREATE TABLE t5 (f1 INTEGER) ENGINE=InnoDB;

SELECT COUNT(*) = 1 FROM t1;
SHOW CREATE TABLE t5;

--connection node_2
SELECT COUNT(*) = 1 FROM t1;
SHOW CREATE TABLE t5;

--connection node_1
--send CREATE TABLE t6 (f1 INTEGER) ENGINE=InnoDB; INSERT INTO t2 VALUES (1);
--reap

SELECT COUNT(*) = 1 FROM t2;
SHOW CREATE TABLE t6;

--connection node_2
SELECT COUNT(*) = 1 FROM t2;
SHOW CREATE TABLE t6;

--let $diff_servers = 1 2
--source include/diff_servers.inc

--connection node_1
DROP TABLE t1, t2, t3, t4, t5, t6;

[Dauer der Verarbeitung: 0.8 Sekunden]

                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1126864
#Domains=1897691