38
38
case E_DEC_TRUNCATED:
39
push_warning_printf(current_thd, DRIZZLE_ERROR::WARN_LEVEL_WARN,
39
push_warning_printf(current_session, DRIZZLE_ERROR::WARN_LEVEL_WARN,
40
40
ER_WARN_DATA_TRUNCATED, ER(ER_WARN_DATA_TRUNCATED),
43
43
case E_DEC_OVERFLOW:
44
push_warning_printf(current_thd, DRIZZLE_ERROR::WARN_LEVEL_ERROR,
44
push_warning_printf(current_session, DRIZZLE_ERROR::WARN_LEVEL_ERROR,
45
45
ER_TRUNCATED_WRONG_VALUE,
46
46
ER(ER_TRUNCATED_WRONG_VALUE),
49
49
case E_DEC_DIV_ZERO:
50
push_warning_printf(current_thd, DRIZZLE_ERROR::WARN_LEVEL_ERROR,
50
push_warning_printf(current_session, DRIZZLE_ERROR::WARN_LEVEL_ERROR,
51
51
ER_DIVISION_BY_ZERO, ER(ER_DIVISION_BY_ZERO));
53
53
case E_DEC_BAD_NUM:
54
push_warning_printf(current_thd, DRIZZLE_ERROR::WARN_LEVEL_ERROR,
54
push_warning_printf(current_session, DRIZZLE_ERROR::WARN_LEVEL_ERROR,
55
55
ER_TRUNCATED_WRONG_VALUE_FOR_FIELD,
56
56
ER(ER_TRUNCATED_WRONG_VALUE_FOR_FIELD),
57
57
"decimal", "", "", (long)-1);