1. 12 Oct, 2006 3 commits
  2. 11 Oct, 2006 23 commits
    • unknown's avatar
      Merge bk-internal:/home/bk/mysql-5.1-maint · 1f816053
      unknown authored
      into  shellback.(none):/home/msvensson/mysql/mysql-5.1-maint
      
      
      1f816053
    • unknown's avatar
      Merge shellback.(none):/home/msvensson/mysql/mysql-5.0-maint · 067134b5
      unknown authored
      into  shellback.(none):/home/msvensson/mysql/mysql-5.1-maint
      
      
      netware/BUILD/mwenv:
        Auto merged
      067134b5
    • unknown's avatar
      Check that TERM has been set to avoid problem "Error opening · 576fd5a5
      unknown authored
      terminal: unknown" when the script is executed using non interactive ssh
      Set TERM to "linux" as default
      
      
      netware/BUILD/mwenv:
        Check that TERM has been set to avoid problem "Error opening
        terminal: unknown" when the script is executed using non interactive ssh
      576fd5a5
    • unknown's avatar
      Merge bk-internal:/home/bk/mysql-5.1-maint · fff2821f
      unknown authored
      into  shellback.(none):/home/msvensson/mysql/mysql-5.1-maint
      
      
      client/mysqltest.c:
        Auto merged
      mysql-test/mysql-test-run.pl:
        Merge
      fff2821f
    • unknown's avatar
      Merge shellback.(none):/home/msvensson/mysql/mysql-5.0-maint · 6d6e840c
      unknown authored
      into  shellback.(none):/home/msvensson/mysql/mysql-5.1-maint
      
      
      mysql-test/mysql-test-run.pl:
        Auto merged
      6d6e840c
    • unknown's avatar
      Merge shellback.(none):/home/msvensson/mysql/mysql-4.1-maint · 8b1f416b
      unknown authored
      into  shellback.(none):/home/msvensson/mysql/mysql-5.0-maint
      
      
      mysql-test/mysql-test-run.pl:
        Auto merged
      8b1f416b
    • unknown's avatar
      mtr_im_stop returns 1 if all is well · 6c0ad741
      unknown authored
      6c0ad741
    • unknown's avatar
      Merge shellback.(none):/home/msvensson/mysql/mysql-5.0-maint · 4b134f4d
      unknown authored
      into  shellback.(none):/home/msvensson/mysql/mysql-5.1-maint
      
      
      BitKeeper/deleted/.del-bdb-alter-table-2-master.opt:
        Auto merged
      mysql-test/lib/mtr_cases.pl:
        Auto merged
      4b134f4d
    • unknown's avatar
      Merge shellback.(none):/home/msvensson/mysql/mysql-4.1-maint · 88820b41
      unknown authored
      into  shellback.(none):/home/msvensson/mysql/mysql-5.0-maint
      
      
      mysql-test/lib/mtr_cases.pl:
        Auto merged
      mysql-test/mysql-test-run.pl:
        Auto merged
      88820b41
    • unknown's avatar
      Improve restart logic all code to detect restart is now in the functions · a0081378
      unknown authored
      'run_testcase_need_master/slave_restart'
      Remove the faulty qw
      Only look for mysql_fix_privilege_tables if not windows
      
      
      mysql-test/lib/mtr_cases.pl:
        Move all code to determine when to restart into 'run_testcase_need_master/slave_restart' 
        Add possibility to wite --force-restart in -master.opt file, this will force a restart and
        since master is not started with any special options there is no need to restart
        again afterwards.
      mysql-test/mysql-test-run.pl:
        Remove the qw surrounding ENV{'LD_LIBRARY_PATH'}
        Only look for the sh script mysql_fix_privileges when not on windows
        Remove warnings about using unitialized variables
        Improve the restart logic, eall code to determine when to restart is
        now in run_testcase_need_master_restart and run_testcase_need_slave_restart
      mysql-test/t/bdb-alter-table-2-master.opt:
        Use --force-restart
      mysql-test/t/not_embedded_server-master.opt:
        Use --force-restart
      a0081378
    • unknown's avatar
      Merge ahristov@bk-internal.mysql.com:/home/bk/mysql-5.1-maint · 1e160fb5
      unknown authored
      into  example.com:/work/bug23074/my51-bug23074
      
      
      1e160fb5
    • unknown's avatar
      Merge polly.local:/tmp/maint/bug11655/my50-bug11655 · 186b8312
      unknown authored
      into  polly.local:/tmp/maint/bug11655/my51-bug11655
      
      
      include/my_time.h:
        Auto merged
      mysql-test/r/func_sapdb.result:
        Auto merged
      sql-common/my_time.c:
        Auto merged
      sql/field.cc:
        Auto merged
      sql/item_timefunc.cc:
        Auto merged
      sql/time.cc:
        Auto merged
      mysql-test/r/func_time.result:
        Manually merged
      mysql-test/t/func_time.test:
        Manually merged
      186b8312
    • unknown's avatar
      Merge polly.local:/tmp/maint/bug11655/my41-bug11655 · 78f47fbf
      unknown authored
      into  polly.local:/tmp/maint/bug11655/my50-bug11655
      
      
      sql/time.cc:
        Auto merged
      include/my_time.h:
        Manually merged
      mysql-test/r/func_sapdb.result:
        Manually merged
      mysql-test/r/func_time.result:
        Manually merged
      mysql-test/t/func_time.test:
        Manually merged
      sql-common/my_time.c:
        Manually merged
      sql/field.cc:
        Manually merged
      sql/item_timefunc.cc:
        Manually merged
      78f47fbf
    • unknown's avatar
      Merge example.com:/work/bug23074/my50-bug23074 · 28eb8e21
      unknown authored
      into  example.com:/work/bug23074/my51-bug23074
      
      
      storage/myisam/sort.c:
        SCCS merged
      28eb8e21
    • unknown's avatar
      Merge shellback.(none):/home/msvensson/mysql/mysql-5.0-maint · 2e45f430
      unknown authored
      into  shellback.(none):/home/msvensson/mysql/mysql-5.1-maint
      
      
      client/mysqltest.c:
        Auto merged
      2e45f430
    • unknown's avatar
      Merge shellback.(none):/home/msvensson/mysql/mysql-4.1-maint · ba1f194f
      unknown authored
      into  shellback.(none):/home/msvensson/mysql/mysql-5.0-maint
      
      
      client/mysqltest.c:
        Auto merged
      ba1f194f
    • unknown's avatar
      Fix some bad code in mysqltest.c which cause segfault · 3caef95e
      unknown authored
      
      client/mysqltest.c:
        Remove vsnprintf() and DBUG_PRINT from die() function, as it's not portable to Windows, and it's not allowed to
        call vsnprintf() and then vfprintf() with the same args.
        Can't just print the buffer here, because the buffer is a fixed size.
        If the message is longer than will fit int he buffer, it would get
        truncated on Unix, and the full thing would be printed on Windows.
        This DBUG_PRINT isn't important enough for this hassle, so just get rid
        of it.
      3caef95e
    • unknown's avatar
      Merge example.com:/work/bug23074/my41-bug23074 · ca3cafc0
      unknown authored
      into  example.com:/work/bug23074/my50-bug23074
      
      
      myisam/sort.c:
        Auto merged
      ca3cafc0
    • unknown's avatar
      Fix a typo regarding checking whether HA_VAR_LENGTH_KEY is · a4a319cf
      unknown authored
      set. This has always worked because when flag is !=0 then
      HA_VAR_LENGTH_KEY is always set. Therefore, a test case cannot
      reveal a faulty behavior.
      
      Fix for bug#23074: typo in myisam/sort.c
      
      
      myisam/sort.c:
        fix typo. Nevertheless, it has worked as expected
        because when a bit in flag is set HA_VAR_LENGTH_KEY has
        been always set too. Actually, no problem exposed through
        DDL.
      a4a319cf
    • unknown's avatar
      Merge naruto.:C:/cpp/bug21811/my51-bug21811 · e67e4e4c
      unknown authored
      into  naruto.:C:/cpp/mysql-5.1-new-maint
      
      
      include/my_time.h:
        Auto merged
      mysql-test/r/func_time.result:
        Auto merged
      sql/item_timefunc.cc:
        Auto merged
      e67e4e4c
    • unknown's avatar
      BUG#21811 Odd casting with date + INTERVAL arithmetic · c247bf9d
      unknown authored
      - Type casting was not consequent, thus when adding a DATE type with
        a WEEK interval the result tpe was DATETIME and not DATE as is the
        norm.
      - By changing the order of the date type enumerations the type casting
        bug is resolved. To comply with the new order the array 
        interval_type_to_name needed to change accordingly.
      
      
      include/my_time.h:
        Changed enumeration order to make week interval appear in a more
        logical order. This affects type casting when a date is added to an
        interval.
      sql/time.cc:
        Moved string WEEK to match enumeration in interval_type
      c247bf9d
    • unknown's avatar
      Fix some bad code in mysqltest.c and mysql-test-run.pl which could cause... · da0b4e97
      unknown authored
      Fix some bad code in mysqltest.c and mysql-test-run.pl which could cause segfault / wrong LD_LIBRARY_PATH settings.
      
      
      client/mysqltest.c:
        Remove vsnprintf() and DBUG_PRINT from die() function, as it's not portable to Windows, and it's not allowed to call vsnprintf() and then vfprintf() with the same args.
        
        Can't just print the buffer here, because the buffer is a fixed size.  If the message is longer than will fit int he buffer, it would get truncated on Unix, and the full thing would be printed on Windows.  This DBUG_PRINT isn't important enough for this hassle, so just get rid of it.
      mysql-test/mysql-test-run.pl:
        Remove bogus quoting of $ENV{LD_LIBRARY_PATH} and $ENV{DYLD_LIBRARY_PATH} in environment_setup().
      da0b4e97
    • unknown's avatar
      BUG#21524 ER_CANT_OPEN_LIBRARY output message used to confuse mysqltest on... · 46a3e809
      unknown authored
      BUG#21524 ER_CANT_OPEN_LIBRARY output message used to confuse mysqltest on Solaris. Varying part of the message is now suppressed 
      
      
      mysql-test/r/ps.result:
        ps.result updated
      mysql-test/t/ps.test:
        The error code and the additional output grepped out of ER_CANT_OPEN_LIBRARY message due to the output varies across different platforms
      46a3e809
  3. 10 Oct, 2006 1 commit
    • unknown's avatar
      BUG#21524 ps.test updated to meet recent changes in SQL parser · de443be6
      unknown authored
      
      mysql-test/r/ps.result:
        brand new ps.result recorded out of updated ps.test output
      mysql-test/t/disabled.def:
        ps.test enabled anew
      mysql-test/t/ps.test:
        ps.test updated to ensure FLUSH/RESET are not allowed in stored functions at both parse and execution time
      de443be6
  4. 09 Oct, 2006 5 commits
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-5.1-maint · 525a7cb5
      unknown authored
      into  zippy.cornsilk.net:/home/cmiller/work/mysql/bug17583/my51-bug17583
      
      
      BitKeeper/etc/collapsed:
        auto-union
      client/mysql.cc:
        Auto merged
      mysql-test/r/mysql.result:
        Auto merged
      mysql-test/t/mysql.test:
        Auto merged
      525a7cb5
    • unknown's avatar
      Merge zippy.cornsilk.net:/home/cmiller/work/mysql/bug17583/my50-bug17583 · 7a717661
      unknown authored
      into  zippy.cornsilk.net:/home/cmiller/work/mysql/bug17583/my51-bug17583
      
      
      BitKeeper/etc/collapsed:
        auto-union
      client/mysql.cc:
        Auto merged
      mysql-test/r/mysql.result:
        Auto merged
      mysql-test/t/mysql.test:
        Auto merged
      7a717661
    • unknown's avatar
      Bug#17583: mysql drops connection when stdout is not writable · 6c91170e
      unknown authored
      Porting forward tests to replacement files.
      
      
      mysql-test/r/mysql.result:
        Ported changes from previous commit to new file.
      mysql-test/t/mysql.test:
        Ported changes from previous commit to new file.
      6c91170e
    • unknown's avatar
      Merge zippy.cornsilk.net:/home/cmiller/work/mysql/bug17583/my41-bug17583 · 426b0f45
      unknown authored
      into  zippy.cornsilk.net:/home/cmiller/work/mysql/bug17583/my50-bug17583
      
      
      BitKeeper/deleted/.del-collapsed~fbec3523369aae99:
        Delete: BitKeeper/etc/collapsed
      BitKeeper/etc/collapsed:
        'Auto converge'
      client/mysql.cc:
        Auto merged
      BitKeeper/deleted/.del-mysql_client.result:
        File is gone.
      BitKeeper/deleted/.del-mysql_client.test:
        File is gone.
      426b0f45
    • unknown's avatar
      Bug#17583: mysql drops connection when stdout is not writable · 76b353d3
      unknown authored
      When the client program had its stdout file descriptor closed by the calling
      shell, after some amount of work (enough to fill a socket buffer) the server 
      would complain about a packet error and then disconnect the client.
      
      This is a serious security problem.  If stdout is closed before the mysql is
      exec()d, then the first socket() call allocates file number 1 to communicate
      with the server.  Subsequent write()s to that file number (as when printing
      results that come back from the database) go back to the server instead in 
      the command channel.  So, one should be able to craft data which, upon being
      selected back from the server to the client, and injected into the command
      stream become valid MySQL protocol to do something nasty when sent /back/ to 
      the server.
      
      The solution is to close explicitly the file descriptor that we *printf() to, 
      so that the libc layer and the OS layer both agree that the file is closed.
      
      
      BitKeeper/etc/collapsed:
        BitKeeper file /home/cmiller/work/mysql/bug17583/my41-bug17583/BitKeeper/etc/collapsed
      client/mysql.cc:
        If standard output is not open (specifically, if dup() of its file number 
        fails) then we explicitly close it so that future uses of the file descriptor
        behave correctly for a closed file.
      mysql-test/r/mysql_client.result:
        Prove that the problem of writing SQL output to the command socket no longer
        exists.
      mysql-test/t/mysql_client.test:
        Prove that the problem of writing SQL output to the command socket no longer
        exists.
      76b353d3
  5. 08 Oct, 2006 8 commits