~mysql/mysql-server/mysql-6.0

« back to all changes in this revision

Viewing changes to sql/log.cc

Merge with 4.0.3
Some simple optimzations, more comments and indentation changes.
Add ` around database in 'use database' in binary log.
Moved max_error_count and max_warning_count to variables struct.
Removed SHOW_WARNS_COUNT and SHOW_ERRORS_COUNT calls.
Changed string functions to use character set of first string argument as default return characterset
(Each string function can change the above assumption if needed)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1455
1455
  while (*str++ == ' ') ;
1456
1456
  if (*--str == '-' || *str == '+')
1457
1457
    str++;
1458
 
  while (isdigit(*str) || (allow_wildcards &&
 
1458
  while (my_isdigit(system_charset_info,*str) || (allow_wildcards &&
1459
1459
                           (*str == wild_many || *str == wild_one)))
1460
1460
  {
1461
1461
    flag=1;
1464
1464
  if (*str == '.')
1465
1465
  {
1466
1466
    for (str++ ;
1467
 
         isdigit(*str) ||
 
1467
         my_isdigit(system_charset_info,*str) ||
1468
1468
           (allow_wildcards && (*str == wild_many || *str == wild_one)) ;
1469
1469
         str++, flag=1) ;
1470
1470
  }