Bug #85460 program_name attribute no longer set on Linux
Submitted: 15 Mar 2017 10:59 Modified: 6 Jun 2018 21:06
Reporter: Daniël van Eeden (OCA) Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench Severity:S3 (Non-critical)
Version:6.3.9 OS:Linux
Assigned to: CPU Architecture:Any
Tags: connection attributes, patch

[15 Mar 2017 10:59] Daniël van Eeden
Description:
Earlier versions used to set program_name='MySQLWorkbench' but 6.3.9 doesn't do that on Linux.

How to repeat:
Looking at the code the attribute is set correctly on Windows and macOS, but not on others (which is Linux)

commit ad250dd5b49f416036c1d19eac245751b2808eff

changed this:
-#if defined(__APPLE__) || defined(_WIN32) || defined(MYSQLCPPCONN_VERSION_1_1_4)
+#if defined(__APPLE__) || defined(_WIN32)

This was probably done because the 1.1.8 is now the minimal cppconn version.

Suggested fix:
Remove the ifdef
[15 Mar 2017 11:00] Daniël van Eeden
patch

Attachment: wb_linux_program_name.patch (text/x-patch), 888 bytes.

[15 Mar 2017 11:50] MySQL Verification Team
Hello Daniël,

Thank you for the report and contribution,

Thanks,
Umesh
[7 May 2018 16:32] Miguel Tadeu Mota
Posted by developer:
 
commit id: e45fab41b4db13948f0194eb1b0ef255c6f1dd94
[6 Jun 2018 4:11] MySQL Verification Team
Hello Daniël,

May I request you to please re-send the patch via "Contribution" tab. Otherwise we would not be able to accept it. Thank you!

Regards,
Umesh
[6 Jun 2018 18:27] Daniël van Eeden
patch

(*) I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it.

Contribution: wb_linux_program_name.patch (text/x-patch), 888 bytes.

[6 Jun 2018 21:06] Christine Cole
Posted by developer:
 
Fixed as of the upcoming MySQL Workbench 8.0.12 release, and here's the changelog entry:

The attribute in source code that set the program name ('MySQLWorkbench')
was omitted from Unix and Linux distributions. Thanks to Daniël van Eeden
for contributing to the fix.

Thank you for the bug report.