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