~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_error.cc

  • Committer: Eric Herman
  • Date: 2008-12-06 19:42:46 UTC
  • mto: (656.1.6 devel)
  • mto: This revision was merged to the branch mainline in revision 665.
  • Revision ID: eric@mysql.com-20081206194246-5cdexuu81i366eek
removed trailing whitespace with simple script:

for file in $(find . -name "*.c") $(find . -name "*.cc") $(find . -name "*.h"); do ruby -pe 'gsub(/\s+$/, $/)' < $file > $file.out; mv $file.out $file; done;

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
    (If we would reset after each command, we could not retrieve the number
30
30
     of warnings)
31
31
 
32
 
  - When client requests the information using SHOW command, then 
33
 
    server processes from this list and returns back in the form of 
 
32
  - When client requests the information using SHOW command, then
 
33
    server processes from this list and returns back in the form of
34
34
    resultset.
35
35
 
36
36
    Supported syntaxes:
68
68
    Don't reset warnings if this has already been called for this query.
69
69
    This may happen if one gets a warning during the parsing stage,
70
70
    in which case push_warnings() has already called this function.
71
 
*/  
 
71
*/
72
72
 
73
73
void drizzle_reset_errors(Session *session, bool force)
74
74
{
86
86
}
87
87
 
88
88
 
89
 
/* 
 
89
/*
90
90
  Push the warning/error to error list if there is still room in the list
91
91
 
92
92
  SYNOPSIS
95
95
    level               Severity of warning (note, warning, error ...)
96
96
    code                Error number
97
97
    msg                 Clear error message
98
 
    
 
98
 
99
99
  RETURN
100
100
    pointer on DRIZZLE_ERROR object
101
101
*/
102
102
 
103
 
DRIZZLE_ERROR *push_warning(Session *session, DRIZZLE_ERROR::enum_warning_level level, 
 
103
DRIZZLE_ERROR *push_warning(Session *session, DRIZZLE_ERROR::enum_warning_level level,
104
104
                          uint32_t code, const char *msg)
105
105
{
106
106
  DRIZZLE_ERROR *err= 0;
160
160
{
161
161
  va_list args;
162
162
  char    warning[ERRMSGSIZE+20];
163
 
  
 
163
 
164
164
  va_start(args,format);
165
165
  vsnprintf(warning, sizeof(warning), format, args);
166
166
  va_end(args);
194
194
};
195
195
 
196
196
bool mysqld_show_warnings(Session *session, uint32_t levels_to_show)
197
 
{  
 
197
{
198
198
  List<Item> field_list;
199
199
 
200
200
  field_list.push_back(new Item_empty_string("Level", 7));