~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/fstring.cc

MergedĀ fromĀ Felipe

Show diffs side-by-side

added added

removed removed

Lines of Context:
93
93
    char buf[DOUBLE_TO_STRING_CONVERSION_BUFFER_SIZE];
94
94
    String tmp(buf, sizeof(buf), cs);
95
95
    tmp.copy((char*) ptr, field_length, cs);
96
 
    push_warning_printf(current_thd, MYSQL_ERROR::WARN_LEVEL_WARN,
 
96
    push_warning_printf(current_thd, DRIZZLE_ERROR::WARN_LEVEL_WARN,
97
97
                        ER_TRUNCATED_WRONG_VALUE, 
98
98
                        ER(ER_TRUNCATED_WRONG_VALUE),
99
99
                        "DOUBLE", tmp.c_ptr());
118
118
    char buf[LONGLONG_TO_STRING_CONVERSION_BUFFER_SIZE];
119
119
    String tmp(buf, sizeof(buf), cs);
120
120
    tmp.copy((char*) ptr, field_length, cs);
121
 
    push_warning_printf(current_thd, MYSQL_ERROR::WARN_LEVEL_WARN,
 
121
    push_warning_printf(current_thd, DRIZZLE_ERROR::WARN_LEVEL_WARN,
122
122
                        ER_TRUNCATED_WRONG_VALUE, 
123
123
                        ER(ER_TRUNCATED_WRONG_VALUE),
124
124
                        "INTEGER", tmp.c_ptr());
154
154
    CHARSET_INFO *cs= charset();
155
155
    String tmp(buf, sizeof(buf), cs);
156
156
    tmp.copy((char*) ptr, field_length, cs);
157
 
    push_warning_printf(current_thd, MYSQL_ERROR::WARN_LEVEL_WARN,
 
157
    push_warning_printf(current_thd, DRIZZLE_ERROR::WARN_LEVEL_WARN,
158
158
                        ER_TRUNCATED_WRONG_VALUE, 
159
159
                        ER(ER_TRUNCATED_WRONG_VALUE),
160
160
                        "DECIMAL", tmp.c_ptr());