1. 14 Dec, 2006 10 commits
    • unknown's avatar
      Merge polly.local:/tmp/maint/bug24117/my50-bug24117 · db1a2d2d
      unknown authored
      into  polly.local:/home/kaa/src/maint/mysql-5.0-maint
      
      
      mysys/typelib.c:
        Auto merged
      sql/field.cc:
        Auto merged
      sql/field.h:
        Auto merged
      db1a2d2d
    • unknown's avatar
      Fix for bug #24117 "server crash on a FETCH with a cursor on a table which is... · 5b712814
      unknown authored
      Fix for bug #24117 "server crash on a FETCH with a cursor on a table which is not in the table cache"
      
      Problem:
      When creating a temporary field for a temporary table in create_tmp_field_from_field(), a resulting field is created as an exact copy of an original one (in Field::new_field()). However, Field_enum and Field_set contain a pointer (typelib) to memory allocated in the parent table's MEM_ROOT, which under some circumstances may be deallocated later by the time a temporary table is used.
      
      Solution:
      Override the new_field() method for Field_enum and Field_set and create a separate copy of the typelib structure in there.
      
      
      include/typelib.h:
        Added copy_typelib() declaration
      mysql-test/r/sp.result:
        Added a testcase for bug #24117 "server crash on a FETCH with a cursor on a table which is not in the table cache"
      mysql-test/t/sp.test:
        Added a testcase for bug #24117 "server crash on a FETCH with a cursor on a table which is not in the table cache"
      mysys/typelib.c:
        Added copy_typelib() definition
      sql/field.cc:
        Create a copy of the internal 'typelib' structure when copying Field_enum of Field_set objects.
      sql/field.h:
        Override new_field method in Field_enum (and Field_set) to copy the typelib structure.
      5b712814
    • unknown's avatar
      Merge kpettersson@bk-internal:/home/bk/mysql-5.0-maint · 931dcc8a
      unknown authored
      into  kpdesk.mysql.com:/home/thek/dev/mysql-5.0-maint
      
      
      931dcc8a
    • unknown's avatar
      Merge kpettersson@bk-internal:/home/bk/mysql-5.0-maint · 2772d72a
      unknown authored
      into  naruto.:C:/cpp/mysql-5.0-maint
      
      
      2772d72a
    • unknown's avatar
      Merge nocona:/data0/msvensson/mysql-5.0-maint · e1411580
      unknown authored
      into  shellback.:C:/mysql/mysql-5.0-maint
      
      
      e1411580
    • unknown's avatar
      BUG#24687 func_misc test fails on win64 · 29bcffd7
      unknown authored
       - Use same precision (milliseconds) for all time functions
         used  when calculating time for pthread_cond_timedwait
       - Use 'GetSystemTimeAsFileTime' for both start and curr time
      
      
      include/config-win.h:
        Move all defines for 'pthread_cond_timedwait' to my_pthread.h
      include/my_global.h:
        Move all defines for 'pthread_cond_timedwait' to my_pthread.h
      include/my_pthread.h:
        Redefine "struct timespec" to better suite the needs 
        of 'pthread_cond_timedwait' for windows implementation
        Add windows specific define for set_timespec_nsec
        Move all defines related to pthread_cond_timed wait to same file
        Declare union for reading FILETIME as __int64 with correct alignment
      mysys/my_wincond.c:
        Use 'GetSystemTimeAsFileTime()' both for getting start and current time
        Use new members of "struct timespec"
        Make sure the calculated timeout value never exceeds the value
        passed to set_timespec/set_timespec_nsec
      server-tools/instance-manager/guardian.cc:
        Use set_timespec macro
      server-tools/instance-manager/instance.cc:
        Use set_timespec macro
      29bcffd7
    • unknown's avatar
      Merge kpdesk.mysql.com:/home/thek/dev/bug17489/my50-bug17498 · 8359968b
      unknown authored
      into  kpdesk.mysql.com:/home/thek/dev/mysql-5.0-maint
      
      
      8359968b
    • unknown's avatar
      Bug#17498 failed to put data file in custom directory use "data directory" option · e9133433
      unknown authored
      Merged 4.1->5.0. Updated myisam.test
      
      
      mysql-test/r/myisam.result:
        updated result file
      mysql-test/t/myisam.test:
        Removing symlink specific test from myisam test
      e9133433
    • unknown's avatar
      Merge kpdesk.mysql.com:/home/thek/dev/bug17489/my41-bug17498 · d2b950f0
      unknown authored
      into  kpdesk.mysql.com:/home/thek/dev/bug17489/my50-bug17498
      
      
      mysql-test/r/symlink.result:
        Auto merged
      mysql-test/t/symlink.test:
        Auto merged
      mysql-test/r/myisam.result:
        SCCS merged
      mysql-test/t/myisam.test:
        SCCS merged
      d2b950f0
    • unknown's avatar
      Bug#17498 failed to put data file in custom directory use "data directory" option · e524063b
      unknown authored
      - When this bug was corrected it changed the behavior 
        for data/index directory in the myisam test case.
      - This patch moves the OS depending tests to a non-windows
        test file.
      
      
      mysql-test/r/myisam.result:
        moved test from myisam to symlink; new result file
      mysql-test/r/symlink.result:
        moved test from myisam to symlink; new result file
      mysql-test/t/myisam.test:
        moved test from myisam to symlink
      mysql-test/t/symlink.test:
        moved test from myisam to symlink
      e524063b
  2. 13 Dec, 2006 2 commits
  3. 11 Dec, 2006 13 commits
  4. 10 Dec, 2006 1 commit
  5. 08 Dec, 2006 11 commits
    • unknown's avatar
      Merge siva.hindu.god:/usr/home/tim/m/bk/tmp/fix-Makefile-perl/41 · fdf1a633
      unknown authored
      into  siva.hindu.god:/usr/home/tim/m/bk/tmp/fix-Makefile-perl/50
      
      
      sql/sql_class.h:
        Auto merged
      Makefile.am:
        Manual merge.
      fdf1a633
    • unknown's avatar
      Makefile.am · b8151c7e
      unknown authored
          - test* targets are identical (as much as possible) to 5.0 & 5.1 versions
          - use @PERL@ ./mysql-test-run.pl, instead of depending on /usr/bin/perl location
          - PHONY: target includes all test targets
      
      
      Makefile.am:
        - test* targets are identical (as much as possible) to 5.0 & 5.1 versions
        - use @PERL@ ./mysql-test-run.pl, instead of depending on /usr/bin/perl location
        - PHONY: target includes all test targets
      b8151c7e
    • unknown's avatar
      Merge polly.local:/tmp/maint/bug24261/my50-bug24261 · 3288ddf6
      unknown authored
      into  polly.local:/home/kaa/src/maint/mysql-5.0-maint
      
      
      mysql-test/r/func_in.result:
        Auto merged
      mysql-test/t/func_in.test:
        Auto merged
      sql/opt_range.cc:
        Auto merged
      3288ddf6
    • unknown's avatar
      Merge neptunus.(none):/home/msvensson/mysql/mysql-4.1-maint · 8ba0259a
      unknown authored
      into  neptunus.(none):/home/msvensson/mysql/mysql-5.0-maint
      
      
      mysql-test/t/kill.test:
        Auto merged
      8ba0259a
    • unknown's avatar
      Bug#19410 Test 'kill' fails on Windows + SCO · 0abeff72
      unknown authored
      
      mysql-test/t/kill.test:
        Move the connect of second connection to just before the query to be killed are sent.
        This introduces less variance since the connect time is not included in the delay
        we want between send of query and kill.
      0abeff72
    • unknown's avatar
      Merge neptunus.(none):/home/msvensson/mysql/mysql-4.1-maint · 47b8d63d
      unknown authored
      into  neptunus.(none):/home/msvensson/mysql/mysql-5.0-maint
      
      
      client/mysqltest.c:
        Auto merged
      mysql-test/t/mysqladmin.test:
        Auto merged
      sql/sql_class.h:
        Auto merged
      47b8d63d
    • unknown's avatar
      Add missing space · 8fc4864e
      unknown authored
      8fc4864e
    • unknown's avatar
      Bug#19410 Test 'kill' fails on Windows + SCO · e8d82549
      unknown authored
       - Use "mysql_field_count" to determine if there is a need to
         call "mysql_store_result"
      
      
      client/mysqltest.c:
        Only call 'mysql_store_result' if 'mysql_field_count' is greater than 0
        indicating that this query has a result set.  This change is mainly since
        if mysql_store_result fails the value returned by mysql_field_count will be reset.
      e8d82549
    • unknown's avatar
      Bug#24498 Stack overflow in mysqltest · 33a098bf
      unknown authored
       - Thanks to Vasil Dimov for the patch!
      
      
      client/mysqltest.c:
        Use my_snprintf to protect against exceeding size of buff
        Since variable name and valu might not be null terminated it's necessary to
        provide the length of the format specifiers.
      33a098bf
    • unknown's avatar
      ca1aebbd
    • unknown's avatar
      Fix problems with "make dist" and running from "binary dist" · 9a864bb7
      unknown authored
      
      mysql-test/Makefile.am:
        Add missing ($DESTDIR) wich cause "make discheck" to fail
      scripts/make_binary_distribution.sh:
        Add std_data/*.MY* files to binary dist
      9a864bb7
  6. 07 Dec, 2006 3 commits