~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/functions/signed.cc

  • Committer: Brian Aker
  • Date: 2008-10-20 04:28:21 UTC
  • mto: (492.3.21 drizzle-clean-code)
  • mto: This revision was merged to the branch mainline in revision 530.
  • Revision ID: brian@tangent.org-20081020042821-rqqdrccuu8195k3y
Second pass of thd cleanup

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
    char err_buff[128];
60
60
    String err_tmp(err_buff,(uint32_t) sizeof(err_buff), system_charset_info);
61
61
    err_tmp.copy(start, length, system_charset_info);
62
 
    push_warning_printf(current_thd, DRIZZLE_ERROR::WARN_LEVEL_WARN,
 
62
    push_warning_printf(current_session, DRIZZLE_ERROR::WARN_LEVEL_WARN,
63
63
                        ER_TRUNCATED_WRONG_VALUE,
64
64
                        ER(ER_TRUNCATED_WRONG_VALUE), "INTEGER",
65
65
                        err_tmp.c_ptr());
84
84
  value= val_int_from_str(&error);
85
85
  if (value < 0 && error == 0)
86
86
  {
87
 
    push_warning(current_thd, DRIZZLE_ERROR::WARN_LEVEL_WARN, ER_UNKNOWN_ERROR,
 
87
    push_warning(current_session, DRIZZLE_ERROR::WARN_LEVEL_WARN, ER_UNKNOWN_ERROR,
88
88
                 "Cast to signed converted positive out-of-range integer to "
89
89
                 "it's negative complement");
90
90
  }