Eine aufbereitete Darstellung der Quelle

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

Benutzer

Quelle  galera_multi_database.test  Sprache: unbekannt

 
Spracherkennung für: .test vermutete Sprache: SQL {SQL[96] ABAP[72] Lisp[46]} [Methode: maximale Elemente, drei Dimensionen]

#
# Test that identical updates can be delivered to two separate
# databases without this causing a certification conflict
#

--source include/galera_cluster.inc
--source include/have_innodb.inc

CREATE DATABASE d1;
CREATE TABLE d1.t1(f1 INTEGER) ENGINE=InnoDB;

CREATE DATABASE d2;
CREATE TABLE d2.t1(f1 INTEGER PRIMARY KEY) ENGINE=InnoDB;

--connection node_1
SET AUTOCOMMIT=OFF;
START TRANSACTION;
INSERT INTO d1.t1 VALUES (1);

--connection node_2
SET AUTOCOMMIT=OFF;
START TRANSACTION;
INSERT INTO d2.t1 VALUES (1);

--connection node_1
COMMIT;

--connection node_2
COMMIT;

SELECT COUNT(*) = 1 FROM d1.t1;
SELECT COUNT(*) = 1 FROM d2.t1;

--connection node_1

SELECT COUNT(*) = 1 FROM d1.t1;
SELECT COUNT(*) = 1 FROM d2.t1;

DROP TABLE d1.t1;
DROP TABLE d2.t1;

DROP DATABASE d1;
DROP DATABASE d2;

[Dauer der Verarbeitung: 0.5 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