polardbxengine/mysql-test/suite/perfschema/r/native_func_thread_id_null....

17 lines
349 B
Plaintext

#
# Tests for the Performance Schema native functions ps_thread_id()
# and ps_current_thread_id()
# Get the connection ID of this connection
SELECT connection_id() INTO @cid;
# The thread is not instrumented, therefore it must be NULL
SELECT ps_current_thread_id();
ps_current_thread_id()
NULL
SELECT ps_thread_id(@cid);
ps_thread_id(@cid)
NULL