@@ -379,8 +379,10 @@ const char
379379 WIRE_CRYPT_PLUGIN_NAME[] = " WIRE_CRYPT_PLUGIN" ,
380380 CLIENT_ADDRESS_NAME[] = " CLIENT_ADDRESS" ,
381381 CLIENT_HOST_NAME[] = " CLIENT_HOST" ,
382+ CLIENT_OS_USER_NAME[] = " CLIENT_OS_USER" ,
382383 CLIENT_PID_NAME[] = " CLIENT_PID" ,
383384 CLIENT_PROCESS_NAME[] = " CLIENT_PROCESS" ,
385+ CLIENT_VERSION_NAME[] = " CLIENT_VERSION" ,
384386 CURRENT_USER_NAME[] = " CURRENT_USER" ,
385387 CURRENT_ROLE_NAME[] = " CURRENT_ROLE" ,
386388 SESSION_IDLE_TIMEOUT[] = " SESSION_IDLE_TIMEOUT" ,
@@ -4564,6 +4566,13 @@ dsc* evlGetContext(thread_db* tdbb, const SysFunction*, const NestValueArray& ar
45644566
45654567 resultStr = attachment->att_remote_host ;
45664568 }
4569+ else if (nameStr == CLIENT_OS_USER_NAME)
4570+ {
4571+ if (attachment->att_remote_os_user .isEmpty ())
4572+ return NULL ;
4573+
4574+ resultStr = attachment->att_remote_os_user ;
4575+ }
45674576 else if (nameStr == CLIENT_PID_NAME)
45684577 {
45694578 if (!attachment->att_remote_pid )
@@ -4578,6 +4587,13 @@ dsc* evlGetContext(thread_db* tdbb, const SysFunction*, const NestValueArray& ar
45784587
45794588 resultStr = attachment->att_remote_process .ToString ();
45804589 }
4590+ else if (nameStr == CLIENT_VERSION_NAME)
4591+ {
4592+ if (attachment->att_client_version .isEmpty ())
4593+ return NULL ;
4594+
4595+ resultStr = attachment->att_client_version .ToString ();
4596+ }
45814597 else if (nameStr == CURRENT_USER_NAME)
45824598 {
45834599 const MetaString& user = attachment->getUserName ();
0 commit comments