Debian Codegraph @

mysql-test/suite/perfschema/t/native_func_thread_id_no_ps.test

raw
1 --echo #
2 --echo # Tests for the Performance Schema native functions ps_thread_id()
3 --echo # and ps_current_thread_id() with disabled Performance Schema
4 --echo
5
6 --echo # Verify the Performance Schema is disabled
7 SELECT @@global.performance_schema AS 'Expect 0';
8
9 --echo
10 --echo # Get the connection ID of this connection
11 SELECT connection_id() INTO @cid;
12
13 --echo
14 --echo # The Performance Schema is not available
15 --error ER_WRONG_PERFSCHEMA_USAGE
16 SELECT ps_current_thread_id();
17 --echo
18 --error ER_WRONG_PERFSCHEMA_USAGE
19 SELECT ps_thread_id(@cid);
20 --echo