~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/double.cc

  • Committer: Lee Bieber
  • Date: 2011-02-10 01:09:23 UTC
  • mfrom: (2152.2.1 alter-table)
  • Revision ID: kalebral@gmail.com-20110210010923-mbwuwow0nudk7ryh
Merge Brian - more parser rework

Show diffs side-by-side

added added

removed removed

Lines of Context:
133
133
    char buf[DOUBLE_TO_STRING_CONVERSION_BUFFER_SIZE];
134
134
    String tmp(buf, sizeof(buf), &my_charset_utf8_general_ci), *str;
135
135
    str= val_str(&tmp, &tmp);
136
 
    push_warning_printf(current_session, DRIZZLE_ERROR::WARN_LEVEL_WARN,
 
136
    Session *session= getTable() ? getTable()->in_use : current_session;
 
137
    push_warning_printf(session, DRIZZLE_ERROR::WARN_LEVEL_WARN,
137
138
                        ER_TRUNCATED_WRONG_VALUE,
138
139
                        ER(ER_TRUNCATED_WRONG_VALUE), "INTEGER",
139
140
                        str->c_ptr());