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 591 B image not shown  

Quelle  lock_tables_lost_commit.test  Sprache: unbekannt

 
Spracherkennung für: .test vermutete Sprache: SQL {SQL[120] ABAP[84] VHDL[56]} [Methode: maximale Elemente, drei Dimensionen]

# Test for Bug#578 mysqlimport -l silently fails when binlog-ignore-db is set

--source include/have_innodb.inc

connect (con1,localhost,root,,);
connect (con2,localhost,root,,);

connection con1;
CREATE TABLE t1(a INT) ENGINE=innodb;
LOCK TABLES t1 WRITE;
INSERT INTO t1 VALUES(10);
disconnect con1;

connection con2;
# The bug was that, because of the LOCK TABLES, the handler "forgot" to commit,
# and the other commit when we write to the binlog was not done because of
# binlog-ignore-db
SELECT * FROM t1;
DROP TABLE t1;

connection default;
disconnect con2;

--echo # End of 4.1 tests

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