Bug #27246 Windows: mysql_real_connect should get username of current process if not specif

Submitted: 18 Mar 2007 10:13 Modified: 5 Dec 2007 18:56
Reporter: Georg Richter Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Server: C API (client library) Severity:S4 (Feature request)
Version:all OS:Windows (Windows)
Assigned to: CPU Architecture:Any

[18 Mar 2007 10:13] Georg Richter
Description:
According to the documentation the default user is assumed, when passing NULL or empty string for user in mysql_real_connect.

On Windows platforms function read_user_name checks for environment variable USER.  If it's not defined default user "ODBC" will be assumed.

How to repeat:
-

Suggested fix:
call Windows-API function GetUserName to get username of current process.
[21 Mar 2007 0:34] MySQL Verification Team
Thank you for the bug report.

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.038 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.