Bug #96264 SQLConfigDatasource return 1 when clicking on the cancle
Submitted: 22 Jul 2019 7:47 Modified: 18 Jan 2020 9:11
Reporter: Yoga Young Email Updates:
Status: No Feedback Impact on me:
None 
Category:Connector / ODBC Severity:S3 (Non-critical)
Version:8.00.16.00 OS:Windows
Assigned to: Assigned Account CPU Architecture:Any

[22 Jul 2019 7:47] Yoga Young
Description:
Using the SQLConfigDatasource API, check https://docs.microsoft.com/en-us/sql/odbc/reference/syntax/sqlconfigdatasource-function?vi....

long returnVal = SQLConfigDataSource  (win , 
			ODBC_ADD_SYS_DSN,
			dvr, 
			atts);

return returnVal;

with the drv set to MySQL,
the "MySQL Connector/ODBC Data Server Configuration" window pops up,

when I click on "Cancel", the resultVal = 1
when I click on "OK", the resultVal is also 1

How to repeat:
1. Call the ODBC connector with SQLConfigDataSource
2. click on "Cancel", check the return value 

Suggested fix:
When clicking on "Cancel", return 0.
When clicking on "OK", return 1
[18 Dec 2019 9:11] MySQL Verification Team
Hello Yoga Young,

Thank you for the report.
Could you please provide repeatable test case (project bundled with all the required files and README etc. - please make it as private if you prefer) to reproduce this issue at our end? Thank you.

Regards,
Ashwini Patil
[19 Jan 2020 1:00] Bugs System
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".