~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/my_decimal.cc

  • Committer: brian
  • Date: 2008-08-01 17:27:37 UTC
  • mfrom: (261.1.6 drizzle)
  • Revision ID: brian@localhost.localdomain-20080801172737-v6f9pau23un0bwfl
Merge from Monty

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);