2015-04-21 13:17:17 -04:00
|
|
|
CREATE TABLE t1 (f1 INTEGER PRIMARY KEY) ENGINE=InnoDB;
|
|
|
|
INSERT INTO t1 VALUES (1);
|
|
|
|
SELECT COUNT(*) > 0 FROM mysql.general_log;
|
|
|
|
COUNT(*) > 0
|
|
|
|
1
|
|
|
|
SELECT 1 = 1 FROM t1;
|
|
|
|
1 = 1
|
|
|
|
1
|
|
|
|
SELECT COUNT(*) = 1 FROM mysql.slow_log WHERE sql_text = 'SELECT 1 = 1 FROM t1';
|
|
|
|
COUNT(*) = 1
|
|
|
|
1
|
2017-08-31 09:28:59 +03:00
|
|
|
connection node_2;
|
2015-04-21 13:17:17 -04:00
|
|
|
SELECT 2 = 2 FROM t1;
|
|
|
|
2 = 2
|
|
|
|
1
|
|
|
|
SELECT COUNT(*) = 1 FROM mysql.slow_log WHERE sql_text = 'SELECT 2 = 2 FROM t1';
|
|
|
|
COUNT(*) = 1
|
|
|
|
1
|
2017-08-31 09:28:59 +03:00
|
|
|
connection node_1;
|
2015-04-21 13:17:17 -04:00
|
|
|
DROP TABLE t1;
|