1. 14 Dec, 2006 10 commits
    • unknown's avatar
      Merge polly.local:/tmp/maint/bug24117/my50-bug24117 · 0213e009
      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
      0213e009
    • unknown's avatar
      Fix for bug #24117 "server crash on a FETCH with a cursor on a table which is... · 4d94617b
      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.
      4d94617b
    • unknown's avatar
      Merge kpettersson@bk-internal:/home/bk/mysql-5.0-maint · 3764158e
      unknown authored
      into  kpdesk.mysql.com:/home/thek/dev/mysql-5.0-maint
      
      3764158e
    • unknown's avatar
      Merge kpettersson@bk-internal:/home/bk/mysql-5.0-maint · b7a24f7e
      unknown authored
      into  naruto.:C:/cpp/mysql-5.0-maint
      
      b7a24f7e
    • unknown's avatar
      Merge nocona:/data0/msvensson/mysql-5.0-maint · 6944557e
      unknown authored
      into  shellback.:C:/mysql/mysql-5.0-maint
      
      6944557e
    • unknown's avatar
      BUG#24687 func_misc test fails on win64 · 23bc4939
      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
      23bc4939
    • unknown's avatar
      Merge kpdesk.mysql.com:/home/thek/dev/bug17489/my50-bug17498 · f5f3f432
      unknown authored
      into  kpdesk.mysql.com:/home/thek/dev/mysql-5.0-maint
      
      f5f3f432
    • unknown's avatar
      Bug#17498 failed to put data file in custom directory use "data directory" option · 3c0d0eeb
      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
      3c0d0eeb
    • unknown's avatar
      Merge kpdesk.mysql.com:/home/thek/dev/bug17489/my41-bug17498 · 525ca3f5
      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
      525ca3f5
    • unknown's avatar
      Bug#17498 failed to put data file in custom directory use "data directory" option · e608076f
      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
      e608076f
  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 · 8749ded7
      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.
      8749ded7
    • unknown's avatar
      Makefile.am · 3ec5e033
      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
      3ec5e033
    • unknown's avatar
      Merge polly.local:/tmp/maint/bug24261/my50-bug24261 · 9ff43f41
      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
      9ff43f41
    • unknown's avatar
      Merge neptunus.(none):/home/msvensson/mysql/mysql-4.1-maint · ae0a1991
      unknown authored
      into  neptunus.(none):/home/msvensson/mysql/mysql-5.0-maint
      
      
      mysql-test/t/kill.test:
        Auto merged
      ae0a1991
    • unknown's avatar
      Bug#19410 Test 'kill' fails on Windows + SCO · 569166d4
      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.
      569166d4
    • unknown's avatar
      Merge neptunus.(none):/home/msvensson/mysql/mysql-4.1-maint · 7ab203c4
      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
      7ab203c4
    • unknown's avatar
      Add missing space · ead07276
      unknown authored
      ead07276
    • unknown's avatar
      Bug#19410 Test 'kill' fails on Windows + SCO · d7e559dd
      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.
      d7e559dd
    • unknown's avatar
      Bug#24498 Stack overflow in mysqltest · ecba2302
      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.
      ecba2302
    • unknown's avatar
      0c81ee81
    • unknown's avatar
      Fix problems with "make dist" and running from "binary dist" · 8c3b21b7
      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
      8c3b21b7
  6. 07 Dec, 2006 3 commits