39
39
case E_DEC_TRUNCATED:
40
push_warning_printf(current_thd, MYSQL_ERROR::WARN_LEVEL_WARN,
40
push_warning_printf(current_thd, DRIZZLE_ERROR::WARN_LEVEL_WARN,
41
41
ER_WARN_DATA_TRUNCATED, ER(ER_WARN_DATA_TRUNCATED),
44
44
case E_DEC_OVERFLOW:
45
push_warning_printf(current_thd, MYSQL_ERROR::WARN_LEVEL_ERROR,
45
push_warning_printf(current_thd, DRIZZLE_ERROR::WARN_LEVEL_ERROR,
46
46
ER_TRUNCATED_WRONG_VALUE,
47
47
ER(ER_TRUNCATED_WRONG_VALUE),
50
50
case E_DEC_DIV_ZERO:
51
push_warning_printf(current_thd, MYSQL_ERROR::WARN_LEVEL_ERROR,
51
push_warning_printf(current_thd, DRIZZLE_ERROR::WARN_LEVEL_ERROR,
52
52
ER_DIVISION_BY_ZERO, ER(ER_DIVISION_BY_ZERO));
54
54
case E_DEC_BAD_NUM:
55
push_warning_printf(current_thd, MYSQL_ERROR::WARN_LEVEL_ERROR,
55
push_warning_printf(current_thd, DRIZZLE_ERROR::WARN_LEVEL_ERROR,
56
56
ER_TRUNCATED_WRONG_VALUE_FOR_FIELD,
57
57
ER(ER_TRUNCATED_WRONG_VALUE_FOR_FIELD),
58
58
"decimal", "", "", (long)-1);