1. 18 May, 2006 1 commit
    • unknown's avatar
      This is an implementation of two WL items: · 325d5947
      unknown authored
        - WL#3158: IM: Instance configuration extensions;
        - WL#3159: IM: --bootstrap and --start-default-instance modes
      
      The following new statements have been added:
        - CREATE INSTANCE;
        - DROP INSTANCE;
      
      The behaviour of the following statements have been changed:
        - SET;
        - UNSET;
        - FLUSH INSTANCES;
        - SHOW INSTANCES;
        - SHOW INSTANCE OPTIONS;
      
      
      BitKeeper/deleted/.del-im_options_set.imtest~b53d9d60e5684833:
        Delete: mysql-test/t/im_options_set.imtest
      BitKeeper/deleted/.del-im_options_set.result~59278f56be61d921:
        Delete: mysql-test/r/im_options_set.result
      BitKeeper/deleted/.del-im_options_unset.imtest~768eb186b51d0048:
        Delete: mysql-test/t/im_options_unset.imtest
      BitKeeper/deleted/.del-im_options_unset.result~20a4790cd3c70a4f:
        Delete: mysql-test/r/im_options_unset.result
      client/get_password.c:
        Change prototype to avoid casting when using C-strings (char *).
      include/m_string.h:
        Moved LEX_STRING to global header from sql/ to be accessible
        from all components (IM for one).
      include/my_sys.h:
        Added constants for modify_defaults_file().
      include/mysql_com.h:
        Removed duplicated declarations. my_sys.h should be used instead.
      libmysql/get_password.c:
        Change prototype to avoid casting when using C-strings (char *).
      mysql-test/mysql-test-run.pl:
        Added environment variables to be used from tests.
      mysql-test/r/im_daemon_life_cycle.result:
        Column name has been changed in SHOW INSTANCES.
      mysql-test/r/im_life_cycle.result:
        1. Column name has been changed in SHOW INSTANCES.
        2. Removed redundant SHOW INSTANCE STATUS statements.
      mysql-test/r/im_utils.result:
        Updated the result file.
      mysql-test/t/im_daemon_life_cycle-im.opt:
        Set minimal monitoring interval for Instance Manager to speed up testing.
      mysql-test/t/im_daemon_life_cycle.imtest:
        Get Instance Manager and managed mysqld-instances enough time to start.
      mysql-test/t/im_life_cycle.imtest:
        1. Polishing;
        2. Fixed a test error in 1.1.2.
      mysql-test/t/im_utils.imtest:
        Get Instance Manager and managed mysqld-instances enough time to start.
      mysys/default.c:
        Pass the name of the section to the handler function as well.
      mysys/default_modify.c:
        Added REMOVE_SECTION functionality.
      server-tools/instance-manager/IMService.cpp:
        Polishing: be more verbose.
      server-tools/instance-manager/IMService.h:
        Polishing: added copyright.
      server-tools/instance-manager/Makefile.am:
        Added new files.
      server-tools/instance-manager/WindowsService.cpp:
        Polishing: according to The Coding Style, TRUE/FALSE must be
        used instead of true/false.
      server-tools/instance-manager/WindowsService.h:
        Polishing: added copyright.
      server-tools/instance-manager/command.h:
        Polishing: provide a comment for the main operation of "Command" class.
      server-tools/instance-manager/commands.cc:
        1. Added support for CREATE INSTANCE, DROP INSTANCE statements;
        2. Added "deprecated" column in output of SHOW INSTANCE OPTIONS;
        3. Modified the behaviour of SET/UNSET, FLUSH INSTANCES statements;
      server-tools/instance-manager/commands.h:
        1. Added support for CREATE INSTANCE, DROP INSTANCE statements;
        2. Added "deprecated" column in output of SHOW INSTANCE OPTIONS;
        3. Modified the behaviour of SET/UNSET, FLUSH INSTANCES statements;
      server-tools/instance-manager/guardian.cc:
        Added operations to retrieve state of managed instances.
      server-tools/instance-manager/guardian.h:
        Added operations to retrieve state of managed instances.
      server-tools/instance-manager/instance.cc:
        1. Provided an operation to check validity of instance name.
        2. Added an attribute to distiguish mysqld-instances,
           whose configuration should be kept backward-compatible.
      server-tools/instance-manager/instance.h:
        1. Provided an operation to check validity of instance name.
        2. Added an attribute to distiguish mysqld-instances,
           whose configuration should be kept backward-compatible.
      server-tools/instance-manager/instance_map.cc:
        1. Used the operation to check validity of instance name;
        2. Added operations to manage instances.
      server-tools/instance-manager/instance_map.h:
        Added operations to manage instances.
      server-tools/instance-manager/instance_options.cc:
        Changed Instance_options so that it will be possible to manage
        options on the fly.
      server-tools/instance-manager/instance_options.h:
        Changed Instance_options so that it will be possible to manage
        options on the fly.
      server-tools/instance-manager/listener.cc:
        1. Remove reference to the instance of Options;
        2. Use new Options naming scheme.
      server-tools/instance-manager/listener.h:
        Remove reference to the instance of Options;
      server-tools/instance-manager/log.cc:
        Polishing: use TRUE/FALSE instead of true/false.
      server-tools/instance-manager/manager.cc:
        Added a common for IM operation to work with configuration file.
      server-tools/instance-manager/manager.h:
        Added a common for IM operation to work with configuration file.
      server-tools/instance-manager/messages.cc:
        Added messages for new errors.
      server-tools/instance-manager/mysql_connection.cc:
        1. Move a constant to common place.
        2. Polishing.
      server-tools/instance-manager/mysql_manager_error.h:
        Added new errors.
      server-tools/instance-manager/mysqlmanager.cc:
        1. Use error code from Options::load();
        2. Eliminate type-casting warning on Windows.
      server-tools/instance-manager/options.cc:
        Added support for user-management command-line options.
      server-tools/instance-manager/options.h:
        Added support for user-management command-line options.
      server-tools/instance-manager/parse.cc:
        1. Added support of new statements:
           - CREATE INSTANCE;
           - DROP INSTANCE.
        2. Modified SET/UNSET.
      server-tools/instance-manager/parse.h:
        1. Added support of new statements:
           - CREATE INSTANCE;
           - DROP INSTANCE.
        2. Modified SET/UNSET.
      server-tools/instance-manager/parse_output.cc:
        Sorted out header files.
      server-tools/instance-manager/parse_output.h:
        Sorted out header files.
      server-tools/instance-manager/portability.h:
        1. Added constants for Windows.
        2. Moved system-dependent defines from instance_options.cc.
      server-tools/instance-manager/priv.cc:
        Updated version.
      server-tools/instance-manager/priv.h:
        Added some global constants.
      server-tools/instance-manager/protocol.cc:
        Replaced NAME_WITH_LENGTH by LEX_STRING.
      server-tools/instance-manager/protocol.h:
        Replaced NAME_WITH_LENGTH by LEX_STRING.
      server-tools/instance-manager/thread_registry.cc:
        Polishing: use TRUE/FALSE instead of true/false.
      server-tools/instance-manager/user_map.cc:
        Added support for managing password database.
      server-tools/instance-manager/user_map.h:
        Added support for managing password database.
      sql/sp.cc:
        Replaced LEX_STRING_WITH_INIT by LEX_STRING + struct initialization.
      sql/sp_head.cc:
        Replaced LEX_STRING_WITH_INIT by LEX_STRING + struct initialization.
      sql/spatial.cc:
        Removed LEX_STRING_WITH_INIT.
      sql/spatial.h:
        Removed LEX_STRING_WITH_INIT.
      sql/sql_string.h:
        Moved STRING_WITH_LEN() macro out from sql (to m_string.h).
      sql/sql_trigger.cc:
        Moved STRING_WITH_LEN() macro out from sql (to m_string.h).
      sql/structs.h:
        Removed LEX_STRING_WITH_INIT.
      support-files/mysql.server.sh:
        Instruct Instance Manager to work in mysqld-safe compatible mode
        for backward compatibility.
      mysql-test/r/im_cmd_line.result:
        Added result file.
      mysql-test/r/im_instance_conf.result:
        Added result file.
      mysql-test/r/im_options.result:
        Added result file.
      mysql-test/t/im_cmd_line.imtest:
        IM command-line options test.
      mysql-test/t/im_instance_conf-im.opt:
        Set minimal monitoring interval for Instance Manager to speed up testing.
      mysql-test/t/im_instance_conf.imtest:
        Added a new test case for checking instance-management.
      mysql-test/t/im_life_cycle-im.opt:
        Set minimal monitoring interval for Instance Manager to speed up testing.
      mysql-test/t/im_options.imtest:
        Join im_options_set and im_options_unset and add new tests.
      mysql-test/t/im_utils-im.opt:
        Set minimal monitoring interval for Instance Manager to speed up testing.
      server-tools/instance-manager/exit_codes.h:
        New file for defining exit codes for user-management mode.
      server-tools/instance-manager/user_management_commands.cc:
        User-management commands implementation.
      server-tools/instance-manager/user_management_commands.h:
        User-management command declarations.
      325d5947
  2. 15 May, 2006 1 commit
    • unknown's avatar
      Fix two Valgrind memory leak warnings. · 8e2bad04
      unknown authored
      client/mysqlbinlog.cc:
        Now my_end() deallocates DBUG by default, but that fails in mysqlbinlog
        because of global destructors that use DBUG.
      dbug/dbug.c:
        Add a facility to deallocate the debug stack, to avoid memory leak warnings
        in Valgrind.
      include/my_dbug.h:
        Add a facility to deallocate the debug stack, to avoid memory leak warnings
        in Valgrind.
      include/my_sys.h:
        Change my_end() to deallocate DBUG memory by default (can be disabled with
        MY_DONT_FREE_DBUG option).
      libmysql/libmysql.c:
        Do not deallocate DBUG during cleanup.
      mysys/my_init.c:
        Change my_end() to deallocate DBUG memory by default (can be disabled with
        MY_DONT_FREE_DBUG option).
      sql/mysqld.cc:
        Add missing my_thread_end() call, seems to occasionally trigger a memory
        leak (not repeatable).
      8e2bad04
  3. 04 May, 2006 1 commit
    • unknown's avatar
      After merge fixes · a00fe98a
      unknown authored
      Remove compiler warnings
      Fix some broken tests
      Workaround for syncronization bug in NDB (Bug #16445)
      
      
      client/mysqltest.c:
        Added more information to output from abort_not_supported_test()
        Removed compiler warnings
      include/my_sys.h:
        Added function to print names of open files
      include/mysys_err.h:
        Print names of open files
      mysql-test/include/have_ndb.inc:
        Added comment
      mysql-test/lib/mtr_report.pl:
        Only print warning once
      mysql-test/r/mysqldump.result:
        After merge fix
      mysql-test/r/ndb_basic.result:
        Workaround for syncronization bug in NDB
      mysql-test/r/ndb_config.result:
        Remove not portable test
      mysql-test/t/ndb_basic.test:
        Workaround for syncronization bug in NDB
      mysql-test/t/ndb_config.test:
        Remove not portable test
      mysys/errors.c:
        Print names of open files
      mysys/my_file.c:
        Ensure that structs are cleared and copyied properly so that my_print_open_files() works.
      mysys/my_init.c:
        In case of EXTRA_DEBUG, print names of open files
      mysys/my_open.c:
        Added function ...
      a00fe98a
  4. 03 May, 2006 1 commit
    • unknown's avatar
      Added support for key_block_size for key and table level (WL#602) · 0ab1abad
      unknown authored
      Added support for key_block_size to MyISAM.
      Simplify interface to 'new Key' to make it easier to add new key options.
      mysqld option --new is used to define where key options are printed.
      (In 5.3 we should move all key options to after key part definition to avoid problem with reserved names)
      Fixed some compiler warnings and a memory leak in ssl
      
      
      include/my_base.h:
        Added flag to check if block size for key was secified
      include/my_sys.h:
        Added new support function to round up to a power of two
      include/myisam.h:
        Rename block_size -> block_size_index to avoid confusion with 'block_size'
      include/violite.h:
        Added function to free memory after new_VioSSLAcceptorFd
        (Will rename all vio_ssl functions in a future changeset)
      mysql-test/mysql-test-run.pl:
        Don't print port number info when we use --extern
      mysql-test/r/myisam.result:
        Added test for key_block_size
      mysql-test/t/myisam.test:
        Added test for key_block_size
      mysys/mf_keycache.c:
        Simplify code
      mysys/my_bit.c:
        Added new support function to round up to a power of two
      sql/ha_myisam.cc:
        Tell MyISAM to use the specified key_block_size
        MyISAM also updates the global key_block_size from the used values.
      sql/handler.cc:
        Added 'default_key_create_info' to be used as 'dummy' argument to 'new Key'
      sql/handler.h:
        Added KEY_CREATE_INFO, to be used as for general options for KEY's
      sql/item_func.h:
        Removed compiler warning
      sql/lex.h:
        Added new symbol
      sql/mysqld.cc:
        Fixed memory leak in ssl (new_VioSSLAcceptorFd)
      sql/sql_class.h:
        Change 'new Key' to use KEY_CREATE_INFO instead of 'algoritm', parser, key_page_size.
        This makes it easier to add new key options in the future.
      sql/sql_lex.h:
        Added key create options
      sql/sql_parse.cc:
        Use new interface to 'new Key'
      sql/sql_show.cc:
        Added support for key_block_size
        If --new is used, key options are printed after the key part definition.
      sql/sql_table.cc:
        Use new interface to 'new Key'
        Add support for key_block_size
      sql/sql_yacc.yy:
        Add support for key_block_size
        Allow key options before and after key_parts (In future they should be always after the key_part defintion)
        Use new interface to 'new Key'
      sql/structs.h:
        Added block_size to keys
      sql/table.cc:
        Remmeber and read key_block_size for table and key level
      sql/table.h:
        Added default key_block_size for table
      sql/unireg.cc:
        Remember key_block_size for key
      storage/myisam/ft_eval.c:
        Set block_length to 0 to get default key page size
      storage/myisam/ft_test1.c:
        Set block_length to 0 to get default key page size
      storage/myisam/mi_check.c:
        block_size -> block_size_index
      storage/myisam/mi_create.c:
        Added support for block size per key.
        Block size is rounded up to next power of two and enforced between MIN and MAX KEY_BLOCK_LENGTH.
        Align start of key block to start at an even offset of max_key_block_length to ensure key cache works good if all key pages are of same size.
      storage/myisam/mi_open.c:
        block_size -> block_size_index
      storage/myisam/mi_page.c:
        block_size -> block_size_index
      storage/myisam/mi_test1.c:
        Set block_length to 0 to get default key page size
      storage/myisam/mi_test2.c:
        Set block_length to 0 to get default key page size
      storage/myisam/mi_test3.c:
        Set block_length to 0 to get default key page size
      storage/myisam/myisamdef.h:
        block_size -> block_size_index to avoid confusion with 'block_size' in MySQL
        Added block_size as argument to MI_BLOCK_SIZE
        Added missing prototypes to get rid of compiler warnings
      storage/myisam/myisampack.c:
        Removed compiler warning
        block_size -> block_size_index
      vio/viosslfactories.c:
        Fixed memory leak in ssl (new_VioSSLAcceptorFd)
      mysql-test/r/myisam-system.result:
        New BitKeeper file ``mysql-test/r/myisam-system.result''
      mysql-test/t/myisam-system.test:
        New BitKeeper file ``mysql-test/t/myisam-system.test''
      0ab1abad
  5. 02 May, 2006 1 commit
    • unknown's avatar
      SECURITY FIX · f57754d7
      unknown authored
      Bug#17667: An attacker has the opportunity to bypass query logging.
      
      This adds a new, local-only printf format specifier to our *printf functions
      that allows us to print known-size buffers that must not be interpreted as 
      NUL-terminated "strings."
      
      It uses this format-specifier to print to the log, thus fixing this 
      problem.
      
      
      include/my_sys.h:
        Add prototype for my_memmem() .
      mysys/Makefile.am:
        Add reference to new file, my_memmem.c
      mysys/mf_iocache2.c:
        Add a "%.1234b" and "%.*b" percent-code.  It takes a width, just like "%s", 
        but unlike the string-indicator, it requires the width and doesn't stop printing
        at NUL characters.
        
        Also, simplify the code a bit.
        
        TODO:  This code should be unified with the strings/my_vnsprintf.c code in 
        the future.
      sql/sql_parse.cc:
        The query is not a C-string, but is a sized buffer, containing any character 
        at all, which may include NUL characters.
      strings/my_vsnprintf.c:
        Add a "%.1234b" and "%.*b" percent-code.  It takes a width, just like "%s", 
        but unlike the string-indicator, it requires the width and doesn't stop printing
        at NUL characters.
      tests/Makefile.am:
        We may need some of our local functions.
      tests/mysql_client_test.c:
        Add a "%.1234b" and "%.*b" percent-code.  It takes a width, just like "%s", 
        but unlike the string-indicator, it requires the width and doesn't stop printing
        at NUL characters.
      mysql-test/t/mysql_client_test.opt:
        New BitKeeper file ``mysql-test/t/mysql_client_test.opt''
        
        Add '--log' server parameter.
      mysys/my_memmem.c:
        New BitKeeper file ``mysys/my_memmem.c''
        
        Implement memmem, a black-box work-alike of the GNU memmem(), which functions
        like strstr() but for arbitrary blocks of memory.
      f57754d7
  6. 11 Apr, 2006 1 commit
    • unknown's avatar
      bug#17870 Table names conflict with Windows device names · 8ba9a613
      unknown authored
      It was impossible to create some table names on Windows
      (e.g. LPT1, AUX, COM1, etc).
      
      Fixed to pad dangerous names with thee "at" signs
      (e.g. LPT1@@@, AUX@@@, COM1@@@, and so on).
      
      
      include/my_sys.h:
        Adding new function declaration
      mysys/my_access.c:
        Adding new function check_if_legal_tablename().
        It works almost like check_if_legal_filename(),
        but accepts a table name without extension and path,
        and does not check "CLOCK$".
      sql/sql_table.cc:
        Check if a dangerous table name and append @@@
      strings/ctype-utf8.c:
        Treat "@@@" sequence in a table name as a end-of-line.
      mysql-test/r/ctype_filename.result:
        New BitKeeper file ``mysql-test/r/ctype_filename.result''
      mysql-test/t/ctype_filename.test:
        New BitKeeper file ``mysql-test/t/ctype_filename.test''
      8ba9a613
  7. 04 Apr, 2006 1 commit
    • unknown's avatar
      Bug#17368 General log and slow query log don't work · f7280f2f
      unknown authored
       - Port ha_tina.cc to run on windows 
      
      
      include/my_sys.h:
        Add define for MAP_PRIVATE, to be used in my_mmap to decide what kind of map to open.
      mysys/my_mmap.c:
        Remove unused flProtect
        Look at "prot" argument when deciding if map should be read or write.
      storage/csv/ha_tina.cc:
        Remove "include <sys/mman.h>", use the defines and functions from mysys
        Add cast to byte* when calling 'my_write'
        Add cast to char* when calling 'buffer.set'
        munmap the file before setting it's size, my_chsize will fail if file is mapped.
      storage/csv/ha_tina.h:
        Remove "typedef" since no name is defined and "tina_set" is used in the code
      f7280f2f
  8. 24 Feb, 2006 1 commit
    • unknown's avatar
      This patch cleans up two tests which were a bit fragile from other failing... · 895efcde
      unknown authored
      This patch cleans up two tests which were a bit fragile from other failing tests. It also removes some variables associated with removed RAID support.
      
      
      BitKeeper/deleted/.del-raid.h~2d2503a66b128ac6:
        Delete: include/raid.h
      BitKeeper/deleted/.del-raid.cc~488f5fa6538394e1:
        Delete: mysys/raid.cc
      BitKeeper/deleted/.del-raid2.c~fe7aea5fb4b9748c:
        Delete: mysys/raid2.c
      include/Makefile.am:
        Removing raid
      include/my_sys.h:
        Removing Raid
      include/myisam.h:
        Removing raid
      mysql-test/r/case.result:
        Cleaned up incomming tables
      mysql-test/r/mysqlcheck.result:
        new results
      mysql-test/t/case.test:
        Cleaned up test
      mysql-test/t/mysqlcheck.test:
        Cleaned up two tests.
      mysys/Makefile.am:
        Removed raid
      mysys/my_static.c:
        Removed raid
      storage/myisam/mi_check.c:
        Removed raid
      storage/myisam/mi_info.c:
        Removed raid bits.
      895efcde
  9. 07 Feb, 2006 1 commit
    • unknown's avatar
      WL 2826: Step 11 · c254381e
      unknown authored
      Lots of new code for table log
      
      
      include/my_sys.h:
        Spell error
      sql/mysql_priv.h:
        More structs and methods for table log
      sql/sql_partition.cc:
        lock/unlock global table log mutex
      sql/sql_table.cc:
        Lots of new code for table log
      c254381e
  10. 26 Jan, 2006 1 commit
    • unknown's avatar
      Rename of my_strdup_with_lenght to match the more common "strndup" method. Soo... · d4fc6d6b
      unknown authored
      Rename of my_strdup_with_lenght to match the more common "strndup" method. Soo its now my_strndup().
      my_stat() gettinng the correct parameter list may be next :)
      
      
      client/mysqlslap.c:
        rename
      extra/comp_err.c:
        rename
      include/my_sys.h:
        replace
      mysys/mf_tempdir.c:
        replace
      mysys/my_malloc.c:
        replace
      mysys/safemalloc.c:
        replace
      sql/ha_federated.cc:
        replace
      sql/log_event.cc:
        replace
      sql/set_var.cc:
        replace
      sql/set_var.h:
        replace
      storage/myisam/ft_stopwords.c:
        replace
      d4fc6d6b
  11. 17 Jan, 2006 1 commit
    • unknown's avatar
      WL #2747: Fix such that backup and restore works for user defined · 8d319b34
      unknown authored
      partitioned tables in NDB
      
      
      include/my_sys.h:
        Move packfrm and unpackfrm to mysys
      mysql-test/r/ndb_restore.result:
        New test cases
      mysql-test/t/ndb_restore.test:
        New test cases
      mysys/my_compress.c:
        Moved packfrm and unpackfrm to mysys
      sql/ha_ndbcluster.cc:
        Set value of partition function in hidden field for user defined
        partitioning in NDB to handle restore and later on-line reorganize
        of partitions
        To save space value of those functions are limited to 32 bits
      sql/ha_partition.cc:
        Use new get_partition_id interface
      sql/handler.h:
        Use new get_partition_id interface
      sql/mysql_priv.h:
        Moved to mysys
      sql/mysqld.cc:
        Minor
      sql/opt_range.cc:
        New get_partition_id interface
      sql/sql_partition.cc:
        New get_partition_id interface
        Fix error checks of specification of engines in ALTER TABLE
        Moved packfrm and unpackfrm to mysys
      sql/sql_table.cc:
        Fixed debug printouts
      storage/ndb/include/kernel/ndb_limits.h:
        New constant
      storage/ndb/include/kernel/signaldata/DictTabInfo.hpp:
        New table description item
      storage/ndb/include/ndb_version.h.in:
        New version specific constant
      storage/ndb/include/ndbapi/NdbDictionary.hpp:
        New item in table descriptions
      storage/ndb/src/common/debugger/signaldata/DictTabInfo.cpp:
        New item in table descriptions
      storage/ndb/src/kernel/blocks/backup/Backup.cpp:
        Write fragment id in backup's log entry
      storage/ndb/src/kernel/blocks/backup/BackupFormat.hpp:
        Write fragment id in backup's log entry
      storage/ndb/src/kernel/blocks/dbdict/Dbdict.cpp:
        New item in table description
      storage/ndb/src/kernel/blocks/dbdict/Dbdict.hpp:
        New item in table description
      storage/ndb/src/kernel/blocks/dbdih/DbdihMain.cpp:
        Moved constant
      storage/ndb/src/ndbapi/NdbDictionary.cpp:
        New item in table description
      storage/ndb/src/ndbapi/NdbDictionaryImpl.cpp:
        New item in table description
      storage/ndb/src/ndbapi/NdbDictionaryImpl.hpp:
        New item in table description
      storage/ndb/tools/Makefile.am:
        Compress library needed for ndb_restore
      storage/ndb/tools/restore/Restore.cpp:
        Handle fragment id and also handle backups from older versions
      storage/ndb/tools/restore/Restore.hpp:
        Use fragment id
      storage/ndb/tools/restore/consumer.hpp:
        Use fragment id
      storage/ndb/tools/restore/consumer_printer.cpp:
        Use fragment id
      storage/ndb/tools/restore/consumer_printer.hpp:
        Use fragment id
      storage/ndb/tools/restore/consumer_restore.cpp:
        Code to map node groups if new cluster has different set of
        node groups from original cluster
        Very simple search and replace parser of partition syntax in frm file
        Fix settings of partition id properly using fragment id and hidden
        field in tables
      storage/ndb/tools/restore/consumer_restore.hpp:
        Changed function headers and new one for mapping node groups
      storage/ndb/tools/restore/consumer_restorem.cpp:
        Use fragment id
      storage/ndb/tools/restore/restore_main.cpp:
        New parameter to set node group map, parser for this parameter
      8d319b34
  12. 04 Jan, 2006 1 commit
    • unknown's avatar
      cleanup · f61dc3c9
      unknown authored
      include/my_sys.h:
        sort_dynamic()
      mysys/my_once.c:
        MY_ZEROFILL support in my_once_alloc
      plugin/fulltext/Makefile.am:
        no lib prefix for modules. really build .so
      scripts/mysql_create_system_tables.sh:
        remove obsolete syntax (and warnings)
      sql/sql_parse.cc:
        don't call add_to_status/bzero in a loop
      f61dc3c9
  13. 31 Dec, 2005 1 commit
    • unknown's avatar
      WL#1324 table name to file name encoding · 8762c036
      unknown authored
      - Encoding itself, implemented as a charset
        "filename". Originally planned to use '.'
        as an escape character, but now changed to '@'
        for two reasons: "ls" does not return
        file names starting with '.' considering them
        as a kind of hidden files; some platforms
        do not allow several dots in a file name.
      - replacing many calls of my_snprintf() and
        strnxmov() to the new build_table_filename().
      - Adding MY_APPEND_EXT mysys flag, to append
        an extention rather that replace it.
      - Replacing all numeric constants in fn_format
        flag arguments to their mysys definitions, e.g.
        MY_UNPACK_FILENAME,
      - Predictability in several function/methods:
        when a table name can appear with or withot .frm
        extension. Some functions/methods were changed
        so accept names strictly with .frm, other - strictly
        without .frm extensions. Several DBUG_ASSERTs were
        added to check whether an extension is passed.
      Many files:
        table name to file name encoding
      mysql_priv.h:
        Protot...
      8762c036
  14. 19 Dec, 2005 2 commits
    • unknown's avatar
      my_sys.h: · 772ee458
      unknown authored
        Added MAP_NORESERVE set to 0 for Windows
      config-win.h:
        If MAX_INDEXES is not set, set it to 64 on Windows
      
      
      include/config-win.h:
        If MAX_INDEXES is not set, set it to 64 on Windows
      include/my_sys.h:
        Added MAP_NORESERVE set to 0 for Windows
      772ee458
    • unknown's avatar
      Bug fix for bug #15843 "Added mmap support in myisam creates compile problem · f9dc6584
      unknown authored
      on AIX 5.2"
      
      Added dummy definition of MAP_NORESERVE for systems which doesn't provide it,
      removed duplicates
      
      my_sys.h:
        added definition for MAP_NORESERVE
        (for Irix and AIX systems)
      sql_map.cc:
        removed definition of MAP_NORESERVE
      mi_packrec.c:
        removed definition of MAP_NORESERVE and MMAP_PRIVATE
      
      
      storage/myisam/mi_packrec.c:
        removed definition of MAP_NORESERVE and MMAP_PRIVATE
      sql/sql_map.cc:
        removed definition of MAP_NORESERVE
      include/my_sys.h:
        added definition for MAP_NORESERVE
        (for Irix and AIX systems)
      f9dc6584
  15. 02 Dec, 2005 1 commit
  16. 01 Dec, 2005 1 commit
    • unknown's avatar
      Many files: · 000ae475
      unknown authored
        Added mmap support for MyISAM engine
      
      
      configure.in:
        Added mmap support for MyISAM engine
      include/my_base.h:
        Added mmap support for MyISAM engine
      include/my_sys.h:
        Added mmap support for MyISAM engine
      sql/ha_myisam.cc:
        Added mmap support for MyISAM engine
      sql/mysql_priv.h:
        Added mmap support for MyISAM engine
      sql/mysqld.cc:
        Added mmap support for MyISAM engine
      sql/records.cc:
        Added mmap support for MyISAM engine
      sql/set_var.cc:
        Added mmap support for MyISAM engine
      storage/myisam/mi_close.c:
        Added mmap support for MyISAM engine
      storage/myisam/mi_delete_all.c:
        Added mmap support for MyISAM engine
      storage/myisam/mi_dynrec.c:
        Added mmap support for MyISAM engine
      storage/myisam/mi_extra.c:
        Added mmap support for MyISAM engine
      storage/myisam/mi_locking.c:
        Added mmap support for MyISAM engine
      storage/myisam/mi_open.c:
        Added mmap support for MyISAM engine
      storage/myisam/mi_packrec.c:
        Added mmap support for MyISAM engine
      storage/myisam/mi_statrec.c:
        Added mmap support for MyISAM engine
      storage/myisam/myisamdef.h:
        Added mmap support for MyISAM engine
      000ae475
  17. 14 Nov, 2005 2 commits
    • unknown's avatar
      Import patch for bug #13377 from current 5.0 bk tree. · d6dc5299
      unknown authored
      include/my_global.h:
        Import patch 00.txt
      include/my_sys.h:
        Import patch 00.txt
      mysys/my_create.c:
        Import patch 00.txt
      mysys/my_open.c:
        Import patch 00.txt
      sql/log.cc:
        Import patch 00.txt
      sql/sql_class.h:
        Import patch 00.txt
      sql/sql_repl.cc:
        Import patch 00.txt
      d6dc5299
    • unknown's avatar
      Fixes bug #13377. my_open() & my_create() functions changed to use · f4e25c50
      unknown authored
      my_sopen() on win32 which allows to use FILE_SHARE_DELETE flag to 
      allow deleting opened files. my_sopen() implementation is added to
      support this functionality.
      
      
      include/my_global.h:
        Fixes bug #13377. Added number of constants for share delete file
        open option.
      include/my_sys.h:
        Fixes bug #13377. Added my_sopen function.
      mysys/my_create.c:
        Fixes bug #13377. my_create() function changed to use my_sopen() and which allows
        to use FILE_SHARE_DELETE flag on win32, which helps in deleting opened files.
      mysys/my_open.c:
        Fixes bug #13377. my_open() function changed to use my_sopen() on win32
        which allows to use FILE_SHARE_DELETE flag to allow deleting opened files.
      sql/log.cc:
        Fixes bug #13377. Additional patch - remove reference counting for
        opened binlog files, introduced in initial patch of #13377.
      sql/sql_class.h:
        Fixes bug #13377. Additional patch - remove reference counting for
        opened binlog files, introduced in initial patch of #13377.
      sql/sql_repl.cc:
        Fixes bug #13377. Additional patch - remove reference counting for
        opened binlog files, introduced in initial patch of #13377.
      f4e25c50
  18. 12 Oct, 2005 1 commit
    • unknown's avatar
      Building with compile-pentium-valgrind-max (without safemalloc) defines my_free() without flags, · a3775d0f
      unknown authored
      so a typo on flags will go unnoticed; I put flags in this my_free() definition (as a no-op which
      will still make the compiler check correctness of the flags). Applied: this caught a typo in my_realloc.c. Kindly approved by Konstantin and Mats.
      
      
      include/my_sys.h:
        When we define my_free(PTR,FG) to be my_no_flags_free(PTR) we don't make the compiler check
        correctness of FG, which can hurt if another person build with a different definition of my_free;
        so I add FG in the expression.
      mysys/my_realloc.c:
        typo found by the change in my_sys.h :)
      a3775d0f
  19. 06 Oct, 2005 1 commit
    • unknown's avatar
      Review of code pushed since last 5.0 pull: · 872a537c
      unknown authored
      Ensure that ccache is also used for C programs
      mysql: Ensure that 'delimiter' works the same way in batch mode as in normal mode
      mysqldump: Change to use ;; (instead of //) as a stored procedure/trigger delimiter
      Fixed test cases by adding missing DROP's and rename views to be of type 'v#'
      Removed MY_UNIX_PATH from fn_format()
      Removed current_db_used from TABLE_LIST
      Removed usage of 'current_thd' in Item_splocal
      Removed some compiler warnings
      A bit faster longlong2str code
      
      
      
      BUILD/FINISH.sh:
        Ensure that ccache is also used for C programs
      BUILD/SETUP.sh:
        Ensure that ccache is also used for C programs
      client/mysql.cc:
        More debugging
        Ensure that 'delimiter' works the same way in batch mode as in normal mode.
        Compare 'delimiter' command case-insensitive.
        The above fixes the delimiter bugs so that we can now use ;; as a trigger/SP function delimiter in mysqldump.
      client/mysqldump.c:
        Indentation fixes
        Use ;; as a delmimiter for stored procedures and tri...
      872a537c
  20. 30 Sep, 2005 2 commits
    • unknown's avatar
      Small fixes. · 75c69627
      unknown authored
      include/my_sys.h:
        Initialised TYPE_NOT_SET to zero to make sure no
        enum is added before it.
      server-tools/instance-manager/protocol.cc:
        Changed int to const int.
      75c69627
    • unknown's avatar
      export forced_defaults_file using global variable defaults_file · 4f07da6b
      unknown authored
       analog with defaults_extra_file and defaults_grouop_suffix
      
      
      include/my_sys.h:
        export forced_defaults_file using global variable defaults_file
      mysys/default.c:
        export forced_defaults_file using global variable defaults_file
      4f07da6b
  21. 23 Sep, 2005 1 commit
    • unknown's avatar
      Several fixes revelaled by Intel compiler. · 83263892
      unknown authored
      cmd-line-utils/readline/complete.c:
        Added a cast.
      dbug/my_main.c:
        Added an include to avoid implicit declaration of
        my_thread_global_init()
      include/my_global.h:
        undef cannot be used on this predefined name.
        Since it is a custom fix for gcc 2.8.0, let's make it only
        effective in that case.
      include/my_sys.h:
        Added a new type, TYPE_NOT_SET.
      myisam/ft_boolean_search.c:
        Added casts.
      myisam/mi_key.c:
        Added cast.
      myisam/mi_open.c:
        Added cast.
        Changed function types.
      myisam/mi_test1.c:
        Added cast.
      myisam/myisamchk.c:
        Added cast.
      myisam/myisamdef.h:
        Changed function type.
      myisam/myisampack.c:
        Added casts.
      myisam/sp_key.c:
        Added cast.
      mysys/mf_iocache.c:
        Fixed invalid use of 0 to info->type. According to comment it
        should not have been set, but in earlier code by setting it
        to 0 would have been same as setting it to READ_CACHE. This
        probably was not desired, potential bug.
      server-tools/instance-manager/instance_options.cc:
        Fixed a typo.
      server-tools/instance-manager/protocol.cc:
        Changed enum to int.
        Changed char to uchar.
        Added casts.
      sql/mysql_priv.h:
        Bit overflow.
      sql/sql_base.cc:
        Removed unused label. The code below label was unused too, because
        there is a return just before.
      sql/sql_parse.cc:
        Removed unneccessary extra argument.
      83263892
  22. 21 Sep, 2005 1 commit
    • unknown's avatar
      A fix and a test case for Bug#6513 "Test Suite: Values inserted by using · d68878c3
      unknown authored
      cursor is interpreted latin1 character and Bug#9819 "Cursors: Mysql Server
      Crash while fetching from table with 5 million records."
      A fix for a possible memory leak when fetching into an SP cursor
      in a long loop.
      The patch uses a common implementation of cursors in the binary protocol and 
      in stored procedures and implements materialized cursors.
      For implementation details, see comments in sql_cursor.cc
      
      
      include/my_sys.h:
        - declaration for multi_alloc_root
      libmysqld/Makefile.am:
        - drop protocol_cursor.cc, add sql_cursor.cc (replaces the old
        implementation of cursors with a new one)
      mysql-test/r/ctype_ujis.result:
        - test results fixed (a test case for Bug#6513)
      mysql-test/r/sp-big.result:
        - test results fixed (a test case for Bug#9819)
      mysql-test/t/ctype_ujis.test:
        Add a test case for Bug#6513 "Test Suite: Values inserted by using cursor is
         interpreted latin1 character"
      mysql-test/t/sp-big.test:
        Add a restricted test...
      d68878c3
  23. 15 Sep, 2005 1 commit
    • unknown's avatar
      Fixes bug #12929. Uses my_cgets instead of _cgets function, thus eliminating · a0cb4d51
      unknown authored
      a restriction to 255 chars for editable buffer.
      
      
      VC++Files/mysys/mysys.dsp:
        Added my_conio.c
      VC++Files/mysys/mysys_ia64.dsp:
        Added my_conio.c
      include/my_sys.h:
        Added declarations for my_conio.c functions
      mysys/my_conio.c:
        Added _cgets() replacement that is not limited to 255 chars retrieval
        from win32 console.
      a0cb4d51
  24. 14 Sep, 2005 2 commits
    • unknown's avatar
      Bug#12920 - key_read_requests counter appears to re-set · 086165ee
      unknown authored
      After merge fix.
      
      
      include/keycache.h:
        Bug#12920 - key_read_requests counter appears to re-set
        After merge fix.
        Status variables moved into KEY_CACHE in 4.1.
        Enlarging them there.
      include/my_sys.h:
        Bug#12920 - key_read_requests counter appears to re-set
        After merge fix.
        Status variables moved into KEY_CACHE in 4.1.
        Removed unused global variables.
      myisam/mi_test2.c:
        Bug#12920 - key_read_requests counter appears to re-set
        After merge fix.
        Status variables moved into KEY_CACHE in 4.1.
        Changed to print default key cache status.
      mysys/mf_keycache.c:
        Bug#12920 - key_read_requests counter appears to re-set
        After merge fix.
        Status variables moved into KEY_CACHE in 4.1.
        Changed their debug printout.
      sql/mysqld.cc:
        Bug#12920 - key_read_requests counter appears to re-set
        After merge fix.
        Changed to print full value.
      sql/sql_show.cc:
        Bug#12920 - key_read_requests counter appears to re-set
        After merge fix.
        Added a branc...
      086165ee
    • unknown's avatar
      Bug#12920 - key_read_requests counter appears to re-set · e4462fd2
      unknown authored
      Enlarged the counter variables to ulonglong.
      
      e4462fd2
  25. 30 Aug, 2005 1 commit
    • unknown's avatar
      Fixes bug #11815. Convert file path to UNIX format to build correct query · 111fdcdd
      unknown authored
      string while replicating LOAD DATA INFILE statement.
      
      
      VC++Files/mysys/mysys.dsp:
        added mf_unixpath.c into mysys.dsp
      include/my_sys.h:
        Added an option for fn_format function to convert path from system representation
        to UNIX format.
      mysys/mf_format.c:
        Added an option for fn_format function to convert path from system
        representation to UNIX format.
      sql/log_event.cc:
        Convert file path to UNIX format to build correct query string while replicating
        LOAD DATA INFILE statement.
      111fdcdd
  26. 19 Aug, 2005 1 commit
    • unknown's avatar
      Bug#11338 Fixes from review (identical functionality). · 7eecc2d6
      unknown authored
      include/my_sys.h:
        Fixes from review (use version in log_event.cc instead)
      mysql-test/r/ctype_cp932.result:
        Updated test for bug#11338 (logging of prepared statement w/ blob type)
      mysql-test/t/ctype_cp932.test:
        udpated test for bug#11338 (logging of prepared statement w/ blob type)
      mysys/charset.c:
        Fixes from review (use version in log_event.cc instead)
      sql/item.cc:
        Fixes from review (store character_set_client differently so that
        fix can be merged forward to 5.0)
      sql/item.h:
        Fixes from review
      sql/log_event.cc:
        Fixes from review, str_to_hex is now used by item.cc
      sql/log_event.h:
        Added prototype for str_to_hex (now used by item.cc)
      sql/sql_prepare.cc:
        Fixes from review, store character_set_client differently so that 
        Item_param::query_val_str can use it.
      7eecc2d6
  27. 17 Aug, 2005 1 commit
    • unknown's avatar
      BUG#11338 (logging of prepared statement w/ blob type) · 48fa74fd
      unknown authored
      In cp932, '\' character can be the second byte in a 
      multi-byte character stream. This makes it difficult to use
      mysql_escape_string. Added flag to indicate which languages allow
      '\' as second byte of multibyte sequence so that when putting a prepared
      statement into the binlog we can decide at runtime whether hex encoding
      is really needed.
      
      
      include/m_ctype.h:
        Added bool to indicate character sets which allow '\' as the second
        byte of a multibyte character set (currently only cp932). For these
        character sets, escaping with '\' is dangerous and leads to corruption
        in replication.
      include/my_sys.h:
        Add function to enocde a string as hex with no prefix (bare)
      mysys/charset.c:
        Add function to encode string as hex with no prefix (bare).
      sql/item.cc:
        Check the connection character set to see if escape_string_for_mysql
        is safe, or if character set requires unambiguous (hex) encoding
      sql/item.h:
        Pass thd to query_val_str for access to charset()
      sql/sql_prepare.cc:
        Pass thd to query_val_str.
      strings/ctype-big5.c:
        Add escape_with_backslash_is_dangerous flag.
      strings/ctype-bin.c:
        Add escape_with_backslash_is_dangerous flag
      strings/ctype-cp932.c:
        Add escape_with_backslash_is_dangerous flag.
      strings/ctype-czech.c:
        Add escape_with_backslash_is_dangerous flag.
      strings/ctype-euc_kr.c:
        Add escape_with_backslash_is_dangerous flag.
      strings/ctype-extra.c:
        Add escape_with_backslash_is_dangerous flag.
      strings/ctype-gb2312.c:
        Add escape_with_backslash_is_dangerous flag.
      strings/ctype-gbk.c:
        Added escape_with_backslash_is_dangerous flag.
      strings/ctype-latin1.c:
        Added escape_with_backslash_is_dangerous flag.
      strings/ctype-sjis.c:
        Added escape_with_backslash_is_dangerous flag.
      strings/ctype-tis620.c:
        Added esacpe_with_backslash_character_is_dangerous flag.
      strings/ctype-uca.c:
        Added escape_with_backslash_is_dangerous flag.
      strings/ctype-ucs2.c:
        Added escape_with_backslash_is_dangerous.
      strings/ctype-ujis.c:
        Added escape_with_backslash_is_dangerous flag.
      strings/ctype-utf8.c:
        Added escape_with_backslash_is_dangerous.
      strings/ctype-win1250ch.c:
        Added escape_with_backslash_is_dangerous.
      48fa74fd
  28. 08 Aug, 2005 1 commit
    • unknown's avatar
      Bug#5439 : mysql_server_init() crashes if ShiftJIS path is passed · 46dc3b6b
      unknown authored
      (important for Adobe).
      
      mf_pack.c, mf_dirname.c, charset.c, my_sys.h:
      
        - adding fs_character_set() function on Windows
        - ignoring fake slashes which are just multibyte
          parts in several functions in /mysys
      
      Verified by Shu to work on WinXP and Win2k.
      Test is not possible, or very hard to do.
      
      
      include/my_sys.h:
        Bug#5439 : mysql_server_init() crashes if ShiftJIS path is passed
        (important for Adobe)
        - adding fs_character_set() function on Windows
        - ignoring fake slashes which are just multibyte
          parts in several functions in /mysys
      mysys/charset.c:
        d
      mysys/mf_dirname.c:
        d
      mysys/mf_pack.c:
        d
      46dc3b6b
  29. 31 Jul, 2005 1 commit
    • unknown's avatar
      Fixes during review of new pushed code · f5589f21
      unknown authored
      Change bool in C code to my_bool
      Added to mysqltest --enable_parsning and --disable_parsing to avoid to have to comment parts of tests
      Added comparison of LEX_STRING's and use this to compare file types for view and trigger files.
      
      
      client/client_priv.h:
        Added OPT_TRIGGERS (to get rid of compiler warning)
      client/mysql.cc:
        Added cast to get rid of compiler warning
      client/mysqldump.c:
        Added OPT_TRIGGERS (to get rid of compiler warning)
        Abort if we can't write to outfile (even if --ignore-errors is given)
      client/mysqltest.c:
        Added --enable_parsning and --disable_parsing to avoid to have to comment parts of tests
      include/my_sys.h:
        Make my_progname const
      include/my_time.h:
        Avoid using 'bool' in C programs
      mysql-test/lib/init_db.sql:
        Align with mysql_create_system_tables
        (Ideally this file should be auto-generated from the above script)
      mysql-test/r/mysqltest.result:
        Test for --enable_parsing
      mysql-test/r/variables.result:
        Update results after fix for ...
      f5589f21
  30. 20 Jul, 2005 1 commit
  31. 18 Jul, 2005 2 commits
    • unknown's avatar
      Fixes to previous changeset · f7687523
      unknown authored
      get_defaults_file() -> get_defaults_options()
      
      
      include/my_sys.h:
        Remove deleted function
      libmysql/libmysql.def:
        get_defaults_file() -> get_defaults_options()
      libmysqld/libmysqld.def:
        get_defaults_file() -> get_defaults_options()
      f7687523
    • 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
  32. 24 Jun, 2005 1 commit
    • unknown's avatar
      Make status of NO_BACKSLASH_ESCAPES mode known to the client so · f0424872
      unknown authored
      it can use it to switch to only quoting apostrophes by doubling
      them when it is in effect. (Bug #10214)
      
      
      include/my_sys.h:
        Add new escape_quotes_for_mysql() function
      include/mysql_com.h:
        Add SERVER_STATUS_NO_BACKSLASH_ESCAPES
      libmysql/libmysql.c:
        Use SERVER_STATUS_NO_BACKSLASH_ESCAPES in server_status to determine
        how mysql_real_escape_string() should do quoting.
      mysys/charset.c:
        Add new escape_quotes_for_mysql() function that only quotes
        apostrophes by doubling them up.
      sql/set_var.cc:
        Set SERVER_STATUS_NO_BACKSLASH_ESCAPES when MODE_NO_BACKSLASH_ESCAPES
        changes.
      sql/sql_class.cc:
        Set SERVER_STATUS_NO_BACKSLASH_ESCAPES when necessary on thread creation.
      tests/mysql_client_test.c:
        Add new test for sending NO_BACKSLASH_ESCAPES as part of server_status.
      f0424872
  33. 07 Jun, 2005 1 commit
  34. 06 Jun, 2005 1 commit
    • unknown's avatar
      Some fixes for Netware. · f511c20d
      unknown authored
      include/my_sys.h:
        Metrowerks compiler has _alloca() nowadays.
        Netware does not have mmap()
      netware/mysql_test_run.c:
        A fix for netware mysql_test_run client.
      f511c20d
  35. 25 May, 2005 1 commit
    • unknown's avatar
      Cleanup during code review · ad519b77
      unknown authored
      Faster detection of wrong table names (like PRN) on windows
      
      
      include/my_sys.h:
        Added check_if_legal_filename()
      mysys/my_access.c:
        Added check_if_legal_filename()
        Set errno if my_access() fails
      mysys/my_fopen.c:
        USe check_if_legal_filename() instead of my_access() to detect wrong file names on windows
      mysys/my_open.c:
        USe check_if_legal_filename() instead of my_access() to detect wrong file names on windows
      sql/sql_lex.cc:
        Portability fix
      sql/sql_parse.cc:
        Simple cleanup
      sql/sql_repl.cc:
        Cleanup during code review
      ad519b77