Raise a generic SQL condition. @param sql_errno the condition error number @param sqlstate the condition SQLSTATE @param level the condition level @param msg the condition message text @return The condition raised, or NULL */
| 5700 | @return The condition raised, or NULL |
| 5701 | */ |
| 5702 | Sql_condition* raise_condition(uint sql_errno, const char* sqlstate, |
| 5703 | Sql_condition::enum_warning_level level, const char* msg) |
| 5704 | { |
| 5705 | Sql_condition cond(NULL, // don't strdup the msg |
| 5706 | Sql_condition_identity(sql_errno, sqlstate, level, |
| 5707 | Sql_user_condition_identity()), |
| 5708 | msg, get_stmt_da()->current_row_for_warning()); |
| 5709 | return raise_condition(&cond); |
| 5710 | } |
| 5711 | |
| 5712 | Sql_condition* raise_condition(const Sql_condition *cond); |
| 5713 |
nothing calls this directly
no test coverage detected