Added log error or ss_dassert instead of silent returning
This commit is contained in:
@ -23,7 +23,7 @@
|
||||
* Date Who Description
|
||||
* 17/06/2013 Massimiliano Pinto Common MySQL protocol routines
|
||||
* 02/06/2013 Massimiliano Pinto MySQL connect asynchronous phases
|
||||
* 04/09/2013 Massimiliano Pinto Added dcb NULL check in mysql_send_custom_error
|
||||
* 04/09/2013 Massimiliano Pinto Added dcb NULL assert in mysql_send_custom_error
|
||||
*
|
||||
*/
|
||||
|
||||
@ -620,9 +620,7 @@ mysql_send_custom_error (DCB *dcb, int packet_number, int in_affected_rows, cons
|
||||
|
||||
GWBUF *buf = NULL;
|
||||
|
||||
if (dcb == NULL) {
|
||||
return -1;
|
||||
}
|
||||
ss_dassert(dcb != NULL);
|
||||
|
||||
mysql_errno = 2003;
|
||||
mysql_error_msg = "An errorr occurred ...";
|
||||
|
Reference in New Issue
Block a user