Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Not a Bug
-
3.0.10
-
None
-
None
-
Windows
Description
After reconnection or server start, the statement provided with MYSQL_INIT_COMMAND is being ignored.
A test case should contain only a few lines which show how to reproduce a bug or an unexpected behavior. Nobody wants to read 600 lines of code and search the 3 lines which are related to this jira issue.
If you specify a client flag in mysql_real_connect, don't use a number but a constant name which can be found in mariadb_com.h - The flag CLIENT_MYSQL (=1) is absolutely useless, since it is not in use anymore. Instead pass CLIENT_REMEMBER_OPTIONS as client flag to prevent releasing the options in case of a reconnect.