1. 15 Apr, 2006 1 commit
    • unknown's avatar
      Another long patch to remove the rest of the OS2 support. · 04cd4791
      unknown authored
      include/config-win.h:
        Removing OS2 stuff
      include/errmsg.h:
        Removing OS2 stuff
      include/m_string.h:
        OS2 removal
      include/my_global.h:
        OS2 removal
      include/my_net.h:
        OS2 removal
      include/my_no_pthread.h:
        OS2 removal
      include/my_pthread.h:
        OS2 removal
      include/thr_alarm.h:
        OS2 removal
      mysys/default.c:
        OS2 removal
      mysys/mf_path.c:
        OS2 removal
      mysys/mf_tempdir.c:
        OS2 removal
      mysys/mf_tempfile.c:
        OS2 removal
      mysys/my_access.c:
        OS2 removal
      mysys/my_clock.c:
        OS2 removal
      mysys/my_copy.c:
        OS2 removal
      mysys/my_create.c:
        OS2 removal
      mysys/my_dup.c:
        OS2 removal
      mysys/my_file.c:
        OS2 removal
      mysys/my_getwd.c:
        OS2 removal
      mysys/my_init.c:
        OS2 removal
      mysys/my_lib.c:
        OS2 removal
      mysys/my_lock.c:
        OS2 removal
      mysys/my_mkdir.c:
        OS2 removal
      mysys/my_open.c:
        OS2 removal
      mysys/my_pthread.c:
        OS2 removal
      mysys/my_redel.c:
        OS2 removal
      mysys/my_sleep.c:
        OS2 removal
      mysys/my_static.c:
        OS2 removal
      mysys/my_thr_init.c:
        OS2 removal
      mysys/thr_alarm.c:
        OS2 removal
      storage/myisam/myisamchk.c:
        OS2 removal
      04cd4791
  2. 10 Apr, 2006 1 commit
    • unknown's avatar
      Bug#15069 [patch] my_print_defaults does'nt care --sysconfdir · 199752c4
      unknown authored
       - Grab the path from "configure --sysconfdir=<path>" and set it as
         the first place to look for my.cnf files
         Do this both in Makefiles for libmysql and mysys
       - Patch provided by Francesco Riosa. Thank you!
      
      
      libmysql/Makefile.shared:
        Grab the path from "--sysconfdir=<path>" into the defined variable DEFAULT_SYSYCONFDIR
      mysys/Makefile.am:
        Grab the path from "--sysconfdir=<path>" into the defined variable DEFAULT_SYSYCONFDIR
      mysys/default.c:
        Use DEFAULT_SYSCONFDIR as first place to look for my.cnf file if "--sysconfdir=<path>" been specified as argument to configure
      199752c4
  3. 30 Sep, 2005 1 commit
  4. 20 Sep, 2005 1 commit
  5. 09 Sep, 2005 1 commit
    • unknown's avatar
      A fix (bug #12917: The --defaults-extra-file option is ignored by the 5.0 client binaries). · e54ccb5b
      unknown authored
      
      mysql-test/mysql-test-run.pl:
        A fix (bug #12917: The --defaults-extra-file option is ignored by the 5.0 client binaries).
        MYSQL_MY_PRINT_DEFAULTS added
      mysql-test/mysql-test-run.sh:
        A fix (bug #12917: The --defaults-extra-file option is ignored by the 5.0 client binaries).
        MYSQL_MY_PRINT_DEFAULTS added
      mysys/default.c:
        A fix (bug #12917: The --defaults-extra-file option is ignored by the 5.0 client binaries).
        Set defaults_extra_file as we use it widely.
      e54ccb5b
  6. 29 Jul, 2005 1 commit
    • unknown's avatar
      Ensure we free all items for prepared statements · 3bd6699f
      unknown authored
      Before the fix in ~Prepared_statments we got a memory leak when executing mysql_client_test.test
      Note that test 'variables.test' fails.
      This will be fixed when Jimw pushes the fix for Bug 10351
      
      
      mysys/default.c:
        Fixed typo
      sql/item.cc:
        More debugging information
      sql/sql_prepare.cc:
        More debugging information
        Ensure we free all items for prepared statements
        Before the fix in ~Prepared_statments we got a memory leak when executing mysql_client_test.test
      3bd6699f
  7. 28 Jul, 2005 1 commit
    • unknown's avatar
      Cleanups during review of new code · c8e2aee9
      unknown authored
      Ensure mysql_close() is called if mysql_set_character_set() fails
      
      
      libmysql/libmysql.c:
        Indentation cleanup
      mysql-test/r/select.result:
        Fix bad merge & align code with 4.1
      mysql-test/r/type_newdecimal.result:
        Added test of extreme case
      mysql-test/t/select.test:
        Fix bad merge & align code with 4.1
      mysql-test/t/type_newdecimal.test:
        Added test of extreme case
      mysys/charset.c:
        Removed not used variable
      mysys/default.c:
        Simplify code
      sql-common/client.c:
        Ensure mysql_close() is called if mysql_set_character_set() fails
      sql/log.cc:
        strmov(strmov())  -> strxmov()
      sql/sp.cc:
        Indentation fixes
      sql/sql_acl.cc:
        Indentation fixes
      sql/sql_base.cc:
        Added commments
        Moved variable to inner block
      sql/sql_show.cc:
        Simple optimization (removed loop variable)
      sql/sql_trigger.cc:
        strmov(strmov())  -> strxmov()
      strings/decimal.c:
        Indentation fixes
      c8e2aee9
  8. 18 Jul, 2005 1 commit
    • unknown's avatar
      Cleanups during review · 2e9d6d7e
      unknown authored
      Changed defaults option --instance to --defaults-group-suffix
      Changed option handling to allow --defaults-file, --defaults-extra-file and --defaults-group-suffix to be given in any order
      Changed MYSQL_INSTANCE to MYSQL_GROUP_SUFFIX
      mysql_print_defaults now understands --defaults-group-suffix
      Remove usage of my_tempnam() (not safe function)
      if( -> if ( and while( to while (
      
      
      BitKeeper/deleted/.del-my_tempnam.c~a8562f15dad3012f:
        Delete: mysys/my_tempnam.c
      VC++Files/client/mysqlclient.dsp:
        Remove not used file my_tempnam.c
      VC++Files/client/mysqlclient_ia64.dsp:
        Remove not used file my_tempnam.c
      VC++Files/libmysql/libmysql.dsp:
        Remove not used file my_tempnam.c
      VC++Files/libmysql/libmysql_ia64.dsp:
        Remove not used file my_tempnam.c
      VC++Files/mysys/mysys.dsp:
        Remove not used file my_tempnam.c
      VC++Files/mysys/mysys_ia64.dsp:
        Remove not used file my_tempnam.c
      client/mysql.cc:
        Change to use get_defaults_options()
        Remove compiler warnings
      client/mysqldump.c:
        Indentation fixes
        Use quoted table name for 'primary_key_fields'
      extra/my_print_defaults.c:
        Add support for --defaults-group-suffix
        change to use get_default_options()
      extra/replace.c:
        Replace my_tempnam() with create_tmp_file() to allow us to remove my_tempnam.c
      include/config-win.h:
        Added DEFAULT_GROUP_SUFFIX_ENV
      include/my_sys.h:
        Change defaults_instance -> defaults_group_suffix
        Change get_defaults_files -> get_defaults_options
      libmysql/Makefile.shared:
        Added DEFAULT_GROUP_SUFFIX_ENV
      mysys/Makefile.am:
        Added DEFAULT_GROUP_SUFFIX_ENV
        Remove my_tempnam.c
      mysys/default.c:
        Changed --instance to --defaults-group-suffix
        Changed MYSQL_INSTANCE to MYSQL_GROUP_SUFFIX and moved the name to Makefile.am
        (mysys shouldn't by MySQL independent)
        Changed option handling to allow --defaults-file, --defaults-extra-file and --defaults-group-suffix to be given in any order
      mysys/default_modify.c:
        Optimized code to use allocated space more efficently
        Reduce code size
        Ensure that realloc() works independent of argument size
      mysys/my_bitmap.c:
        Added missing return
      sql/ha_innodb.cc:
        Change if( -> if (
      sql/ha_ndbcluster.cc:
        Change while( -> while (
      sql/item_cmpfunc.cc:
        Break loop early (simple optimization)
      sql/item_strfunc.cc:
        Change if( -> if (
      sql/log.cc:
        Fixed comment
      sql/mysqld.cc:
        Change if( -> if (
      sql/opt_range.cc:
        while( -> while (
        if( -> if (
      sql/parse_file.cc:
        Change if( -> if (
      sql/sql_cache.cc:
        while( -> while (
      sql/sql_parse.cc:
        Change if( -> if (
      sql/sql_prepare.cc:
        Added comment
      sql/sql_select.cc:
        while( -> while (
        Removed index variable by incrementing pointer
      sql/sql_show.cc:
        Change if( -> if (
      sql/sql_yacc.yy:
        Change if( -> if (
      tests/mysql_client_test.c:
        Added cast to first argument to bzero()
      2e9d6d7e
  9. 06 Jul, 2005 1 commit
    • unknown's avatar
      Look in the directory above the executable for the my.cnf/ini, on Windows, as · 2633158e
      unknown authored
      the new installer and GUI tools expect. (Bug #10419) Also, dynamically bind to
      GetSystemWindowsDirectory() so that it works on all platforms. (Bug #5354)
      
      
      mysys/default.c:
        Dynamically bind to GetSystemWindowsDirectory() or emulate it, and also look
        in directory above the executable to find my.cnf/ini on Windows.
      2633158e
  10. 13 Jun, 2005 1 commit
    • unknown's avatar
      fixes for windows 64-bit compiler warnings · f16f0b2a
      unknown authored
      heap/hp_hash.c:
        fix for windows 64-bit compiler warnings
      heap/hp_update.c:
        fix for windows 64-bit compiler warnings
      mysys/default.c:
        fix for windows 64-bit compiler warnings
      mysys/default_modify.c:
        fix for windows 64-bit compiler warnings
      mysys/mf_iocache.c:
        fix for windows 64-bit compiler warnings
      mysys/mf_keycache.c:
        fix for windows 64-bit compiler warnings
      mysys/my_alloc.c:
        fix for windows 64-bit compiler warnings
      mysys/my_getopt.c:
        fix for windows 64-bit compiler warnings
      mysys/my_mmap.c:
        fix for windows 64-bit compiler warnings
      mysys/my_once.c:
        fix for windows 64-bit compiler warnings
      mysys/string.c:
        fix for windows 64-bit compiler warnings
      sql-common/client.c:
        fix for windows 64-bit compiler warnings
      sql/field.cc:
        fix for windows 64-bit compiler warnings
      sql/gstream.cc:
        fix for windows 64-bit compiler warnings
      sql/ha_myisam.cc:
        fix for windows 64-bit compiler warnings
      sql/ha_myisammrg.cc:
        fix for windows 64-bit compiler warnings
      sql/item.cc:
        fix for windows 64-bit compiler warnings
      sql/item.h:
        fix for windows 64-bit compiler warnings
      sql/item_cmpfunc.cc:
        fix for windows 64-bit compiler warnings
      sql/password.c:
        fix for windows 64-bit compiler warnings
      sql/set_var.h:
        fix for windows 64-bit compiler warnings
      strings/ctype-big5.c:
        fix for windows 64-bit compiler warnings
      strings/ctype-bin.c:
        fix for windows 64-bit compiler warnings
      strings/ctype-cp932.c:
        fix for windows 64-bit compiler warnings
      strings/ctype-eucjpms.c:
        fix for windows 64-bit compiler warnings
      strings/ctype-mb.c:
        fix for windows 64-bit compiler warnings
      strings/ctype-simple.c:
        fix for windows 64-bit compiler warnings
      strings/ctype-sjis.c:
        fix for windows 64-bit compiler warnings
      strings/ctype-uca.c:
        fix for windows 64-bit compiler warnings
      strings/ctype-ucs2.c:
        fix for windows 64-bit compiler warnings
      strings/ctype-ujis.c:
        fix for windows 64-bit compiler warnings
      strings/ctype-utf8.c:
        fix for windows 64-bit compiler warnings
      strings/ctype.c:
        fix for windows 64-bit compiler warnings
      strings/decimal.c:
        fix for windows 64-bit compiler warnings
      strings/xml.c:
        fix for windows 64-bit compiler warnings
      f16f0b2a
  11. 07 Jun, 2005 1 commit
  12. 06 Jun, 2005 1 commit
    • unknown's avatar
      fixes for compiler warnings from VC6 · dd00eae5
      unknown authored
      client/mysqltest.c:
        undef popen prior to redefining it to avoid compiler warning
        cast len argument to replace_dynstr_append_mem to int.  This should be ok because the 
        replace_dynstr_append method uses strlen to accomplish the same thing.
      myisam/mi_create.c:
        cast myisam_block_size down to uint16 to match the struct element block_length
      mysys/default.c:
        add (char*) cast to make compiler happy
      mysys/my_handler.c:
        add (my_bool) cast to make compiler happy
      dd00eae5
  13. 18 May, 2005 3 commits
    • unknown's avatar
      New file default_modify.c. Fixed a typo on mysqld.cc · 1150c4aa
      unknown authored
      Changed name of function my_correct_default_file to
      modify_defaults_file. Improved function and fixed some
      bugs in it.
      
      
      include/my_sys.h:
        Changed function name.
      include/mysql_com.h:
        New function, modify_defaults_file()
      libmysql/Makefile.shared:
        New file, default_modify.lo
      libmysql/libmysql.def:
        New function, modify_defaults_file() and fixed version number.
      libmysqld/libmysqld.def:
        New function, modify_defaults_file()
      mysys/Makefile.am:
        New file, default_modify.c
      mysys/default.c:
        Removed function from default.c. New, corresponding one is in default_modify.c,
        name is modify_defaults_file.
      server-tools/instance-manager/commands.cc:
        Changed function name.
      sql/mysqld.cc:
        Fixed typo.
      1150c4aa
    • unknown's avatar
      fix comments · 4cadc15e
      unknown authored
      server-tools/instance-manager/commands.cc:
        fix column name
      4cadc15e
    • unknown's avatar
      default.c: · 294a1f5d
      unknown authored
        Disabled use of GetSystemWindowsDirectory() when compiled with VC6
      mysql.cc:
        Removed unused variable 'field' from print_warnings()
      libmysql.dsp:
        Added "my_chsize.c" and "my_seek.c"
      mysqlclient.dsp:
        Added "my_chsize.c"
      
      
      VC++Files/client/mysqlclient.dsp:
        Added "my_chsize.c"
      VC++Files/libmysql/libmysql.dsp:
        Added "my_chsize.c" and "my_seek.c"
      client/mysql.cc:
        Removed unused variable 'field' from print_warnings()
      mysys/default.c:
        Disabled use of GetSystemWindowsDirectory() when compiled with VC6
      294a1f5d
  14. 16 May, 2005 1 commit
  15. 15 May, 2005 1 commit
    • unknown's avatar
      post-review fixes · 7317af46
      unknown authored
      include/my_sys.h:
        added prototype for the defaults correction function
      libmysql/Makefile.shared:
        my_chsize added to libmysql to let my_correct_defaults_file be used from libmysql
      mysys/default.c:
        New defaults function added we use it to correct defaults file. Currently the function doesn't lock defaults
        file. This is because of the linking and backwards-compatibility issues. This needs to be fixed later.
      mysys/my_chsize.c:
        comment added
      server-tools/instance-manager/buffer.cc:
        cleanup
      server-tools/instance-manager/commands.cc:
        refactoring: removed do_command method from most of the classes
      server-tools/instance-manager/commands.h:
        cleanup
      server-tools/instance-manager/guardian.cc:
        cleanup
      server-tools/instance-manager/instance.cc:
        cleanup
      server-tools/instance-manager/instance_map.cc:
        cleanup
      server-tools/instance-manager/instance_options.cc:
        cleanup
      server-tools/instance-manager/instance_options.h:
        cleanup
      server-tools/instance-manager/listener.cc:
        cleanup
      server-tools/instance-manager/log.cc:
        cleanup
      server-tools/instance-manager/manager.cc:
        cleanup
      server-tools/instance-manager/messages.cc:
        new errors added
      server-tools/instance-manager/mysql_connection.cc:
        cleanup
      server-tools/instance-manager/mysql_manager_error.h:
        new error codes added
      server-tools/instance-manager/mysqlmanager.cc:
        clenup
      server-tools/instance-manager/options.cc:
        cleanup
      server-tools/instance-manager/parse.cc:
        removed unused function
      server-tools/instance-manager/parse.h:
        removed prototype
      server-tools/instance-manager/protocol.cc:
        cleanup
      server-tools/instance-manager/protocol.h:
        added enum to be used in protocol.cc instead of the constants
      7317af46
  16. 12 May, 2005 1 commit
  17. 06 May, 2005 1 commit
  18. 04 May, 2005 1 commit
  19. 29 Apr, 2005 1 commit
    • unknown's avatar
      CAST(string_argument AS UNSIGNED) didn't work for big integers above the signed range. (Bug #7036) · f301f8f2
      unknown authored
      Produce warnings of wrong cast of strings to signed/unsigned.
      Don't block not resolved IP's if DNS server is down (Bug #8467)
      Fix compiler problems with MinGW (Bug #8872)
      
      
      configure.in:
        Fix compiler problems with MinGW (Bug #8872)
      include/config-win.h:
        Fix compiler problems with MinGW (Bug #8872)
      include/my_global.h:
        Fix compiler problems with MinGW (Bug #8872)
      mysql-test/r/cast.result:
        Test for cast to signed/unsigned outside of range (Bug #7036)
      mysql-test/t/cast.test:
        Test for cast to signed/unsigned outside of range (Bug #7036)
      mysys/default.c:
        Cleanup (combine identical code). 
        Done mainly by Jani
      sql/field.h:
        Added cast_to_int_type() to ensure that enums are casted as numbers
      sql/hostname.cc:
        Don't block not resolved IP's if DNS server is down (Bug #8467)
      sql/item.h:
        Added cast_to_int_type() to ensure that enums are casted as numbers
      sql/item_func.cc:
        CAST(string_argument AS UNSIGNED) didn't work for big integers above the
        signed range. (Bug #7036)
        Produce warnings of wrong cast of strings to signed/unsigned
      sql/item_func.h:
        CAST(string_argument AS UNSIGNED) didn't work for big integers above the
        signed range. (Bug #7036)
      f301f8f2
  20. 28 Apr, 2005 1 commit
    • unknown's avatar
      Add default configuration files to my_print_defaults usage, and · f9fdc432
      unknown authored
      add handling of configuration file in the Windows shared system
      directory. (Bug #5354)
      
      
      extra/my_print_defaults.c:
        Print out list of default files that will be used.
      include/my_sys.h:
        Add new my_print_default_files() function.
      mysys/default.c:
        Increase MAX_DEFAULT_DIRS to handle shared Windows directory,
        move the logic for handling the Windows (and OS/2) system directories
        into init_default_directories(), and generalize handling of
        configuration file extensions.
      f9fdc432
  21. 26 Apr, 2005 1 commit
    • unknown's avatar
      Cleanups during review · 2ff5273b
      unknown authored
      mysys/default.c:
        Cleanup:
        - Just test once for recursion level
        - Don't test explicitely for \r or \n as my_isspace() already does that
      sql/sql_insert.cc:
        Fix argument
      sql/sql_select.cc:
        Fixed indentation
        added comment
      2ff5273b
  22. 13 Apr, 2005 1 commit
    • unknown's avatar
      post review fix · af22097f
      unknown authored
      mysys/default.c:
        cleanup + check for the last line in the file in "!include" directive processing
      af22097f
  23. 06 Apr, 2005 1 commit
    • unknown's avatar
      Fixed errors descovered by valgrind 2.4 · 752c8b97
      unknown authored
      Added suppression file for some valgrind warnings that are not real errors
      
      
      mysql-test/mysql-test-run.sh:
        Added suppression of some valgrind warnings that are not real errors
      mysql-test/r/heap.result:
        Cleanup old tests and added new tests
      mysql-test/t/heap.test:
        Cleanup old tests and added new tests
      mysys/default.c:
        Removed duplicate fn_format()
      scripts/make_binary_distribution.sh:
        Added valgrind suppress file
      sql/ha_federated.cc:
        Ensure that 'socket' is initialized properly
      sql/ha_heap.cc:
        Ensure that with_auto_increment is initialized properly
      sql/mysqld.cc:
        Ensure that create_time is initialized for cached threads
      sql/sql_parse.cc:
        Indentation fix
      strings/decimal.c:
        Fixed wrong tests
      752c8b97
  24. 29 Mar, 2005 1 commit
  25. 25 Mar, 2005 1 commit
  26. 15 Mar, 2005 1 commit
  27. 18 Feb, 2005 1 commit
    • unknown's avatar
      made IM to work with --defaults-file smoothly · 94cefae6
      unknown authored
      BitKeeper/deleted/.del-my.cnf~9322f78f12eb2f3c:
        Delete: support-files/my.cnf
      include/my_sys.h:
        fixed prototype to reflect changes in default.c
      mysys/default.c:
        use my_search_option_files instead of process_default_option_files. This is used from the IM.
      server-tools/instance-manager/instance.cc:
        added parameter to complete_initialization(). this ine marks whether we are creating the only instance
        (for instance, when no config file given)
      server-tools/instance-manager/instance.h:
        prototype changed
      server-tools/instance-manager/instance_map.cc:
        Now call my_search_option_files to work smootly with --defaults-file
      server-tools/instance-manager/instance_map.h:
        added first_option member. This is set of mysqlmanager was started with --defaults-file or with
        --extra-defaults-file to be passed to the my_search_option_files
      server-tools/instance-manager/instance_options.cc:
        if we have only one instance, name the pidfile `hostname`.pid for compatibility reasons.
      server-tools/instance-manager/instance_options.h:
        header fixed according to .cc
      server-tools/instance-manager/manager.cc:
        prototype fixed
      server-tools/instance-manager/options.cc:
        save --defaults-file of --defaults-extra-file to pass it to my_search_option_files
      server-tools/instance-manager/options.h:
        added an optin to save --default-file options
      support-files/Makefile.am:
        revert changes
      94cefae6
  28. 12 Jan, 2005 1 commit
  29. 11 Jan, 2005 1 commit
  30. 04 Jan, 2005 1 commit
    • unknown's avatar
      Added checking for my.cnf file from environment variable MYSQL_HOME · 652f1dd2
      unknown authored
      instead of DATADIR.
      
      
      include/config-win.h:
        Added checks for environment variable MYSQL_HOME
      libmysql/Makefile.shared:
        Added checks for environment variable MYSQL_HOME
      mysys/Makefile.am:
        Added checks for environment variable MYSQL_HOME
      mysys/default.c:
        Removed checks for my.cnf file in datadir, instead added checking
        if my.cnf exists in environment variable MYSQL_HOME
      scripts/mysqld_multi.sh:
        Added checks for my.cnf file in environment variable MYSQL_HOME,
        if exists.
      scripts/mysqld_safe.sh:
        Added checks for my.cnf file in environment variable MYSQL_HOME,
        if exists.
      652f1dd2
  31. 03 Jan, 2005 1 commit
    • unknown's avatar
      fix for bug #5920 (embedded-server mysql doesn't handle --defaults-file) · da04be23
      unknown authored
      client/mysql.cc:
        bug #5920 (embedded-server mysql doesn't handle --defaults-file)
        defaults files handled
      include/my_sys.h:
        bug #5920 (embedded-server mysql doesn't handle --defaults-file)
        get_defaults_file interface added
      libmysqld/libmysqld.c:
        just small fix, not related to the bug.
      mysys/default.c:
        bug #5920 (embedded-server mysql doesn't handle --defaults-file)
        get_defaults_files implementation
      da04be23
  32. 12 Nov, 2004 2 commits
  33. 11 Nov, 2004 2 commits
  34. 05 Nov, 2004 2 commits
  35. 10 Sep, 2004 1 commit