mysql-test/suite/perfschema/t/native_func_thread_id_null.test
raw| 1 | --echo # |
| 2 | --echo # Tests for the Performance Schema native functions ps_thread_id() |
| 3 | --echo # and ps_current_thread_id() |
| 4 | --echo |
| 5 | |
| 6 | --echo # Get the connection ID of this connection |
| 7 | SELECT connection_id() INTO @cid; |
| 8 | |
| 9 | --echo |
| 10 | --echo # The thread is not instrumented, therefore it must be NULL |
| 11 | SELECT ps_current_thread_id(); |
| 12 | --echo |
| 13 | SELECT ps_thread_id(@cid); |
| 14 | --echo |