1. 05 Jun, 2003 14 commits
  2. 04 Jun, 2003 18 commits
    • unknown's avatar
      merge with public tree · b5a181e2
      unknown authored
      
      BitKeeper/etc/ignore:
        auto-union
      BitKeeper/etc/logging_ok:
        auto-union
      client/mysql.cc:
        Auto merged
      configure.in:
        Auto merged
      include/config-win.h:
        Auto merged
      include/mysql.h:
        Auto merged
      include/mysql_version.h.in:
        Auto merged
      libmysqld/lib_sql.cc:
        Auto merged
      mysql-test/r/alter_table.result:
        Auto merged
      mysql-test/r/create.result:
        Auto merged
      mysql-test/r/ctype_collate.result:
        Auto merged
      mysql-test/r/innodb.result:
        Auto merged
      mysql-test/r/show_check.result:
        Auto merged
      mysql-test/r/subselect.result:
        Auto merged
      mysql-test/r/type_blob.result:
        Auto merged
      mysql-test/t/subselect.test:
        Auto merged
      mysys/default.c:
        Auto merged
      sql/Makefile.am:
        Auto merged
      sql/field.cc:
        Auto merged
      sql/item.cc:
        Auto merged
      sql/item.h:
        Auto merged
      sql/item_cmpfunc.cc:
        Auto merged
      sql/mysql_priv.h:
        Auto merged
      sql/mysqld.cc:
        Auto merged
      sql/protocol.cc:
        Auto merged
      sql/set_var.cc:
        Auto merged
      sql/set_var.h:
        Auto merged
      sql/slave.cc:
        Auto merged
      sql/sql_base.cc:
        Auto merged
      sql/sql_insert.cc:
        Auto merged
      sql/sql_show.cc:
        Auto merged
      sql/sql_string.cc:
        Auto merged
      sql/sql_string.h:
        Auto merged
      sql/sql_table.cc:
        Auto merged
      sql/sql_yacc.yy:
        Auto merged
      b5a181e2
    • unknown's avatar
      Merge lgrimmer@build.mysql.com:/home/bk/mysql-4.0 · b2ca959d
      unknown authored
      into mysql.com:/space/my/mysql-4.0
      
      b2ca959d
    • unknown's avatar
      - When compiling the Max package incl. RAID support using gcc, make sure · f55322fd
      unknown authored
         to set CXX=gcc (cannot link the code with g++) - this should help to
         recompile the RPM on Distributions using gcc 3
       - Added a symlink /usr/sbin/rcmysql -> /etc/init.d/mysql
      
      f55322fd
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-4.0 · 41c1f94e
      unknown authored
      into narttu.mysql.fi:/my/mysql-4.0
      
      41c1f94e
    • unknown's avatar
      After merge fix · 9eb7ee18
      unknown authored
      
      mysql-test/t/lowercase_table.test:
        MySQL 4.1 does this correct
      9eb7ee18
    • unknown's avatar
      Merge with 4.0.13 · 0bc40737
      unknown authored
      
      BitKeeper/etc/logging_ok:
        auto-union
      BUILD/SETUP.sh:
        Auto merged
      BitKeeper/deleted/.del-internals.texi~62b6f580a41c2a43:
        Auto merged
      client/mysqltest.c:
        Auto merged
      include/config-win.h:
        Auto merged
      include/my_global.h:
        Auto merged
      include/mysql_com.h:
        Auto merged
      innobase/include/srv0srv.h:
        Auto merged
      innobase/log/log0log.c:
        Auto merged
      innobase/os/os0file.c:
        Auto merged
      innobase/srv/srv0srv.c:
        Auto merged
      innobase/srv/srv0start.c:
        Auto merged
      innobase/ut/ut0mem.c:
        Auto merged
      mysql-test/mysql-test-run.sh:
        Auto merged
      mysql-test/r/alter_table.result:
        Auto merged
      mysql-test/r/errors.result:
        Auto merged
      mysql-test/r/loaddata.result:
        Auto merged
      mysql-test/r/rpl_insert_id.result:
        Auto merged
      mysql-test/r/rpl_loaddata.result:
        Auto merged
      mysql-test/std_data/rpl_loaddata2.dat:
        Auto merged
      mysql-test/t/alter_table.test:
        Auto merged
      mysql-test/t/loaddata.test:
        Auto merged
      mysql-test/t/query_cache.test:
        Auto merged
      mysql-test/t/raid.test:
        Auto merged
      mysql-test/t/rpl_insert_id.test:
        Auto merged
      mysql-test/t/rpl_loaddata.test:
        Auto merged
      sql/field.cc:
        Auto merged
      sql/ha_innodb.cc:
        Auto merged
      sql/sql_cache.cc:
        Auto merged
      sql/sql_table.cc:
        Auto merged
      sql/sql_update.cc:
        Auto merged
      sql/time.cc:
        Auto merged
      configure.in:
        No changes
      libmysqld/lib_sql.cc:
        No changes
      0bc40737
    • unknown's avatar
      - Updated Default-Stop run levels in the LSB header section to satisfy · b1e47891
      unknown authored
         Red Hat's chkconfig (Bug #272) (The LSB spec is a bit ambigous about
         what actually needs to be put into this field)
      
      b1e47891
    • unknown's avatar
      Added SQLSTATE to client/server protocol · f2131b44
      unknown authored
      bmove_allign -> bmove_align
      Added OLAP function ROLLUP
      Split mysql_fix_privilege_tables to a script and a .sql data file
      Added new (MEMROOT*) functions to avoid calling current_thd() when creating some common objects.
      Added table_alias_charset, for easier --lower-case-table-name handling
      Better SQL_MODE handling (Setting complex options also sets sub options)
      New (faster) assembler string functions for x86
      
      
      BitKeeper/etc/ignore:
        added libmysqld/sql_state.c
      client/mysql.cc:
        Added SQLSTATE to error messages
        Added new function put_error() to be able to clean up some old code.
      client/mysqltest.c:
        Write ERROR SQLSTATE for all errors
      dbug/dbug.c:
        Portability fixes
      include/m_string.h:
        Rename bmove_allign as bmove_align
      include/mysql.h:
        Added SQLSTATE (for embedded version)
      include/mysql_com.h:
        Send correct SQLSTATE for the error to the client
      libmysql/libmysql.c:
        Changed default error state to HY000
        Applied code cleanup patch
      libmysqld/Makefile.am:
        Added sql_state.cc
      libmysqld/libmysqld.c:
        Added sqlstate
      mysql-test/r/analyse.result:
        Updated results
      mysql-test/r/ansi.result:
        Updated results
      mysql-test/r/auto_increment.result:
        Updated results
      mysql-test/r/bdb-deadlock.result:
        Updated results
      mysql-test/r/bdb.result:
        Updated results
      mysql-test/r/comments.result:
        Updated results
      mysql-test/r/create.result:
        Updated results
      mysql-test/r/ctype_collate.result:
        Updated results
      mysql-test/r/delayed.result:
        Updated results
      mysql-test/r/delete.result:
        Updated results
      mysql-test/r/derived.result:
        Updated results
      mysql-test/r/distinct.result:
        Updated results
      mysql-test/r/drop.result:
        Updated results
      mysql-test/r/err000001.result:
        Updated results
      mysql-test/r/explain.result:
        Updated results
      mysql-test/r/flush.result:
        Updated results
      mysql-test/r/fulltext.result:
        Updated results
      mysql-test/r/func_gconcat.result:
        Updated results
      mysql-test/r/func_system.result:
        Updated results
      mysql-test/r/grant_cache.result:
        Updated results
      mysql-test/r/group_by.result:
        Updated results
      mysql-test/r/handler.result:
        Updated results
      mysql-test/r/heap.result:
        Updated results
      mysql-test/r/heap_btree.result:
        Updated results
      mysql-test/r/heap_hash.result:
        Updated results
      mysql-test/r/innodb.result:
        Updated results
      mysql-test/r/innodb_handler.result:
        Updated results
      mysql-test/r/insert_select.result:
        Updated results
      mysql-test/r/insert_update.result:
        Updated results
      mysql-test/r/join.result:
        Updated results
      mysql-test/r/join_outer.result:
        Updated results
      mysql-test/r/key.result:
        Updated results
      mysql-test/r/lock.result:
        Updated results
      mysql-test/r/lock_multi.result:
        Updated results
      mysql-test/r/merge.result:
        Updated results
      mysql-test/r/multi_update.result:
        Updated results
      mysql-test/r/myisam.result:
        Updated results
      mysql-test/r/null.result:
        Updated results
      mysql-test/r/olap.result:
        Updated results
      mysql-test/r/order_by.result:
        Updated results
      mysql-test/r/packet.result:
        Updated results
      mysql-test/r/query_cache.result:
        Updated results
      mysql-test/r/row.result:
        Updated results
      mysql-test/r/rpl000001.result:
        Updated results
      mysql-test/r/rpl000009.result:
        Updated results
      mysql-test/r/rpl_empty_master_crash.result:
        Updated results
      mysql-test/r/rpl_log.result:
        Updated results
      mysql-test/r/rpl_replicate_do.result:
        Updated results
      mysql-test/r/rpl_rotate_logs.result:
        Updated results
      mysql-test/r/select.result:
        Updated results
      mysql-test/r/select_safe.result:
        Updated results
      mysql-test/r/show_check.result:
        Updated results
      mysql-test/r/sql_mode.result:
        Updated results
      mysql-test/r/subselect.result:
        Updated results
      mysql-test/r/temp_table.result:
        Updated results
      mysql-test/r/truncate.result:
        Updated results
      mysql-test/r/type_blob.result:
        Updated results
      mysql-test/r/type_decimal.result:
        Updated results
      mysql-test/r/type_float.result:
        Updated results
      mysql-test/r/type_ranges.result:
        Updated results
      mysql-test/r/union.result:
        Updated results
      mysql-test/r/update.result:
        Updated results
      mysql-test/r/user_var.result:
        Updated results
      mysql-test/r/varbinary.result:
        Updated results
      mysql-test/r/variables.result:
        Updated results
      mysql-test/t/ansi.test:
        Test of sql_mode
      mysql-test/t/derived.test:
        Updated results
      mysql-test/t/func_system.test:
        Make this independen of the MySQL server name
      mysql-test/t/lowercase_table.test:
        Cleanup
      mysql-test/t/olap.test:
        A lot of new tests
      mysql-test/t/sql_mode.test:
        More test for sql_mode
      mysql-test/t/subselect.test:
        Added a few new tests (to find a bug in the item_ref code)
      scripts/Makefile.am:
        Added mysql_fix_privilege_tables.sql
      scripts/mysql_fix_privilege_tables.sh:
        Totally new script.  This bascily just pipes mysql_fix_privilege_tables.sql through 'mysql' to 'mysqld'
      sql/Makefile.am:
        Added sql_state.cc
      sql/item.cc:
        Extended Item_field::eq() to be able to better match GROUP BY fields on the command line.
        Needed for ROLLUP
      sql/item.h:
        Added function to be able to avoid calling current_thd() when doing new Item.
      sql/item_sum.cc:
        Moved copy_or_same() and some reset() functions from item_sum.h
        Needed to be able to access thd->mem_root.
      sql/item_sum.h:
        Moved some functions to item_sum.cc
        Added make_unique() for ROLLUP
      sql/item_uniq.h:
        Fixed return value
      sql/mysql_priv.h:
        Updated MODE flags
      sql/mysqld.cc:
        Added ANSI as it's own mode
        Moved charset_info variables here
        Cleaned up handler_count handling (for NT)
        Added table_alias_charset, for easier --lower-case-table-name handling
      sql/net_serv.cc:
        New comment
      sql/protocol.cc:
        Send SQLSTATE to client
      sql/set_var.cc:
        Better SQL_MODE handling (Setting complex options also sets sub options)
      sql/set_var.h:
        Better SQL_MODE handling
      sql/sql_base.cc:
        Make alias depend on --lower-case-table-names
        Make find_item_in_list also check database name
      sql/sql_cache.cc:
        Indentation cleanup
      sql/sql_list.h:
        Added safety assert
        Addes support of alloc without current_thd()
      sql/sql_prepare.cc:
        Update after prototype change
      sql/sql_select.cc:
        Added ROLLUP
      sql/sql_select.h:
        structures for rollup
      sql/sql_show.cc:
        Easier SQL_MODE handling
      sql/sql_string.cc:
        Move CHARSET_INFO to mysqld (to be together with all other global variables)
      sql/sql_string.h:
        Added function to be able to avoid calling current_thd() when doing new Item.
      sql/sql_table.cc:
        Simpler --lower-case-table-name handling
      sql/sql_union.cc:
        Update after prototype change
      sql/sql_yacc.yy:
        ROLLUP
      sql/unireg.h:
        bmove_allign ->bmove_align
      strings/Makefile.am:
        Fix to be able to compile str_test.c
      strings/ctype.c:
        Removed empty lines
      strings/str_test.c:
        Added test of bmove_align
      strings/strings-x86.s:
        Faster bmove_align, bmove_upp and strmake
      strings/strings.asm:
        move_allg
      f2131b44
    • unknown's avatar
      Fixed (not fatal) buffer overflow · 8b752028
      unknown authored
      8b752028
    • unknown's avatar
      handler.cc: · ad0be55d
      unknown authored
        If the autocommit is on, let handler.cc commit or rollback the whole transaction at an updating SQL statement end. This probably fixes bug number 578. The problem was that when explicit LOCK TABLES is used, then the lock count method in autocommit does not work.
      
      
      sql/handler.cc:
        If the autocommit is on, let handler.cc commit or rollback the whole transaction at an updating SQL statement end. This probably fixes bug number 578. The problem was that when explicit LOCK TABLES is used, then the lock count method in autocommit does not work.
      ad0be55d
    • unknown's avatar
      Added [mysqld-base-version] as a default group for the mysqld server · 398f3b4d
      unknown authored
      Portability fix for Windows 64
      
      
      include/config-win.h:
        Portability fix for Windows 64
      include/my_global.h:
        Portability fix for Windows 64
      include/mysql_version.h.in:
        Added [mysqld-base-version] as a default group for the mysqld server
      innobase/include/univ.i:
        Portability fix for Windows 64
      sql/mysqld.cc:
        Added [mysqld-base-version] as a default group for the mysqld server
      398f3b4d
    • unknown's avatar
      client.c: · 84e849b5
      unknown authored
        Missed file from earlier commit
      
      
      sql-common/client.c:
        Missed file from earlier commit
      84e849b5
    • unknown's avatar
      protocol test update · 86e7bca3
      unknown authored
        (fix for memory ovverun bug from DBD(ranger) + changes for removal of collation from explain)
      
      
      tests/client_test.c:
        protocol test update 
        (fix for memory ovverun bug from DBD(ranger) + changes for removal of collation from explain)
      86e7bca3
    • unknown's avatar
      1. Portability fixups for Connector/ODBC 3.52 & DBD · aee641c5
      unknown authored
          (Addition of mysql_fetch_column & mysql_stmt_free_result)
       2. Windows build fixups for libmysqld, mysqlbinlog and mysqldemb
      
      
      VC++Files/mysqldemb/mysqldemb.dsp:
        Remove old files
      VC++Files/libmysqld/libmysqld.dsp:
        remove old files and add new ones
      VC++Files/mysqlbinlog/mysqlbinlog.dsp:
        Resolve linker errors by adding mf_tmpdir.c to binlog wrk space
      include/mysql.h:
        Portability fixups for Connector/ODBC 3.52 & DBD
      libmysql/libmysql.c:
        Portability fixups for Connector/ODBC 3.52 & DBD
        (Addition of mysql_fetch_column & mysql_stmt_free_result)
      aee641c5
    • unknown's avatar
      Windows build fixups (Fix for slave_net_timeout) · ed6ab751
      unknown authored
      
      VC++Files/libmysqld/libmysqld.dsp:
        Remove the old files from Embedded library
      sql/slave.h:
        Fix for client.c - slave_net_timeout
      sql-common/client.c:
        Fix warning
      ed6ab751
    • unknown's avatar
      Fix windows build after applyiing the changes from new client.c(sql-common) · 0c55e8f6
      unknown authored
      NOTE: Still the build fails to compile core server on Windows due to slave_net_timeout linker error from client.obj
            and make sure to have the next changeset, which fixes this.
      
      
      sql/item_geofunc.cc:
        Fix warnings
      sql/sql_help.cc:
        Fix compiler errors
      sql-common/client.c:
        Delete and move redefination of shared memory stuff
      libmysql/libmysql.c:
        Fix for redefination stuff from client.c
      VC++Files/client/mysqlclient.dsp:
        add client.c
      VC++Files/libmysql/libmysql.dsp:
        add client.c
      VC++Files/sql/mysqld.dsp:
        add client.c and remove old convert.cpp and mini_client.c
      0c55e8f6
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-4.1 · 217de579
      unknown authored
      into myvenu.com:/home/venu/work/sql/dev-4.1
      
      
      sql/item_cmpfunc.cc:
        Auto merged
      sql/mysqld.cc:
        Auto merged
      sql/sql_show.cc:
        Auto merged
      217de579
    • unknown's avatar
      Windows build fixups with the latest source · 78e843f8
      unknown authored
      
      sql/item_cmpfunc.cc:
        Remove unused variables
      sql/mysqld.cc:
        fix the defination as this is different from the prototype (cl compiler failed)
      sql/sql_insert.cc:
        fix the windows error (without cast)
      sql/sql_show.cc:
        Remove unused variables
      include/config-win.h:
        Fix for Windows build to go (charsets + collation default defs)
      VC++Files/client/mysqlclient.dsp:
        Take care of newly added/removed files
      VC++Files/libmysql/libmysql.dsp:
        Take care of newly added/removed files
      VC++Files/sql/mysqld.dsp:
        Take care of newly added/removed files
      78e843f8
  3. 03 Jun, 2003 8 commits
    • unknown's avatar
      Merge gbichot@213.136.52.20:/home/bk/mysql-4.0 · 2ef40ed8
      unknown authored
      into mysql.com:/home/mysql_src/mysql-4.0
      
      2ef40ed8
    • unknown's avatar
      One-line fix for bug 576 (DBUG_ASSERT failure when using CHANGE MASTER TO RELAY_LOG_POS=4). · af96483f
      unknown authored
      Plus a changeset which I had committed but forgot to push (and this changeset is lost on
      another computer, so I recreate it here). This changeset is "user-friendly SHOW BINLOG EVENTS
      and CHANGE MASTER TO when log positions < 4 are used.
      
      
      sql/slave.cc:
        fix for bug 576 (DBUG_ASSERT failure when using CHANGE MASTER TO RELAY_LOG_POS=4).
      sql/sql_repl.cc:
        User-friendly SHOW BINLOG EVENTS:
        SHOW BINLOG EVENTS FROM 0: currently one gets
            MASTER> show binlog events from 0;
            ERROR 1220: Error when executing command SHOW BINLOG EVENTS: Invalid log position
        so we silently convert <4 to 4.
      sql/sql_yacc.yy:
        User-friendly CHANGE MASTER TO:
        presently when one does CHANGE MASTER TO MASTER_LOG_POS=0 he gets
            030425 10:12:41  Slave I/O thread: connected to master 'root@localhost:3306',  r
            eplication started in log 'gbichot-bin.013' at position 151
            030425 10:12:41  Error reading packet from server: Client requested master to st
            art replication from impossible position (server_errno=1236)
            030425 10:12:41  Got fatal error 1236: 'Client requested master to start replica
            tion from impossible position' from master when reading data from binary log
            030425 10:12:41  Slave I/O thread exiting, read up to log 'gbichot-bin.013', pos
            ition 151
            
        while she/he probably just wanted to start at the beginning of the
        binlog, which is 4. So we silently convert <4 to 4 in sql_yacc.yy
        (i.e. in the slave code; fortunately all versions have the same
        BIN_LOG_HEADER_SIZE=4 and we should not change this). See comments
        for an explaination of why we have to do this in sql_yacc.yy,
        not in sql_repl.cc.
        Same thing for CHANGE MASTER TO RELAY_LOG_POS.
      sql/unireg.h:
        warning comment
      af96483f
    • unknown's avatar
      -- Waiting for Monty's approval before push -- · cbc7a860
      unknown authored
      Bug 571: play LOAD DATA INFILE the same way on the slave as it was on the master: 
      if it was with IGNORE, do it with IGNORE,
      if it was with REPLACE, do it with REPLACE,
      and (the change) if it was with nothing, do it with nothing (not with IGNORE !!).
      Bug 573: print a proper error message in case of duplicate entry in LOAD DATA INFILE
      on the slave, i.e. a message where the keyname and key value appear :
      'Duplicate entry '1' for key 1' and not 'Duplicate entry '%-.64s' for key %d'
      
      
      mysql-test/r/rpl_loaddata.result:
        result update
      mysql-test/t/rpl_loaddata.test:
        check if duplicate entries on the slave trigger an error 
        when the slave replicates LOAD DATA INFILE (without IGNORE or REPLACE)
        (bug 571).
      sql/log_event.cc:
        Bug 571: play LOAD DATA INFILE the same way on the slave as it was on the master: 
        if it was with IGNORE, do it with IGNORE,
        if it was with REPLACE, do it with REPLACE,
        and (the change) if it was with nothing, do it with nothing (not with IGNORE !!).
        Bug 573: print a proper error message in case of duplicate entry in LOAD DATA INFILE
        on the slave, i.e. a message where the keyname and key value appear :
        'Duplicate entry '1' for key 1' and not 'Duplicate entry '%-.64s' for key %d'
      cbc7a860
    • unknown's avatar
      SPACE() is now ucs2 compatible · 2c8d4dcb
      unknown authored
      2c8d4dcb
    • unknown's avatar
      c9473731
    • unknown's avatar
      LTRIM, RTRIM and TRIM now honors coercibility · e009b00c
      unknown authored
      LTRIM, RTRIM and TRIM now work fine with ucs2
      
      e009b00c
    • unknown's avatar
      Merge abotchkov@bk-internal.mysql.com:/home/bk/mysql-4.1 · 53fa8bbd
      unknown authored
      into deer.(none):/home/hf/work/mysql-4.1.emb_bind
      
      53fa8bbd
    • unknown's avatar
      Obsolete files removed · 12f7459d
      unknown authored
      
      BitKeeper/deleted/.del-mini_client.h~be0e3c44e9b0f67d:
        Delete: sql/mini_client.h
      BitKeeper/deleted/.del-mini_client.cc~8677895ec8169183:
        Delete: sql/mini_client.cc
      BitKeeper/etc/ignore:
        Added sql/client.c to the ignore list
      12f7459d