| 630 | } |
| 631 | |
| 632 | void THD::raise_error_printf(uint sql_errno, ...) |
| 633 | { |
| 634 | va_list args; |
| 635 | char ebuff[MYSQL_ERRMSG_SIZE]; |
| 636 | DBUG_ENTER("THD::raise_error_printf"); |
| 637 | DBUG_PRINT("my", ("nr: %d errno: %d", sql_errno, errno)); |
| 638 | const char* format= ER(sql_errno); |
| 639 | va_start(args, sql_errno); |
| 640 | my_vsnprintf(ebuff, sizeof(ebuff), format, args); |
| 641 | va_end(args); |
| 642 | (void) raise_condition(sql_errno, |
| 643 | NULL, |
| 644 | Sql_condition::WARN_LEVEL_ERROR, |
| 645 | ebuff); |
| 646 | DBUG_VOID_RETURN; |
| 647 | } |
| 648 | |
| 649 | void THD::raise_warning(uint sql_errno) |
| 650 | { |
nothing calls this directly
no test coverage detected