summaryrefslogtreecommitdiffstats
path: root/mysql-test/main/log_tables-big.result
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 18:00:34 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 18:00:34 +0000
commit3f619478f796eddbba6e39502fe941b285dd97b1 (patch)
treee2c7b5777f728320e5b5542b6213fd3591ba51e2 /mysql-test/main/log_tables-big.result
parentInitial commit. (diff)
downloadmariadb-3f619478f796eddbba6e39502fe941b285dd97b1.tar.xz
mariadb-3f619478f796eddbba6e39502fe941b285dd97b1.zip
Adding upstream version 1:10.11.6.upstream/1%10.11.6upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'mysql-test/main/log_tables-big.result')
-rw-r--r--mysql-test/main/log_tables-big.result40
1 files changed, 40 insertions, 0 deletions
diff --git a/mysql-test/main/log_tables-big.result b/mysql-test/main/log_tables-big.result
new file mode 100644
index 00000000..392a1bce
--- /dev/null
+++ b/mysql-test/main/log_tables-big.result
@@ -0,0 +1,40 @@
+set @log_output.saved = @@global.log_output;
+set @@global.log_output = 'TABLE';
+connect con1,localhost,root,,;
+connect con2,localhost,root,,;
+connection con1;
+set session long_query_time=10;
+select get_lock('bug27638', 1);
+get_lock('bug27638', 1)
+1
+connection con2;
+set session long_query_time=1;
+select get_lock('bug27638', 2);
+get_lock('bug27638', 2)
+0
+select if (query_time >= '00:00:01', 'OK', concat('WRONG: ',query_time)) as qt, sql_text from mysql.slow_log
+where sql_text = 'select get_lock(\'bug27638\', 2)';
+qt sql_text
+OK select get_lock('bug27638', 2)
+select get_lock('bug27638', 60);
+get_lock('bug27638', 60)
+0
+select if (query_time >= '00:00:59', 'OK', concat('WRONG: ',query_time)) as qt, sql_text from mysql.slow_log
+where sql_text = 'select get_lock(\'bug27638\', 60)';
+qt sql_text
+OK select get_lock('bug27638', 60)
+select get_lock('bug27638', 101);
+get_lock('bug27638', 101)
+0
+select if (query_time >= '00:01:40', 'OK', concat('WRONG: ',query_time)) as qt, sql_text from mysql.slow_log
+where sql_text = 'select get_lock(\'bug27638\', 101)';
+qt sql_text
+OK select get_lock('bug27638', 101)
+connection con1;
+select release_lock('bug27638');
+release_lock('bug27638')
+1
+connection default;
+disconnect con1;
+disconnect con2;
+set @@global.log_output = @log_output.saved;