Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Bug #88020: Expose connection status flags in command-line client pro…
…mpt. Add a new special sequence to the 'prompt' command in the mysql command-line client. '\x' is now replaced with a sequence of space-separated strings describing connection status flags in MYSQL::server_status. Below is a map of status flag defined by the client API in mysql_com.h and their corresponding indicators in the command prompt: | SERVER_STATUS_IN_TRANS | in_trans | | SERVER_STATUS_AUTOCOMMIT | autocommit | | SERVER_MORE_RESULTS_EXISTS | more_results | | SERVER_QUERY_NO_GOOD_INDEX_USED | no_good_index_used | | SERVER_QUERY_NO_INDEX_USED | no_index_used | | SERVER_STATUS_CURSOR_EXISTS | cursor exists | | SERVER_STATUS_LAST_ROW_SENT | last_row_send | | SERVER_STATUS_DB_DROPPED | db_dropped | | SERVER_STATUS_NO_BACKSLASH_ESCAPES | no_backlash_escapes | | SERVER_STATUS_METADATA_CHANGED | metadata_changed | | SERVER_QUERY_WAS_SLOW | query_was_slow | | SERVER_PS_OUT_PARAMS | ps_out_params | | SERVER_STATUS_IN_TRANS_READONLY | readonly | | SERVER_SESSION_STATE_CHANGED | state_changed |
- Loading branch information