# # exists as a session only # --error ER_INCORRECT_GLOBAL_LOCAL_VAR select @@global.pseudo_thread_id; select @@session.pseudo_thread_id=0; show global variables like 'pseudo_thread_id'; --replace_column 2 # show session variables like 'pseudo_thread_id'; select * from information_schema.global_variables where variable_name='pseudo_thread_id'; --replace_column 2 # select * from information_schema.session_variables where variable_name='pseudo_thread_id'; # # show that it's writable # set session pseudo_thread_id=1; select @@session.pseudo_thread_id; --error ER_LOCAL_VARIABLE set global pseudo_thread_id=1; # # incorrect types # --error ER_WRONG_TYPE_FOR_VAR set session pseudo_thread_id=1.1; --error ER_WRONG_TYPE_FOR_VAR set session pseudo_thread_id=1e1; --error ER_WRONG_TYPE_FOR_VAR set session pseudo_thread_id="foo";