• Vladislav Vaintroub's avatar
    MDEV-11104 Fix client to correctly retrieve current user name on Windows · fb38d264
    Vladislav Vaintroub authored
    Prior to this patch name of the user was  read from environment variable
    USER, with a fallback to 'ODBC', if the environment variable is not set.
    
    The name of the env.variable is incorrect (USERNAME usually contains current
    user's name,  but not USER), which made client to  always determine
    current user as 'ODBC'.
    
    The fix is to use GetUserName() instead.
    fb38d264
libmysql.c 136 KB