1. 30 May, 2007 8 commits
  2. 29 May, 2007 14 commits
  3. 28 May, 2007 10 commits
    • unknown's avatar
      Merge polly.local:/home/kaa/src/maint/mysql-5.0-maint · ae06dea4
      unknown authored
      into  polly.local:/home/kaa/src/maint/mysql-5.1-maint
      
      
      strings/strtod.c:
        Auto merged
      ae06dea4
    • unknown's avatar
      Don't use log_01[] in my_strtod() to avoid loss of precision. · 20671210
      unknown authored
      This is for bug #28121.
      
      
      strings/strtod.c:
        Don't use log_01[] in my_strtod() to avoid loss of precision.
      20671210
    • unknown's avatar
      Bug #26397 mysql-test-run.pl --start-dirty removes binary logs · 1a99afe9
      unknown authored
       - Don't delete anything if starting dirty
      
      
      mysql-test/mysql-test-run.pl:
        Don't delete anything if starting dirty
      1a99afe9
    • unknown's avatar
      Merge polly.local:/home/kaa/src/maint/mysql-5.0-maint · e1daad51
      unknown authored
      into  polly.local:/home/kaa/src/maint/mysql-5.1-maint
      
      
      include/m_string.h:
        Auto merged
      sql/field.cc:
        Auto merged
      sql/field.h:
        Auto merged
      sql/item_cmpfunc.cc:
        Auto merged
      sql/mysql_priv.h:
        Auto merged
      sql/mysqld.cc:
        Auto merged
      strings/strtod.c:
        Auto merged
      e1daad51
    • unknown's avatar
      Some Windows-related fixes to make Microsoft compilers happy. This is for bug #28128. · a5a84c84
      unknown authored
      
      include/m_string.h:
        Reduced the number of elements in log_10[] and log_01[] to not exceed DBL_MAX.
      sql/field.cc:
        Avoid the warning on Windows.
      strings/strtod.c:
        Reduced the number of elements in log_10[] and log_01[] to not exceed DBL_MAX.
      a5a84c84
    • unknown's avatar
      Merge polly.local:/home/kaa/src/maint/bug28121/my50-bug28121 · 7522742b
      unknown authored
      into  polly.local:/home/kaa/src/maint/mysql-5.0-maint
      
      
      sql/field.cc:
        Auto merged
      sql/field.h:
        Auto merged
      sql/item_cmpfunc.cc:
        Auto merged
      sql/mysql_priv.h:
        Auto merged
      sql/mysqld.cc:
        Auto merged
      strings/strtod.c:
        Auto merged
      7522742b
    • unknown's avatar
      Merge polly.local:/home/kaa/src/maint/bug28121/my51-bug28121 · eb79787d
      unknown authored
      into  polly.local:/home/kaa/src/maint/mysql-5.1-maint
      
      
      sql/field.cc:
        Auto merged
      sql/field.h:
        Auto merged
      sql/item_cmpfunc.cc:
        Auto merged
      sql/mysql_priv.h:
        Auto merged
      sql/mysqld.cc:
        Auto merged
      strings/strtod.c:
        Auto merged
      eb79787d
    • unknown's avatar
      Changed the warning messages in the testcase to match 5.1 text. · 66c79c0b
      unknown authored
      This is for bug #28121.
      
      
      mysql-test/r/type_float.result:
        Changed the warning messages in the testcase to match 5.1 text.
      66c79c0b
    • unknown's avatar
      Merge polly.local:/home/kaa/src/maint/bug28121/my50-bug28121 · 5beaf493
      unknown authored
      into  polly.local:/home/kaa/src/maint/bug28121/my51-bug28121
      
      
      include/m_string.h:
        Auto merged
      mysql-test/r/type_float.result:
        Auto merged
      mysql-test/t/type_float.test:
        Auto merged
      sql/init.cc:
        Auto merged
      sql/item_cmpfunc.cc:
        Auto merged
      sql/mysql_priv.h:
        Auto merged
      sql/mysqld.cc:
        Auto merged
      sql/field.cc:
        Manual merge.
      sql/field.h:
        Manual merge.
      5beaf493
    • unknown's avatar
      Fix for bug #28121 "INSERT or UPDATE into DOUBLE(200,0) field being truncated to 31 digits" · f506f5ca
      unknown authored
      When storing a large number to a FLOAT or DOUBLE field with fixed length, it could be incorrectly truncated if the field's length was greater than 31.
      
      This patch also does some code cleanups to be able to reuse code which is common between Field_float::store() and Field_double::store().
      
      
      include/m_string.h:
        Added declarations for log_10 and log_01 from strtod.c
      mysql-test/r/type_float.result:
        Added the testcase for bug #28121 "INSERT or UPDATE into DOUBLE(200,0) field being truncated to 31 digits"
      mysql-test/t/type_float.test:
        Added the testcase for bug #28121 "INSERT or UPDATE into DOUBLE(200,0) field being truncated to 31 digits"
      sql/field.cc:
        Moved common code from Field_float::store() and Field_double:store() to Field_real::truncate()
        Fixed the algorithm to not truncate large input numbers if the field length is greater than 31.
        Fixed rounding to not depend on FLT_MAX/DBL_MAX constants.
      sql/field.h:
        Moved not_fixed member from Field_double to Field_real to allow code reuse between Field_float::store() and Field_double::store()
        Added truncate() method to Field_real which is used by both Field_float and Field_double
      sql/init.cc:
        log_10[] and log_01[] are now defined as statical arrays in strtod.c, no need to pre-computed them.
      sql/item_cmpfunc.cc:
        log_01[] now starts from 1e0, not from 1e-1 for consistency.
      sql/mysql_priv.h:
        Moved log_10[] and log_01[] from mysqld.cc to libmystrings.
      sql/mysqld.cc:
        Moved log_10[] and log_01[] from mysqld.cc to libmystrings.
      strings/strtod.c:
        Define and use log_10[] and log_01[] as static arrays of constants instead of values pre-computed at startup.
      f506f5ca
  4. 27 May, 2007 1 commit
    • unknown's avatar
      Bug #24733 RESET MASTER run before dump with --delete-master-logs · 3ae3920a
      unknown authored
        
        fixed by using flush logs, dumping, then doing PURGE MASTER LOGS TO 'binfile', instead
      of deleting the log files at the beginning.
        
        NOTE: previously the delete-master-logs  would reset the log names back to
      filename.00001. Now the trailing number doesn't get reset. This may need to be
      documented. 
      
      
      client/mysqldump.c:
        changed the code the --delete-master-logs option is used from this:
            
            take locks
            delete bin logs
            do dump (if this is a lock-based dump)
            release locks
            do dump (if this is a consistent-read-dump)
            
         to this:
            
            take locks
            flush logs
            remember the name of the new log
            do dump (if this is a lock-based dump)
            release locks
            do dump (if this is a consistent-read-dump)
            fflush output sql file if specified, to ensure the backup is commited to disk
            --- yes, dump succeeded ---
            do PURGE MASTER LOGS TO up to the new log
      3ae3920a
  5. 25 May, 2007 7 commits
    • unknown's avatar
      Fix for bug #24611 "mysqld crashes when connecting from remote host, and compiled from source". · b833371c
      unknown authored
      On some Linux distributions with both LinuxThreads and NPTL glibc versions available, statically built binaries can crash, because linker defaults to LinuxThreads when linking statically, but calls to external libraries (like libnss) are resolved to NPTL versions.
      
      Since there is nothing we can do in the code to work that around, just give user an advice on how to fix that, if a crash happened on such a binary/OS combination.
      
      
      sql/mysqld.cc:
        Advise a user on possible solutions in case of a crash in a statically built binary on a system with both LinuxThreads and NPTL available.
      b833371c
    • unknown's avatar
      Merge pilot.blaudden:/home/msvensson/mysql/mysql-5.0-maint · aa78ae99
      unknown authored
      into  pilot.blaudden:/home/msvensson/mysql/mysql-5.1-new-maint
      
      
      sql/net_serv.cc:
        Auto merged
      aa78ae99
    • unknown's avatar
      Bug#26664 test suite times out on OS X 64bit · 683bb685
      unknown authored
       - Add checks to make sure net has a vio assigned
       - For example bootstrap will create a fake "net" with vio
         set to 0 
      
      
      sql/net_serv.cc:
        Add checks to make sure net has a vio assigned
      683bb685
    • unknown's avatar
      Merge bk-internal:/home/bk/mysql-5.1-maint · 83d23af2
      unknown authored
      into  pilot.blaudden:/home/msvensson/mysql/mysql-5.1-new-maint
      
      83d23af2
    • unknown's avatar
      Test for bug #26842 moved to a separate file as it uses 'show binlog events'... · 74c2b220
      unknown authored
      Test for bug #26842 moved to a separate file as it uses 'show binlog events' and fails with --binlog-format=row.
      
      
      mysql-test/r/binlog_stm_ps.result:
        New BitKeeper file ``mysql-test/r/binlog_stm_ps.result''
      mysql-test/t/binlog_stm_ps.test:
        New BitKeeper file ``mysql-test/t/binlog_stm_ps.test''
      74c2b220
    • unknown's avatar
      Merge pilot.blaudden:/home/msvensson/mysql/mysql-5.0-maint · 7141dce8
      unknown authored
      into  pilot.blaudden:/home/msvensson/mysql/mysql-5.1-new-maint
      
      
      include/mysql_com.h:
        Auto merged
      sql/item.cc:
        Auto merged
      sql/item.h:
        Auto merged
      sql/sql_yacc.yy:
        Auto merged
      7141dce8
    • unknown's avatar
      Bug #26664 test suite times out on OS X 64bit · 2ff4113c
      unknown authored
       - Make the two "my_net_set*" function only visible when included
         from my_global.h
      
      
      include/mysql_com.h:
        Make the two "my_net_set*" functions only
        visible when included from my_global.h
      2ff4113c