3527
/* Check that the string passed to str2int only contain digits */
3528
while (*p && p != end)
3530
if (!my_isdigit(charset_info, *p))
3531
die("Invalid argument to error: '%s' - " \
3532
"the errno may only consist of digits[0-9]",
3533
command->first_argument);
3537
/* Convert the sting to int */
3538
istringstream buff(start);
3539
if ((buff >> val).fail())
3540
die("Invalid argument to error: '%s'", command->first_argument);
3542
to->code.errnum= (uint32_t) val;
3543
to->type= ERR_ERRNO;
3525
die ("You must either use the SQLSTATE or built in drizzle error label, numbers are not accepted");