[CONC-443] Statements in the 'init_command' is ignored during reconnection or server restart Created: 2019-10-14 Updated: 2019-10-17 Resolved: 2019-10-14 |
|
| Status: | Closed |
| Project: | MariaDB Connector/C |
| Component/s: | None |
| Affects Version/s: | 3.0.10 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Deep Shikha | Assignee: | Georg Richter |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Windows |
||
| Attachments: |
|
| Description |
|
After reconnection or server start, the statement provided with MYSQL_INIT_COMMAND is being ignored. |
| Comments |
| Comment by Georg Richter [ 2019-10-14 ] |
|
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. |
| Comment by Deep Shikha [ 2019-10-15 ] |
|
I have updated the client flag with CLIENT_REMEMBER_OPTIONS in mysql_real_connect, but still able to reproduce the issue. |