Bug #79347 No information about init_connect resultset
Submitted: 19 Nov 2015 19:55 Modified: 26 Nov 2015 16:43
Reporter: Daniël van Eeden (OCA) Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Documentation Severity:S4 (Feature request)
Version:5.7.9 OS:Any
Assigned to: CPU Architecture:Any

[19 Nov 2015 19:55] Daniël van Eeden
Description:
https://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html#sysvar_init_connect

Please add information about what's done with the resultset. It is not shown.
Otherwise people might think it is not working because they don't see any output.

How to repeat:
SET GLOBAL init_connect='SELECT ''foo''';
And connect with a non-SUPER user
[20 Nov 2015 7:31] MySQL Verification Team
Hello Daniël,

Thank you for the report.

Thanks,
Umesh
[26 Nov 2015 16:43] Paul DuBois
Thank you for your bug report. This issue has been addressed in the documentation. The updated documentation will appear on our website shortly.

Added to init_connect description:

The server discards any result sets produced by statements in the
value of of init_connect.