mysql_send_custom_error returns write operation
mysql_send_custom_error returns write operation
This commit is contained in:
parent
83257aad55
commit
7b5d2df7a6
@ -1004,7 +1004,7 @@ GWBUF* mysql_create_custom_error(
|
||||
* @param packet_number
|
||||
* @param in_affected_rows
|
||||
* @param mysql_message
|
||||
* @return packet length
|
||||
* @return 1 Non-zero if data was sent
|
||||
*
|
||||
*/
|
||||
int mysql_send_custom_error (
|
||||
@ -1017,9 +1017,7 @@ int mysql_send_custom_error (
|
||||
|
||||
buf = mysql_create_custom_error(packet_number, in_affected_rows, mysql_message);
|
||||
|
||||
dcb->func.write(dcb, buf);
|
||||
|
||||
return GWBUF_LENGTH(buf);
|
||||
return dcb->func.write(dcb, buf);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user