~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/functions/signed.cc

  • Committer: Monty Taylor
  • Date: 2008-10-20 08:48:34 UTC
  • mfrom: (520.1.22 drizzle)
  • Revision ID: monty@inaugust.com-20081020084834-xpb3w01vkcp55o02
Merged trunk.

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
  }