| 687 | } |
| 688 | |
| 689 | void THD::raise_note_printf(uint sql_errno, ...) |
| 690 | { |
| 691 | va_list args; |
| 692 | char ebuff[MYSQL_ERRMSG_SIZE]; |
| 693 | DBUG_ENTER("THD::raise_note_printf"); |
| 694 | DBUG_PRINT("enter",("code: %u", sql_errno)); |
| 695 | if (!(variables.option_bits & OPTION_SQL_NOTES)) |
| 696 | DBUG_VOID_RETURN; |
| 697 | const char* format= ER(sql_errno); |
| 698 | va_start(args, sql_errno); |
| 699 | my_vsnprintf(ebuff, sizeof(ebuff), format, args); |
| 700 | va_end(args); |
| 701 | (void) raise_condition(sql_errno, |
| 702 | NULL, |
| 703 | Sql_condition::WARN_LEVEL_NOTE, |
| 704 | ebuff); |
| 705 | DBUG_VOID_RETURN; |
| 706 | } |
| 707 | |
| 708 | |
| 709 | struct timeval THD::query_start_timeval_trunc(uint decimals) |
nothing calls this directly
no test coverage detected