Format source code
Formatted all of the source code that was not accordance with the coding style. This was caused by merges from 2.2 into 2.3.
This commit is contained in:
@ -1463,7 +1463,6 @@ void append_function_info(json_t* pParams, GWBUF* pBuffer)
|
||||
|
||||
json_object_set_new(pParams, CN_FUNCTIONS, pFunctions);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::unique_ptr<json_t> qc_classify_as_json(const char* zHost, const std::string& statement)
|
||||
|
||||
@ -972,8 +972,8 @@ bool query_and_process_users(const char* query, MYSQL *con, sqlite3* handle, SER
|
||||
{
|
||||
bool rval = false;
|
||||
|
||||
if (mxs_mysql_query(con, "USE mysql") == 0 && // Set default database in case we use CTEs
|
||||
mxs_mysql_query(con, query) == 0)
|
||||
if (mxs_mysql_query(con, "USE mysql") == 0 // Set default database in case we use CTEs
|
||||
&& mxs_mysql_query(con, query) == 0)
|
||||
{
|
||||
MYSQL_RES* result = mysql_store_result(con);
|
||||
|
||||
|
||||
@ -311,11 +311,12 @@ int MySQLSendHandshake(DCB* dcb)
|
||||
int plugin_name_len = strlen(plugin_name);
|
||||
|
||||
mysql_payload_size =
|
||||
sizeof(mysql_protocol_version) + (version.length() + 1) + sizeof(mysql_thread_id_num) + 8 +
|
||||
sizeof(/* mysql_filler */ uint8_t) + sizeof(mysql_server_capabilities_one) + sizeof(mysql_server_language) +
|
||||
sizeof(mysql_server_status) + sizeof(mysql_server_capabilities_two) + sizeof(mysql_scramble_len) +
|
||||
sizeof(mysql_filler_ten) + 12 + sizeof(/* mysql_last_byte */ uint8_t) + plugin_name_len +
|
||||
sizeof(/* mysql_last_byte */ uint8_t);
|
||||
sizeof(mysql_protocol_version) + (version.length() + 1) + sizeof(mysql_thread_id_num) + 8
|
||||
+ sizeof( /* mysql_filler */ uint8_t) + sizeof(mysql_server_capabilities_one)
|
||||
+ sizeof(mysql_server_language)
|
||||
+ sizeof(mysql_server_status) + sizeof(mysql_server_capabilities_two) + sizeof(mysql_scramble_len)
|
||||
+ sizeof(mysql_filler_ten) + 12 + sizeof( /* mysql_last_byte */ uint8_t) + plugin_name_len
|
||||
+ sizeof( /* mysql_last_byte */ uint8_t);
|
||||
|
||||
// allocate memory for packet header + payload
|
||||
if ((buf = gwbuf_alloc(sizeof(mysql_packet_header) + mysql_payload_size)) == NULL)
|
||||
|
||||
Reference in New Issue
Block a user