An error occurred fetching the project authors.
  1. 19 May, 2010 1 commit
    • Alexander Nozdrin's avatar
      Another incarnation of the patch for Bug#30708 · 759d5bc5
      Alexander Nozdrin authored
      (make relies GNU extentions). The patch was partially
      backport from 6.0.
      
      Original comment:
      bug#30708: make relies GNU extensions.  Now that we no longer use
      BitKeeper we can safely remove the SCCS handling with no loss of
      functionality.
      759d5bc5
  2. 22 Dec, 2009 1 commit
    • Alexey Kopytov's avatar
      Backport of WL #2934: Make/find library for doing float/double · 12f364ec
      Alexey Kopytov authored
                            to string conversions and vice versa" 
      Initial import of the dtoa.c code and custom wrappers around it 
      to allow its usage from the server code. 
       
      Conversion of FLOAT/DOUBLE values to DECIMAL ones or strings 
      and vice versa has been significantly reworked. As the new 
      algoritms are more precise than the older ones, results of such 
      conversions may not always match those obtained from older 
      server versions. This in turn may break compatibility for some 
      applications. 
       
      This patch also fixes the following bugs: 
      - bug #12860 "Difference in zero padding of exponent between 
      Unix and Windows" 
      - bug #21497 "DOUBLE truncated to unusable value" 
      - bug #26788 "mysqld (debug) aborts when inserting specific 
      numbers into char fields" 
      - bug #24541 "Data truncated..." on decimal type columns 
      without any good reason" 
      12f364ec
  3. 01 Dec, 2009 1 commit
  4. 15 Oct, 2009 1 commit
    • Konstantin Osipov's avatar
      Backport of: · c8a83977
      Konstantin Osipov authored
      ---------------------------------------------------------------------
      revno: 2476.980.1
      committer: msvensson@pilot.mysql.com
      timestamp: Wed 2007-10-31 18:17:54 +0100
      message:
        Bug#31954 Remove undocumented mysql_manager_* C API functions and
        mysqlmanager (old)
          - Remove the mysql_manager* functions, struct and defines
      c8a83977
  5. 31 Jul, 2009 1 commit
  6. 20 Dec, 2008 1 commit
  7. 07 Dec, 2007 1 commit
    • unknown's avatar
      WL #2934 "Make/find library for doing float/double to string conversions · 04116597
      unknown authored
      and vice versa"
      Initial import of the dtoa.c code and custom wrappers around it to allow
      its usage from the server code.
      
      Conversion of FLOAT/DOUBLE values to DECIMAL ones or strings and vice
      versa has been significantly reworked. As the new algoritms are more
      precise than the older ones, results of such conversions may not always
      match those obtained from older server versions. This in turn may break
      compatibility for some applications.
      
      This patch also fixes the following bugs:
      - bug #12860 "Difference in zero padding of exponent between Unix and
      Windows"
      - bug #21497 "DOUBLE truncated to unusable value"
      - bug #26788 "mysqld (debug) aborts when inserting specific numbers into
      char fields"
      - bug #24541 "Data truncated..." on decimal type columns without any
      good reason"
      
      
      BitKeeper/deleted/.del-strtod.c:
        Rename: strings/strtod.c -> BitKeeper/deleted/.del-strtod.c
      client/Makefile.am:
        Added dtoa.c
      client/sql_string.cc:
        Replaced sprintf() with a new wrapper around dtoa()
      include/m_string.h:
        Added declarations for the new double to/from string conversion 
        functions.
      libmysql/Makefile.shared:
        Removed strtod.c, added dtoa.c
      libmysql/libmysql.c:
        Replaced sprintf() with my_gcvt(). We must use the same conversion
        method in both server and client lib.
      mysql-test/r/archive_gis.result:
        Fixed tests to take additional precision from dtoa() into account.
      mysql-test/r/cast.result:
        Fixed tests to take the formatting changes into account.
      mysql-test/r/func_group.result:
        Fixed tests to take additional precision from dtoa() into account.
      mysql-test/r/func_math.result:
        Fixed tests to take additional precision from dtoa() and formatting
        changes into account.
      mysql-test/r/func_str.result:
        Fixed tests to take additional precision from dtoa() and formatting
        changes into account.
      mysql-test/r/gis.result:
        Fixed tests to take additional precision from dtoa() into account.
      mysql-test/r/innodb_gis.result:
        Fixed tests to take additional precision from dtoa() into account.
      mysql-test/r/insert.result:
        Fixed tests to take additional precision from dtoa() into account.
      mysql-test/r/mysqldump.result:
        No need for result substitution since we do not rely on system behavior
        anymore.
      mysql-test/r/ndb_gis.result:
        Fixed tests to take additional precision from dtoa() into account.
      mysql-test/r/parser.result:
        Fixed tests to take additional precision from dtoa() into account.
      mysql-test/r/ps_2myisam.result:
        Fixed tests to take additional precision from dtoa() and formatting
        changes into account.
      mysql-test/r/ps_3innodb.result:
        Fixed tests to take additional precision from dtoa() and formatting
        changes into account.
      mysql-test/r/ps_4heap.result:
        Fixed tests to take additional precision from dtoa() and formatting
        changes into account.
      mysql-test/r/ps_5merge.result:
        Fixed tests to take additional precision from dtoa() and formatting
        changes into account.
      mysql-test/r/ps_7ndb.result:
        Fixed tests to take additional precision from dtoa() and formatting
        changes into account.
      mysql-test/r/select.result:
        Fixed tests to take additional precision from dtoa() into account.
      mysql-test/r/sp.result:
        Fixed tests to take additional precision from dtoa() into account.
        Decimal 2.7182818284590452354 is now converted to the double value of
        2.718281828459045, not 2.718281828459. Thus we get additional precision
        from the subsequent calculations.
      mysql-test/r/strict.result:
        Fixed tests to take additional precision from dtoa() and formatting
        changes into account.
      mysql-test/r/type_decimal.result:
        Added a test case for bug #24541.
      mysql-test/r/type_float.result:
        Fixed tests to take additional precision from dtoa() and formatting
        changes into account.
        Added test cases for bugs #12860, #21497 and #26788.
      mysql-test/r/type_newdecimal.result:
        Fixed tests to take additional precision from dtoa() and formatting
        changes into account.
      mysql-test/r/variables.result:
        Fixed tests to take the formatting changes into account.
      mysql-test/r/view.result:
        Fixed tests to take additional precision from dtoa() into account.
      mysql-test/t/cast.test:
        No need to replace the results for Windows anymore.
      mysql-test/t/insert.test:
        Added test cases from bug #26788.
      mysql-test/t/mysqldump.test:
        Fixed tests to take additional precision from dtoa() into account.
        No need for results substitution because we do not rely on system
        behavior anymore.
      mysql-test/t/type_decimal.test:
        Added a test case for bug #24541.
      mysql-test/t/type_float.test:
        Added test cases for bugs #12860, #21497 and #26788.
      mysql-test/t/type_newdecimal.test:
        Removed replace_result which is pointless with our own floating point
        conversion library.
        Added a reference for WL#3977.
      sql/field.cc:
        Replaced the field.cc's own constant for the maximum double->string 
        conversion buffer with the one defined in m_string.h
        Replaced double->string conversion code with the new wrappers around
        dtoa().
        Fixed a bug in Field_real::truncate() which led to incorrect results
        when +-Infinity was passed as an input number.
        Fixed Field_blob::store(double) to use NOT_FIXED_DEC instead of 2 as
        precision, so that my_gcvt() is now used for conversion.
      sql/field.h:
        Moved NOT_FIXED_DEC to m_string.h because we now use this constant in
        floating point <-> string conversion routines.
      sql/item.cc:
        If a result of a numeric functions is stored in a string field, follow
        the same rules as in Field_str::store(double), i.e. take the field width
        into account.
      sql/log_event.cc:
        Replaced sprintf() with my_gcvt().
      sql/mysql_priv.h:
        Moved log_10[] from strtod.c to mysqld.c, because we don't need it in
        libmystrings anymore.
      sql/mysqld.cc:
        Moved log_10[] from strtod.c to mysqld.c, because we don't need it in
        libmystrings anymore.
      sql/sql_show.cc:
        Replaced sprintf() with my_fcvt().
      sql/sql_string.cc:
        Replace the double->string conversion code with the new wrappers around
        dtoa().
      sql/unireg.h:
        Moved FLOATING_POINT_BUFFER from unireg.h to m_string.h so it can be
        used in libmystrings.
      strings/Makefile.am:
        Removed strtod.c, added dtoa.c
      strings/decimal.c:
        Replaced sprintf() with my_gcvt().
        Changed double2decimal() to print the digits to a string buffer, then
        use my_strtod().
      strings/dtoa.c:
        Initial import of the dtoa code and custom wrappers around it to allow
        its usage from the server code.
      04116597
  8. 07 Nov, 2007 1 commit
    • unknown's avatar
      Bug #20748: Configuration files should not be read more than once · 707f42a6
      unknown authored
      A user could not override system-wide settings in their ~/.my.cnf,
      because the DEFAULT_SYSCONFDIR was being searched last.  Also, in
      some configurations (especially when the --sysconfdir compile-time
      option is set to /etc or /etc/mysql), the system-wide my.cnf file
      was read multiple times, causing confusion and potential problems.
      
      Rearrange default directories to conform to the manual and logic.
      Move --sysconfdir=<path> (DEFAULT_SYSCONFDIR) from the last default
      directory to the middle of the list.  $HOME/.my.cnf should be last,
      so the user is able to override the system-wide settings.
      
      Change init_default_directories() to remove duplicates from the
      list.
      
      
      include/my_sys.h:
        Add array_append_string_unique(), from mf_arr_appstr.c
      libmysql/Makefile.shared:
        Add new mf_arr_appstr.lo object
      mysys/CMakeLists.txt:
        Add new mf_arr_appstr.c source.
      mysys/Makefile.am:
        Add new mf_arr_appstr.c source.
      mysys/default.c:
        Change order in which defaults files are added to default_directories,
        in order to conform to the manual (and to common sense).  This fixes
        a particularly bad problem on Unix, where ~/.my.cnf was read before
        /usr/local/etc/my.cnf.
        
        Also, don't add duplicate entries; move the existing entry to the
        end of the list instead.
        
        
        Here is a comparison of the order of defaults files, BEFORE and AFTER
        this patch.
        
        On Windows:
        
        BEFORE:  C:\, GetWindowsDirectory(), GetSystemWindowsDirectory(),
                 $MYSQL_HOME, defaults-extra-file, INSTALLDIR
        
        AFTER:  GetSystemWindowsDirectory(), GetWindowsDirectory(), C:\,
                INSTALLDIR, $MYSQL_HOME, defaults-extra-file
        
        GetSystemWindowsDirectory() is moved before GetWindowsDirectory() because
        the former is shared by all Terminal Services users, while the latter is
        private for each user.
        
        
        On Netware (no change):
        
        BEFORE:  sys:/etc/, $MYSQL_HOME, defaults-extra-file
        
        AFTER:  sys:/etc, $MYSQL_HOME, defaults-extra-file
        
        
        On OS/2:
        
        BEFORE:  $ETC, /etc, $MYSQL_HOME, defaults-extra-file
        
        AFTER:  /etc, $ETC, $MYSQL_HOME, defaults-extra-file
        
        
        On everything else (general Unix):
        
        BEFORE:  /etc, $MYSQL_HOME, defaults-extra-file, ~/, --sysconfdir
        
        AFTER:  /etc/, --sysconfdir, $MYSQL_HOME, defaults-extra-file, ~/
        
        The BEFORE code added --sysconfdir on all systems, but only the
        Unix build system actually defined a value for it.
      mysys/mf_arr_appstr.c:
        BitKeeper file /home/tsmith/m/bk/build/50-b20748/mysys/mf_arr_appstr.c
      707f42a6
  9. 17 Oct, 2007 1 commit
    • unknown's avatar
      Fix for bug #31207: Test "join_nested" shows different strategy on IA64 · ce8bf087
      unknown authored
      CPUs / Intel's ICC compile
      
      The bug is a combination of two problems:
      
      1. IA64/ICC MySQL binaries use glibc's qsort(), not the one in mysys.
      
      2. The order relation implemented by join_tab_cmp() is not transitive,
      i.e. it is possible to choose such a, b and c that (a < b) && (b < c)
      but (c < a). This implies that result of a sort using the relation
      implemented by join_tab_cmp() depends on the order in which
      elements are compared, i.e. the result is implementation-specific. Since
      choose_plan() uses qsort() to pre-sort the
      join tables using join_tab_cmp() as a compare function, the results of
      the sorting may vary depending on qsort() implementation.
      
      It is neither possible nor important to implement a better ordering
      algorithm in join_tab_cmp(). Therefore the only way to fix it is to
      force our own qsort() to be used by renaming it to my_qsort(), so we don't depend
      on linker to decide that.
      
      This patch also "fixes" bug #20530: qsort redefinition violates the
      standard.
      
      
      include/my_sys.h:
        Renamed qsort() and qsort2() to my_qsort() and my_qsort2(). Since
        previously we relied on stdlib.h to provide a declaration for qsort(), a
        separate declaration for my_qsort() is now required.
      libmysql/Makefile.shared:
        Added mf_qsort.c to libmysql, since my_lib.c now uses my_qsort() instead of qsort().
      myisam/ft_boolean_search.c:
        Replaced qsort2() with my_qsort2().
      myisam/ft_nlq_search.c:
        Replaced qsort2() with my_qsort2().
      myisam/myisampack.c:
        Replaced qsort() with my_qsort().
      myisam/sort.c:
        Replaced qsort2() with my_qsort2().
      mysys/mf_keycache.c:
        Replaced qsort() with my_qsort().
      mysys/mf_qsort.c:
        Renamed qsort() to my_qsort() and qsort2() to my_qsort2().
      mysys/mf_sort.c:
        Replaced qsort2() with my_qsort2().
      mysys/my_lib.c:
        Replaced qsort() with my_qsort().
      mysys/queues.c:
        Replaced qsort2() with my_qsort2().
      sql/item_cmpfunc.cc:
        Replaced qsort2() with my_qsort2().
      sql/item_cmpfunc.h:
        Replaced qsort2() with my_qsort2().
      sql/opt_range.cc:
        Replaced qsort() with my_qsort().
      sql/records.cc:
        Replaced qsort() with my_qsort().
      sql/sql_acl.cc:
        Replaced qsort() with my_qsort().
      sql/sql_array.h:
        Replaced qsort() with my_qsort().
      sql/sql_help.cc:
        Replaced qsort() with my_qsort().
      sql/sql_select.cc:
        Replaced qsort() with my_qsort().
      sql/examples/ha_tina.cc:
        Replaced qsort() with my_qsort().
      sql/sql_table.cc:
        Replaced qsort() with my_qsort().
      ce8bf087
  10. 11 Oct, 2007 1 commit
    • unknown's avatar
      Moved a lot of old bug fixes and safe cleanups from Maria 5.1 tree to 5.1 · fb84f573
      unknown authored
      - Reserver namespace and place in frm for TABLE_CHECKSUM and PAGE_CHECKSUM create options
      - Added syncing of directory when creating .frm files
      - Portability fixes
      - Added missing cast that could cause bugs
      - Code cleanups
      - Made some bit functions inline
      - Moved things out of myisam.h to my_handler.h to make them more accessable
      - Renamed some myisam variables and defines to make them more globaly usable (as they are used outside of MyISAM)
      - Fixed bugs in error conditions
      - Use compiler time asserts instead of run time
      - Fixed indentation
      HA_EXTRA_PREPARE_FOR_DELETE -> HA_EXTRA_PREPARE_FOR_DROP as the old name was wrong
      (Added a define for old value to ensure we don't break any old code)
      Added HA_EXTRA_PREPARE_FOR_RENAME as a signal for rename (before we used a DROP signal which is wrong)
      - Initialize error messages early to get better errors when mysqld or an engine fails to start
      - Fix windows bug that query_performance_frequency was not initialized if registry code failed
      - thread_stack -> my_thread_stack_size
      
      
      BitKeeper/etc/ignore:
        added libmysqld/scheduler.cc libmysqld/sql_connect.cc libmysqld/sql_tablespace.cc
      include/Makefile.am:
        Added my_bit.h
      include/m_string.h:
        Added bzero_if_purify() to simplify code
      include/my_base.h:
        Reserve options for the future
        Added HA_OPTION_NULL_FIELDS, HA_OPTION_PAGE_CHECKSUM, HA_CREATE_PAGE_CHECKSUM
        Added new error message HA_ERR_NEW_FILE
        Added optional new row type BLOCK_RECORD
        Renamed HA_EXTRA_PREPARE_FOR_DELETE to HA_EXTRA_PREPARE_FOR_DROP
        Added HA_EXTRA_PREARE_FOR_RENAME to inform handler we will do a rename
        (Added define to make things compatible until 6.0)
        Moved invalidator_by_filename form myisam.h
      include/my_dbug.h:
        Poirtablity fix
      include/my_global.h:
        Added helper macros STATIC_INLINE and MY_ERRPTR
        Added NEED_EXPLICIT_SYNC_DIR
      include/my_handler.h:
        Added missing casts
        Moved some constants and macros out from myisam.h to make these generally available
        Renamed mi_compare_text() to ha_compare_text() as this function is not myisam specific
        Renamed mi_portable_sizeof_char_ptr to portable_sizeof_char_ptr
        Added registering of handler messages for better error reporting during startup
      include/my_sys.h:
        Added my_sync_dir() and my_sync_dir_by_file()
        More comments
        Some indentation fixes
        Moved bit functions to my_bit.h
        Added prototype for crc32()
      include/myisam.h:
        Moved things from here to my_handler.h to make them more accessable
      libmysql/Makefile.shared:
        Added my_sync
      mysys/array.c:
        Fixed indentation and spelling errors
        Split set_dynamic() to two functions
        Added allocate_dynamic() as a new visiable function
        (no new code, only refactoring)
      mysys/mf_iocache.c:
        More DBUG
      mysys/mf_keycache.c:
        More explicite ASSERT
        Removed some casts
        Fixed indentation
      mysys/mf_tempfile.c:
        Fixed bug with possible dangling file descriptor
      mysys/my_atomic.c:
        Use compile time asserts instead of run time
      mysys/my_bit.c:
        Make most bit functions inline
      mysys/my_bitmap.c:
        Added my_bit.h
      mysys/my_compress.c:
        Fixed indentation
      mysys/my_create.c:
        Added my_sync_by_dir()
      mysys/my_delete.c:
        Added my_sync_by_dir()
      mysys/my_error.c:
        init_glob_errs() is now done in my_init()
      mysys/my_handler.c:
        mi_compare_text() -> ha_compare_text() as this is not MyISAM specific
        Added functions to initialize handler error messages
        Fixed indentation
        More clear usage of include files
      mysys/my_init.c:
        Added my_thread_stack_size to be used by other programs
        Ensure that global error messages are always initialized
        Fix windows bug that query_performance_frequency was not initialized if registry code failed
      mysys/my_open.c:
        More comments
        Removed duplicate code
      mysys/my_pread.c:
        Ensure that my_errno is set even if errno is 0
      mysys/my_realloc.c:
        Added comment
      mysys/my_rename.c:
        Added syncing of directories
      mysys/my_symlink.c:
        Added my_sync_by_dir()
      mysys/my_sync.c:
        Added my_sync_dir()
         
        On recent Mac OS X, fcntl(F_FULLFSYNC) is recommended over fsync()
        (see "man fsync" on Mac OS X 10.3).
        my_sync_dir(): to sync a directory after a file creation/deletion/
        renaming; can be called directly or via MY_SYNC_DIR in my_create/
        my_delete/my_rename(). No-op except on Linux (see "man fsync" on Linux).
        my_sync_dir_from_file(): same as above, just more practical when the
        caller has a file name but no directory name ready.
        Should the #warning even be a #error? I mean do we want to release
        binaries which don't guarantee any durability?
      mysys/safemalloc.c:
        Added sf_malloc_report_allocated() (Debugging aid)
      sql/gen_lex_hash.cc:
        Remove inline for big function
      sql/ha_partition.cc:
        HA_EXTRA_PREPARE_FOR_DELETE -> HA_EXTRA_PREPARE_FOR_DROP
        prepare_for_delete -> prepare_for_rename() as this is the the time this function is called
      sql/ha_partition.h:
        prepare_for_delete -> prepare_for_rename() as this is the the time this function is called
      sql/handler.cc:
        ha_init_errors() is now called at startup before plugins
        This allows us to get better error messages
      sql/handler.h:
        Reserve enum value for Maria
        Add future proof enum for page checksums
      sql/item_func.cc:
        Include my_bit.h
      sql/lex.h:
        Added future proof CREATE table options
      sql/log.cc:
        Added comment
      sql/mysql_priv.h:
        thread_stack moved to mysys
      sql/mysqld.cc:
        thread_stack moved to mysys
        thread_stack -> my_thread_stack_size
        Initialize myisam key caches before plugins starts
        Initialize error to allow storage engine to give better error messages if init failes.
        Fixed indentation
        Group all MyISAM options together
        Added new status variable 'Opened_table_definitions' to allow one to monitor if table definition cache is too small
        Clarified some option help messages
      sql/opt_range.cc:
        Removed wrong usage of SAFE_MODE (this disabled key usage for UPDATES, which was never the intention)
        Removed print if total cost in a place where it didn't have any usable value
      sql/set_var.cc:
        thread_stack -> my_thread_stack
      sql/sql_class.cc:
        Intialize transaction object properly
      sql/sql_parse.cc:
        thread_stack -> my_thread_stack
      sql/sql_select.cc:
        Include my_bit.h
        mi_portable_sizeof_char_ptr -> portable_sizeof_char_ptr
      sql/sql_show.cc:
        Simplify handling of ha_choice variables
        Added future safe PAGE_CHECKSUM option
        Addid missing 'transactional=#' in information schema
      sql/sql_table.cc:
        HA_EXTRA_PREPARE_FOR_DELETE -> HA_EXTRA_FORCE_REOPEN when doing reopen
        HA_EXTRA_PREPARE_FOR_DELETE -> HA_EXTRA_PREPARE_FOR_RENAME when doing rename
        Removed not needed initialization
      sql/sql_test.cc:
        thread_stack -> my_thread_stack
      sql/sql_yacc.yy:
        Simplify handling of ha_choice variables
        Added future proof create table options TABLE_CHECKSUM=# & PAGE_CHECKSUM=#
      sql/table.cc:
        Save page_checksum in .frm
      sql/table.h:
        Added variable to hold create table option PAGE_CHECKSUM
      sql/unireg.cc:
        Added syncing of directories
      storage/myisam/ft_boolean_search.c:
        mi_compare_text() -> ha_compare_text()
      storage/myisam/ft_eval.c:
        mi_compare_text() -> ha_compare_text()
      storage/myisam/ft_nlq_search.c:
        mi_compare_text() -> ha_compare_text()
      storage/myisam/ft_parser.c:
        mi_compare_text() -> ha_compare_text()
      storage/myisam/ft_stopwords.c:
        mi_compare_text() -> ha_compare_text()
      storage/myisam/ft_test1.c:
        mi_portable_sizeof_char_ptr -> portable_sizeof_char_ptr
      storage/myisam/ft_update.c:
        mi_compare_text() -> ha_compare_text()
      storage/myisam/ha_myisam.cc:
        Include my_bit.h
      storage/myisam/mi_check.c:
        MI_MAX_POSSIBLE_KEY_BUFF -> HA_MAX_POSSIBLE_KEY_BUFF
        mi_compare_text() -> ha_compare_text()
        Added BLOCK_RECORD to avoid compiler warnings
      storage/myisam/mi_checksum.c:
        mi_portable_sizeof_char_ptr -> portable_sizeof_char_ptr
      storage/myisam/mi_create.c:
        MI_MAX_POSSIBLE_KEY -> HA_MAX_POSSIBLE_KEY
        MI_MAX_KEY_BLOCK_SIZE -> HA_MAX_KEY_BLOCK_SIZE
        mi_portable_sizeof_char_ptr -> portable_sizeof_char_ptr
      storage/myisam/mi_dynrec.c:
        mi_portable_sizeof_char_ptr -> portable_sizeof_char_ptr
      storage/myisam/mi_extra.c:
        HA_EXTRA_PREPARE_FOR_DELETE -> HA_EXTRA_PREPARE_FOR_DROP
      storage/myisam/mi_open.c:
        MI_MAX_POSSIBLE_KEY -> HA_MAX_POSSIBLE_KEY
        mi_portable_sizeof_char_ptr -> portable_sizeof_char_ptr
      storage/myisam/mi_packrec.c:
        mi_portable_sizeof_char_ptr -> portable_sizeof_char_ptr
      storage/myisam/mi_range.c:
        mi_compare_text -> ha_compare_text
      storage/myisam/mi_test1.c:
        mi_portable_sizeof_char_ptr -> portable_sizeof_char_ptr
      storage/myisam/mi_test2.c:
        mi_portable_sizeof_char_ptr -> portable_sizeof_char_ptr
      storage/myisam/mi_unique.c:
        mi_compare_text() -> ha_compare_text()
      storage/myisam/mi_write.c:
        mi_compare_text() -> ha_compare_text()
      storage/myisam/myisamchk.c:
        Include my_bit.h
      storage/myisam/myisamdef.h:
        Moved store_key_length_inc to handler.h
      storage/myisam/myisampack.c:
        mi_portable_sizeof_char_ptr -> portable_sizeof_char_ptr
      storage/myisam/sp_test.c:
        mi_portable_sizeof_char_ptr -> portable_sizeof_char_ptr
      storage/myisammrg/ha_myisammrg.cc:
        HA_EXTRA_PREPARE_FOR_DELETE -> HA_EXTRA_PREPARE_FOR_DROP
      include/my_bit.h:
        New BitKeeper file ``include/my_bit.h''
      fb84f573
  11. 30 Jul, 2007 1 commit
    • unknown's avatar
      Slow query log to file now displays queries with microsecond precission · b59217eb
      unknown authored
      --long-query-time is now given in seconds with microseconds as decimals
      --min_examined_row_limit added for slow query log
      long_query_time user variable is now double with 6 decimals
      Added functions to get time in microseconds
      Added faster time() functions for system that has gethrtime()  (Solaris)
      We now do less time() calls.
      Added field->in_read_set() and field->in_write_set() for easier field manipulation by handlers
      set_var.cc and my_getopt() can now handle DOUBLE variables.
      All time() calls changed to my_time()
      my_time() now does retry's if time() call fails.
      Added debug function for stopping in mysql_admin_table() when tables are locked
      Some trivial function and struct variable renames to avoid merge errors.
      Fixed compiler warnings
      Initialization of some time variables on windows moved to my_init() 
      
      
      include/my_getopt.h:
        Added support for double arguments
      include/my_sys.h:
        Fixed wrong type to packfrm()
        Added new my_time functions
      include/mysql/plugin.h:
        Added support for DOUBLE
      libmysql/CMakeLists.txt:
        Added new time functions
      libmysql/Makefile.shared:
        Added new time functions
      mysql-test/r/variables.result:
        Testing of long_query_time
      mysql-test/t/variables.test:
        Testing of long_query_time
      mysys/charset.c:
        Fixed compiler warnings
      mysys/default_modify.c:
        Fixed compiler warnings
      mysys/hash.c:
        Fixed compiler warnings
      mysys/mf_getdate.c:
        Use my_time()
      mysys/mf_iocache2.c:
        Fixed compiler warnings
      mysys/mf_pack.c:
        Fixed compiler warnings
      mysys/mf_path.c:
        Fixed compiler warnings
      mysys/my_append.c:
        Fixed compiler warnings
      mysys/my_compress.c:
        Fixed compiler warnings
      mysys/my_copy.c:
        Fixed compiler warnings
      mysys/my_gethwaddr.c:
        Fixed compiler warnings
      mysys/my_getopt.c:
        Added support for double arguments
      mysys/my_getsystime.c:
        Added functions to get time in microseconds.
        Added faster time() functions for system that has gethrtime()  (Solaris)
        Moved windows initialization code to my_init()
      mysys/my_init.c:
        Added initializing of variables needed for windows time functions
      mysys/my_static.c:
        Added variables needed for windows time functions
      mysys/my_static.h:
        Added variables needed for windows time functions
      mysys/my_thr_init.c:
        Added THR_LOCK_time, used for faster my_time()
      mysys/mysys_priv.h:
        Added THR_LOCK_time, used for faster my_time()
      mysys/thr_alarm.c:
        time() -> my_time()
      sql/event_data_objects.cc:
        end_time() -> set_current_time()
      sql/event_queue.cc:
        end_time() -> set_current_time()
      sql/event_scheduler.cc:
        Fixed compiler warnings
      sql/field.h:
        Added field->in_read_set() and field->in_write_set() for easier field manipulation by handlers
      sql/item.h:
        Added decimal to Item_float(double)
      sql/item_cmpfunc.h:
        Added decimal to Item_float(double)
      sql/item_timefunc.cc:
        time() -> my_time()
      sql/item_xmlfunc.cc:
        Fixed compiler warning
      sql/lock.cc:
        lock_time() -> set_time_after_lock()
      sql/log.cc:
        Timing in slow query log to file is now done in microseconds
        Changed some while() loops to for() loops.
        Fixed indentation
        time() -> my_time()
      sql/log.h:
        Slow query logging is now done based on microseconds
      sql/log_event.cc:
        time() -> my_time()
        Fixed arguments to new Item_float()
      sql/mysql_priv.h:
        Fixed compiler warnings
        Added opt_log_slow_slave_statements
      sql/mysqld.cc:
        Added --log_slow_slave_statements and --min_examined_row_limit
        --long-query-time now takes a double argument with microsecond resolution
        Don't write shutdown message when using --help
        Removed not needed \n
        Thread create time and connect time is now done in microseconds
        time() -> my_time()
        Avoid some time() calls
      sql/net_serv.cc:
        Fixed compiler warnings
      sql/parse_file.cc:
        time() -> my_time()
      sql/set_var.cc:
        Added support for DOUBLE variables
        Added support for variables that are given in seconds with microsecond resolution
      sql/set_var.h:
        Added support for variables that are given in seconds with microsecond resolution
      sql/slave.cc:
        Allow logging of slave queries to slow query log if 'opt_log_slow_slave_statements' is given
        time() -> my_time()
      sql/sql_cache.h:
        Fixed compiler warning()
      sql/sql_class.cc:
        Initialize new THD variables
      sql/sql_class.h:
        long_query_time is now in microseconds
        Added min_examined_row_limit
        Reordered some THD elements for higher efficency
        Added timers in microseconds (connect_utime, thr_create_utime, start_utime and utime_after_lock)
        Start of query is now recorded both in seconds and in microseconds.
        Following renames was made for more clarity and avoid merge problems from earlier versions:
        connect_time -> connect_utime
        thr_create_time -> thr_create_utime
        end_time()  -> set_current_time()
        lock_time() -> set_time_after_lock()
        
        Added THD::start_utime, which is start of query in microseconds from some arbitary time
        Added function THD::current_utime()
        
        Removed safe_time() as retry's are handled in my_time()
      sql/sql_connect.cc:
        User resources are now using microsecond resolution
      sql/sql_insert.cc:
        end_time() -> set_current_time()
      sql-common/client.c:
        time() -> my_time()
      sql/sql_parse.cc:
        Testing if we should print to slow_query_log() is now done with microsecond precission.
        If min_examined_row_limit is given, only log queries to slow query log that has examined more rows than this.
      sql/sql_select.cc:
        Simplify code now that Item_float() takes decimals as argument
      sql/sql_show.cc:
        time() -> my_time()
        Added support for SYS_DOUBLE
      sql/sql_table.cc:
        Added debug function for stopping in mysql_admin_table() when tables are locked
      sql/structs.h:
        intime -> reset_utime
      b59217eb
  12. 27 Mar, 2007 1 commit
    • unknown's avatar
      Bug#22508 BUILD/compile-dist fails due to problem with readline/libedit · c2d2ede3
      unknown authored
       - Move the link_sources command from top level Makefile into each subdir
         that need to link files
      
      
      BitKeeper/etc/ignore:
        Added libmysqld/link_sources libmysql/link_sources include/link_sources client/link_sources to the ignore list
      Makefile.am:
        Move link_sources down into each sub directory that might need it
      client/Makefile.am:
        Add "link_sources" to BUILT_SOURCES
      configure.in:
        Move link_sources down into each sub directory that might need it
      include/Makefile.am:
        Add "link_sources" to BUILT_SOURCES
      libmysql/Makefile.am:
        Add "link_sources" to BUILT_SOURCES
      libmysql/Makefile.shared:
        Add "link_sources" to BUILT_SOURCES
      libmysqld/Makefile.am:
        Add "link_sources" to BUILT_SOURCES
      libmysqld/examples/Makefile.am:
        Add "link_sources" to BUILT_SOURCES
      netware/Makefile.am:
        Add "link_sources" to BUILT_SOURCES
      sql/Makefile.am:
        Add "link_sources" to BUILT_SOURCES
      c2d2ede3
  13. 27 Nov, 2006 1 commit
    • unknown's avatar
      ha_innodb.m4, Makefile.am, ha_ndbcluster.m4, Makefile.shared, ha_berkeley.m4: · 16918343
      unknown authored
        Reenabled build outside source tree
      
      
      config/ac-macros/ha_berkeley.m4:
        Reenabled build outside source tree
      config/ac-macros/ha_innodb.m4:
        Reenabled build outside source tree
      config/ac-macros/ha_ndbcluster.m4:
        Reenabled build outside source tree
      extra/yassl/src/Makefile.am:
        Reenabled build outside source tree
      extra/yassl/taocrypt/benchmark/Makefile.am:
        Reenabled build outside source tree
      extra/yassl/taocrypt/src/Makefile.am:
        Reenabled build outside source tree
      extra/yassl/taocrypt/test/Makefile.am:
        Reenabled build outside source tree
      extra/yassl/testsuite/Makefile.am:
        Reenabled build outside source tree
      libmysql/Makefile.shared:
        Reenabled build outside source tree
      ndb/src/mgmsrv/Makefile.am:
        Reenabled build outside source tree
      16918343
  14. 10 Apr, 2006 1 commit
    • unknown's avatar
      Bug#15069 [patch] my_print_defaults does'nt care --sysconfdir · f2ff24bd
      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
      f2ff24bd
  15. 03 Apr, 2006 1 commit
    • unknown's avatar
      yassl link problem fixed · 70f4dbaa
      unknown authored
      config/ac-macros/yassl.m4:
        typo
      libmysql/Makefile.am:
        move common code to Makefile.shared
      libmysql/Makefile.shared:
        move common code to Makefile.shared
      libmysql_r/Makefile.am:
        move common code to Makefile.shared
      70f4dbaa
  16. 17 Jan, 2006 1 commit
    • unknown's avatar
      BUG#3074: Unversioned symbols in shared library · 91b4e6b5
      unknown authored
      libmysqlclient versioning when linked with GNU ld.
      
      
      BitKeeper/etc/ignore:
        Added libmysql/libmysql.ver to the ignore list
      configure.in:
        libmysqlclient versioning when linked with GNU ld.
      libmysql/Makefile.shared:
        libmysqlclient versioning when linked with GNU ld.
      libmysql/libmysql.ver.in:
        New BitKeeper file ``libmysql/libmysql.ver.in''
      91b4e6b5
  17. 18 Jul, 2005 1 commit
    • unknown's avatar
      Cleanups during review · 68b4d7b7
      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()
      68b4d7b7
  18. 24 Jun, 2005 1 commit
    • unknown's avatar
      Add my_str_malloc and _free function pointers to strings library · f56dd2a0
      unknown authored
      which will by default exit(1) if malloc() fails, but can be set
      to do something else by the calling program does, which mysqld
      does to use my_malloc(..., MYF(MY_FAE)) instead. Also checks
      allocation in conf_to_src utility program. (Bug #7003)
      
      
      strings/conf_to_src.c:
        if malloc() fails, just abort
      VC++Files/client/mysqlclient.dsp:
        Add str_alloc.c
      VC++Files/client/mysqlclient_ia64.dsp:
        Add str_alloc.c
      VC++Files/libmysql/libmysql.dsp:
        Add str_alloc.c
      VC++Files/libmysql/libmysql_ia64.dsp:
        Add str_alloc.c
      VC++Files/libmysqld/libmysqld.dsp:
        Add str_alloc.c
      VC++Files/libmysqld/libmysqld_ia64.dsp:
        Add str_alloc.c
      VC++Files/strings/backup/strings.dsp:
        Add str_alloc.c
      VC++Files/strings/noMASM/strings.dsp:
        Add str_alloc.c
      VC++Files/strings/strings.dsp:
        Add str_alloc.c
      VC++Files/strings/strings_ia64.dsp:
        Add str_alloc.c
      include/m_string.h:
        Add my_str_malloc/free function pointers.
      libmysql/Makefile.shared:
        Add str_alloc.lo
      sql/mysqld.cc:
        Reassign my_str_malloc/free pointers so they use my_malloc/free
      strings/Makefile.am:
        Add str_alloc.c
      strings/ctype-tis620.c:
        Use my_str_malloc/free
      f56dd2a0
  19. 18 May, 2005 1 commit
    • unknown's avatar
      New file default_modify.c. Fixed a typo on mysqld.cc · 48ce8aeb
      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.
      48ce8aeb
  20. 15 May, 2005 1 commit
    • unknown's avatar
      post-review fixes · 6b4dbcb4
      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
      6b4dbcb4
  21. 05 May, 2005 1 commit
  22. 23 Mar, 2005 1 commit
    • unknown's avatar
      "After Monty's review" changes to the fix for BUG#8325 "Deadlock in... · 6bc324ed
      unknown authored
      "After Monty's review" changes to the fix for BUG#8325 "Deadlock in replication thread stops replication":
      s/sleep/safe_sleep (thread safe); sleep 0/1/2/3/4/5/5/5 (get slave less late);
      no message on error log (deadlock is too common sometimes), a global counter
      instead (SHOW STATUS LIKE 'slave_retried_transactions').
      Plus a fix for libmysql/Makefile.shared
      
      
      libmysql/Makefile.shared:
        When we "make clean" in libmysql/ we remove the symlinks there, so we
        need to mark that they have to be recreated later: this is done by removing
        ../linked_libmysql_sources. If we don't do this, 'make' will fail after 'cd libmysql;make clean'.
        This Makefile.shared is used by libmysql_r too.
        No reason to remove linked_client_sources as we don't remove the links in client/.
      mysql-test/r/rpl_deadlock.result:
        result fix
      mysql-test/t/rpl_deadlock.test:
        small test addition
      sql/mysqld.cc:
        if active_mi could not be alloced, die. New SHOW STATUS LIKE "slave_retried_transactions".
      sql/slave.cc:
        If slave retries automatically a transaction, no message on error log
        (too common situation); sleep 0 secs at first retry, then 1, 2, 3, 4,
        5, 5, 5... Sleeping 0 is to get the least possible late, as deadlocks
        are usually resolved at first try. New global counter rli->retried_trans
        (for SHOW STATUS: total number of times the slave had to retry
        any transaction). safe_sleep() is thread-safe, sleep() was not.
        I change the rli->trans_retries counter to go from 0 to max instead
        of the other way (better for new sleep()).
      sql/slave.h:
        new global counter rli->retried_trans
      sql/sql_show.cc:
        SHOW STATUS LIKE "slave_retried_transactions"; needs replication mutexes.
        Can't be a simple SHOW_LONG, because active_mi is unset (not alloced yet)
        when the static global status_vars is created (active_mi is set
        in init_slave()).
      sql/structs.h:
        new SHOW_SLAVE_RETRIED_TRANS
      BitKeeper/etc/logging_ok:
        Logging to logging@openlogging.org accepted
      6bc324ed
  23. 25 Jan, 2005 1 commit
    • unknown's avatar
      Some bug fixes and a feature add to mysql-test-run · a2fdebaa
      unknown authored
      client/mysql.cc:
        Fixed Bug#981  ".mysql_history is lost if mysql clinent exit when out of space"
      client/mysqlbinlog.cc:
        Fix for mysqlbinlog, mysql_close() needs to be called.
      libmysql/Makefile.shared:
        Added use of my_rename()
      mysql-test/mysql-test-run.sh:
        Added possibility to add file t/testname.disabled. This will disable a
        test with same base name. Additionally, if the .disabled file contains text,
        it will be appended as a comment after the test during run.
      a2fdebaa
  24. 12 Jan, 2005 2 commits
    • unknown's avatar
      renamed charset name 'eucjp_ms' to 'eucjpms' · e234bbea
      unknown authored
      e234bbea
    • unknown's avatar
      added new character set - cp932, eucjp_ms · 37a15ec0
      unknown authored
      config/ac-macros/character_sets.m4:
        added cp932, eucjp_ms character set
      include/m_ctype.h:
        added cp932, eucjp_ms character set
      libmysql/Makefile.shared:
        added cp932, eucjp_ms character set
      mysys/charset-def.c:
        added cp932, eucjp_ms character set
      sql/share/charsets/Index.xml:
        added cp932, eucjp_ms character set
      strings/Makefile.am:
        added cp932, eucjp_ms character set
      37a15ec0
  25. 04 Jan, 2005 1 commit
    • unknown's avatar
      Added checking for my.cnf file from environment variable MYSQL_HOME · b7322bad
      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.
      b7322bad
  26. 25 Sep, 2004 1 commit
  27. 05 Aug, 2004 2 commits
    • unknown's avatar
      - rename: EXCEPTIONS->EXCEPTIONS-CLIENT · 06cd2efc
      unknown authored
      06cd2efc
    • unknown's avatar
      - Fixed libmysql license texts: added reference to the FLOSS · 7b614774
      unknown authored
         EXCEPTIONS file and amended the GPL text as requested by Zak
      
      
      libmysql/Makefile.am:
         - Fixed license text, added reference to the EXCEPTIONS file
      libmysql/Makefile.shared:
         - Fixed license text, added reference to the EXCEPTIONS file
      libmysql/conf_to_src.c:
         - Fixed license text, added reference to the EXCEPTIONS file
      libmysql/dll.c:
         - Fixed license text, added reference to the EXCEPTIONS file
      libmysql/errmsg.c:
         - Fixed license text, added reference to the EXCEPTIONS file
      libmysql/get_password.c:
         - Fixed license text, added reference to the EXCEPTIONS file
      libmysql/libmysql.c:
         - Fixed license text, added reference to the EXCEPTIONS file
      libmysql/manager.c:
         - Fixed license text, added reference to the EXCEPTIONS file
      libmysql_r/Makefile.am:
         - Fixed license text, added reference to the EXCEPTIONS file
      7b614774
  28. 24 Jun, 2004 1 commit
    • unknown's avatar
      Fix for Bug#4030 "Client side conversion string -> date type doesn't · 9dde4188
      unknown authored
      work (prepared statements)" and after-review fixes:
      - str_to_TIME renamed to str_to_datetime to pair with str_to_time
      - functions str_to_time and str_to_TIME moved to sql-common
      - send_data_str now supports MYSQL_TYPE_TIME, MYSQL_TIME_DATE,
        MYSQL_TIME_DATETIME types of user input buffers.
      - few more comments in the client library
      - a test case added.
      
      
      VC++Files/libmysql/libmysql.dsp:
        new file: my_time.c
      VC++Files/libmysqld/libmysqld.dsp:
        new file: my_time.c
      VC++Files/sql/mysqld.dsp:
        new file: my_time.c
      include/Makefile.am:
        - mysql_time.h added to the list of installed client library headers
      include/mysql.h:
        - declarations for MYSQL_TIME and enum_mysql_timestamp_type moved to 
        mysql_time.h, which is in shared use of client library and mysys.
      libmysql/Makefile.shared:
        - my_time.lo added to the list of libmysql objects
      libmysql/libmysql.c:
        Fix for bug#4030 "Client side conversion string -> date type doesn't work
         (prepared statements)" and cleanup.
        - added case labels for TIME/DATE/DATETIME types to send_data_str
        - comments for read_binary_{date,time,datetime}, fetch_result_*, fetch_results.
      libmysqld/Makefile.am:
        - my_time.c added
      sql-common/Makefile.am:
        - my_time.c added to the list of files included into source distribution.
      sql/Makefile.am:
        my_time.c added to the list of mysqld sources.
      sql/field.cc:
        - TIMESTAMP_{TIME,DATE,DATETIME,...} renamed to 
          MYSQL_TIMESTAMP_{TIME,DATETIME,DATE,...}
      sql/item.cc:
        - TIMESTAMP_{TIME,DATE,DATETIME,...} renamed to 
          MYSQL_TIMESTAMP_{TIME,DATETIME,DATE,...}
      sql/item_timefunc.cc:
        - TIMESTAMP_{TIME,DATE,DATETIME,...} renamed to 
          MYSQL_TIMESTAMP_{TIME,DATETIME,DATE,...}
      sql/mysql_priv.h:
        - added typedefs for TIME and timestamp_type
        - removed declarations for str_to_time and str_to_TIME (now this functions
          reside in mysys)
      sql/mysqld.cc:
        - log_10_int moved to mysys (it's used by str_to_TIME and str_to_time)
        - enum values TIMESTAMP_{TIME,DATE,DATETIME} were renamed to
          MYSQL_TIMESTAMP_{TIME,DATE,DATETIME}
      sql/set_var.cc:
        - TIMESTAMP_{TIME,DATE,DATETIME,...} renamed to 
          MYSQL_TIMESTAMP_{TIME,DATETIME,DATE,...}
      sql/set_var.h:
        - fixed timestamp_type usage to be compatible with typedef.
      sql/sql_prepare.cc:
        - TIMESTAMP_{TIME,DATE,DATETIME} were renamed to
          MYSQL_TIMESTAMP_{TIME,DATE,DATETIME}
        - embedded library implementation of set_param_{time,date,datetime} is
        much simplier now, as MYSQL_TIME is the same as TIME.
      sql/sql_yacc.yy:
        - s/\<TIMESTAMP_/MYSQL_TIMESTAMP/gc
      sql/structs.h:
        - declarations for TIME and timestamp_type replaced with typedefs
        - str_to_datetime arguments moved to mysys headers
      sql/time.cc:
        - str_to_time and str_to_TIME moved to mysys
        - TIMESTAMP_{TIME,DATE,DATETIME,...} renamed to 
          MYSQL_TIMESTAMP_{TIME,DATETIME,DATE,...} as these names are now
          exported to client.
        - str_to_TIME renamed to str_to_datetime to pair with str_to_time
        - str_to_TIME_with_warn renamed accordingly
      sql/tztime.cc:
        - TIMESTAMP_{TIME,DATE,DATETIME,...} renamed to 
          MYSQL_TIMESTAMP_{TIME,DATETIME,DATE,...}
      tests/client_test.c:
        - a test case for Bug#4030 "Client side conversion string -> date type 
        doesn't work (prepared statements)"
      9dde4188
  29. 24 Mar, 2004 1 commit
  30. 19 Feb, 2004 1 commit
    • unknown's avatar
      Max open files handling moved to my_set_max_open_files() · ddbb7880
      unknown authored
      This ensures that my_file_info takes this the max number of files into account and one can now use --open-files-limit on windows to increase number of used files up to 2048
      
      
      client/client_priv.h:
        Added --open-files-limit to mysqlbinlog
      client/mysqlbinlog.cc:
        Added --open-files-limit to mysqlbinlog
      include/config-win.h:
        Define that you can have up to 2048 files open on windows
      include/my_global.h:
        Allow override of OS_FILE_LIMIT
      include/my_sys.h:
        Cleanup
        Added prototypes for my_set_max_open_files() and my_free_open_files()
      libmysql/Makefile.shared:
        Added my_file.c
      myisam/myisamlog.c:
        Use my_set_max_open_files()
      mysys/Makefile.am:
        Use my_file.c (for mysqlbinlog)
      mysys/my_alloc.c:
        Remove compiler warning
      mysys/my_div.c:
        MY_NFILE -> my_file_limit
      mysys/my_dup.c:
        MY_NFILE -> my_file_limit
      mysys/my_fopen.c:
        MY_NFILE -> my_file_limit
      mysys/my_open.c:
        MY_NFILE -> my_file_limit
      mysys/my_static.c:
        Allow changing of open files limit
      mysys/my_static.h:
        Allow changing of open files limit
      sql/mysqld.cc:
        Max open files handling moved to my_set_max_open_files()
      ddbb7880
  31. 13 Feb, 2004 1 commit
    • unknown's avatar
      my_atof is deleted · 1515c121
      unknown authored
      strtod from mit-threads is restored and cleaned up
      
      
      BitKeeper/deleted/.del-atof.c~d3edf47a9884080:
        Delete: strings/atof.c
      configure.in:
        atod() is no longer used in MySQL
        isinf() now is
      include/m_string.h:
        my_strtod, my_atof
      include/my_global.h:
        my_atof is deleted
        define isinf()
      libmysql/Makefile.shared:
        use internal strtod
      sql/gstream.cc:
        use internal strtod
      sql/init.cc:
        my_atof is deleted
      sql/item.h:
        use internal strtod
      sql/item_func.cc:
        use internal strtod
      sql/item_sum.h:
        use internal strtod
      sql/sql_analyse.cc:
        use internal strtod
      strings/Makefile.am:
        use internal strtod
      strings/ctype-simple.c:
        use internal strtod
      strings/ctype-ucs2.c:
        use internal strtod
      strings/strtod.c:
        cleanup
        stricter input checks (e.g. ".E10" is no longer a number)
        don't return an "inf"
      1515c121
  32. 06 Oct, 2003 1 commit
    • unknown's avatar
      Move init_compiled_charsets to own file · 0e93376e
      unknown authored
      Remove dependency of charsets (in my_init) to get smaller binaries when charsets are not used
      Simple code cleanup
      
      
      client/mysql.cc:
        Fixed indentation
      include/my_sys.h:
        Move init_compiled_charsets to own file
      include/mysql.h:
        Remove compiler warning	
      libmysql/Makefile.shared:
        Move init_compiled_charsets to own file
      mysys/Makefile.am:
        Move init_compiled_charsets to own file
      mysys/charset.c:
        Move init_compiled_charsets to own file
      mysys/my_init.c:
        Remove dependency of charsets
      scripts/mysql_create_system_tables.sh:
        Remove run time warning
      scripts/mysql_fix_privilege_tables.sql:
        Add help tables
      sql/sql_insert.cc:
        Code cleanup
      0e93376e
  33. 26 Aug, 2003 1 commit
    • unknown's avatar
      vio ssl structure renames (to get rid of ending _) · 59806e10
      unknown authored
      Added TCP/IP read/write timeout for windows
      Check on windows if second server is started with same TCP/IP port
      
      
      BitKeeper/deleted/.del-have_openssl_2.inc~8c9f1a45676b698f:
        Delete: mysql-test/include/have_openssl_2.inc
      BitKeeper/deleted/.del-have_openssl_2.require~53bbdfc136fb514:
        Delete: mysql-test/r/have_openssl_2.require
      BitKeeper/deleted/.del-openssl_2.test~f2dfa927f19d14f8:
        Delete: mysql-test/t/openssl_2.test
      BitKeeper/etc/ignore:
        added libmysql/vio_priv.h libmysql_r/vio_priv.h
      client/mysql.cc:
        vio ssl structure renames
      include/violite.h:
        Cleanup violite.h interface (move things to vio_priv.h)
      libmysql/Makefile.am:
        Use vio_priv.h
      libmysql/Makefile.shared:
        Use vio_priv.h
      libmysqld/lib_vio.c:
        Added timeout for windows
      mysys/my_getopt.c:
        Indentaion cleanup
      sql/item_cmpfunc.cc:
        Remove compiler warnings
      sql/item_func.cc:
        Remove compiler warnings
      sql/mini_client.cc:
        vio ssl structure renames
      sql/mysqld.cc:
        Check on windows if second server is started with same TCP/IP port
      sql/net_serv.cc:
        Add read/write timeouts for windows
      sql/sql_acl.cc:
        vio ssl structure renames
      sql/sql_show.cc:
        vio ssl structure renames
      vio/vio.c:
        Added timeouts for windows
      vio/viosocket.c:
        Added timeouts for windows
      vio/viossl.c:
        Added timeouts for windows
        Cleaned up structure element names
      vio/viosslfactories.c:
        Added timeouts for windows
        Cleaned up structure element names
      59806e10
  34. 31 May, 2003 1 commit
    • unknown's avatar
      SCRUM: · 62c7d2cd
      unknown authored
      Here is another pack of changes about gathering common client code in
      sql-common/client.c.
      Now i symlink the client.c from sql/ and libmysql/. These directories
      have client_settings.h files to be included to client.c. It contains
      defines and declarations to compile client.c in appropriate manner.
      Also i've added include/sql_common.h, containing declarations of what
      is exported from client.c
      
      I removed as many #ifdef-s from client.c as i dared to. I think it's better
      push it with some extra #ifdef-s now (of course, if everythihg besides it is
      ok) so other people can check the code.
      
      
      Makefile.am:
        symlinking of sql-common/client.c was added
      include/mysql.h:
        MYSQL_CLIENT define moved here from libmysql/Makefile
      libmysql/Makefile.am:
        ../libmysql/client_settings.h added to the list of necessary h-files
      libmysql/Makefile.shared:
        client.lo added to the list of objects
      libmysql/libmysql.c:
        a lot of changes about separating code between libmysql.c and client.c
      mysys/default.c:
        changed to keep compiler happy
      sql-common/client.c:
        a lot of changes about code separating
      sql/Makefile.am:
        mini_client.h has to be removed
      sql/repl_failsafe.cc:
        mysql_real_connect prototype was unified, so we've got to set connection timeout separately
      sql/slave.cc:
        trimming code to the changed function's prototypes
      sql/sql_repl.cc:
        mini_client isn't needed anymore
      62c7d2cd
  35. 21 May, 2003 1 commit
  36. 23 Apr, 2003 1 commit
    • unknown's avatar
      SCRUM · f0909cd7
      unknown authored
      Protocol_cursor class and sql-common/ directory
      
      
      Makefile.am:
        pack.c added to linked sources
      include/mysql.h:
        net_field_length_ll declaration added
      include/mysql_com.h:
        net_field_length declaration added
      libmysql/Makefile.am:
        sql-common files symlinked
      libmysql/Makefile.shared:
        pack.lo target added
      libmysql/libmysql.c:
        net_field_length removed from here
      sql/Makefile.am:
        pack.c added to the sources
      sql/mini_client.cc:
        mc_net_field_length functions replaced with net_field_length
      sql/protocol.h:
        Protocol_cursor class added
      f0909cd7
  37. 26 Mar, 2003 1 commit
    • unknown's avatar
      German Phone book collation is always compiled · b7a723af
      unknown authored
      Some collation names have been renamed
      
      
      BitKeeper/deleted/.del-ctype-latin1_de.c~c5d8f9208bceb98e:
        Delete: strings/ctype-latin1_de.c
      libmysql/Makefile.shared:
        German Phone book collation is always compiled
      mysql-test/r/ctype_collate.result:
        Some collation names have been renamed
      mysql-test/t/ctype_collate.test:
        Some collation names have been renamed
      mysql-test/t/ctype_latin1_de-master.opt:
        Some collation names have been renamed
      mysys/charset.c:
        get_charset_by_name() now will find its default collation if charset name is passed
      sql/share/charsets/Index.xml:
        Some collation names have been renamed
      sql/share/charsets/cp1251.xml:
        Some collation names have been renamed
      sql/share/charsets/cp1257.xml:
        Some collation names have been renamed
      sql/share/charsets/latin1.xml:
        Some collation names have been renamed
      sql/share/charsets/latin2.xml:
        Some collation names have been renamed
      sql/share/charsets/latin7.xml:
        Some collation names have been renamed
      sql/share/charsets/macce.xml:
        Some collation names have been renamed
      sql/share/charsets/macroman.xml:
        Some collation names have been renamed
      sql/sql_show.cc:
        Nicer output from SHOW COLLATION
      strings/Makefile.am:
        German Phone book collation is always compiled
      strings/ctype-czech.c:
        Some collation names have been renamed
      strings/ctype-extra.c:
        Don't compile dynamic charset. We should decide names convension before 
        making this available.
      strings/ctype-latin1.c:
        German Phone book collation is always compiled
      b7a723af
  38. 29 Jan, 2003 1 commit