~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/double.cc

  • Committer: Andrew Hutchings
  • Date: 2010-10-20 15:31:27 UTC
  • mto: This revision was merged to the branch mainline in revision 1907.
  • Revision ID: andrew@linuxjedi.co.uk-20101020153127-w9djuz9omzezg2kz
Add error message for global sort buffer constraint

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
 
    Session *session= getTable() ? getTable()->in_use : current_session;
137
 
    push_warning_printf(session, DRIZZLE_ERROR::WARN_LEVEL_WARN,
 
136
    push_warning_printf(current_session, DRIZZLE_ERROR::WARN_LEVEL_WARN,
138
137
                        ER_TRUNCATED_WRONG_VALUE,
139
138
                        ER(ER_TRUNCATED_WRONG_VALUE), "INTEGER",
140
139
                        str->c_ptr());