~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/double.cc

  • Committer: Brian Aker
  • Date: 2011-02-12 10:32:50 UTC
  • Revision ID: brian@tangent.org-20110212103250-q8y7zqan2948uban
Merge in a possible fix for Solaris

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