~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/my_decimal.cc

  • Committer: Felipe
  • Date: 2008-08-04 23:58:04 UTC
  • mto: (261.2.6 codestyle)
  • mto: This revision was merged to the branch mainline in revision 263.
  • Revision ID: felipe@pena-20080804235804-x55q2xqxcar6u66f
- Renamed MYSQL_ERROR to DRIZZLE_ERROR.

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
  case E_DEC_OK:
38
38
    break;
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),
42
42
                        "", (long)-1);
43
43
    break;
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),
48
48
                        "DECIMAL", "");
49
49
    break;
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));
53
53
    break;
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);