1. 26 Sep, 2003 1 commit
    • unknown's avatar
      SCRUM: · 17053698
      unknown authored
      WL#604 Privileges in embedded library
      code added to check privileges in embedded library
      NO_EMBEDDED_ACCESS_CHECKS macros inserted in code so we can exclude
      access-checking parts. Actually we now can exclude these parts from
      standalone server as well. Do we need it?
      Access checks are disabled in embedded server by default. One should
      edit libmysqld/Makefile manually to get this working.
      We definitely need the separate configure for embedded server
      
      
      include/mysql.h:
        options added so user of embedded library can set the client host
        it will work as if the usual client connects from this host
      libmysqld/Makefile.am:
        Usually one doesn't need access checking in embedded library
        we definitely should separate configure for embedded server
      libmysqld/lib_sql.cc:
        necessary code for getting passwords and access checks added
      libmysqld/libmysqld.c:
        code #ifdef-ed - we use this only when we check permissions
      sql-common/client.c:
        one mysql_close left now
      sql/item_strfunc.cc:
        #ifndef-s added
      sql/log.cc:
        #ifndef-s added
      sql/mysql_priv.h:
        #ifndef-s added
        also i removed default parameters from check_access and check_table_access
        definitions to set definitions working
      sql/mysqld.cc:
        #ifndef-s added
        localhost renamed to my_localhost
      sql/repl_failsafe.cc:
        parameters added
      sql/set_var.cc:
        #ifndef-s added
      sql/sql_acl.cc:
        #ifndef-s added
      sql/sql_acl.h:
        #ifndef-s added
      sql/sql_base.cc:
        #ifndef-s added
      sql/sql_cache.cc:
        #ifndef-s added
      sql/sql_class.cc:
        #ifndef-s added
      sql/sql_db.cc:
        #ifndef-s added
      sql/sql_derived.cc:
        #ifndef-s added
      sql/sql_insert.cc:
        #ifndef-s added
      sql/sql_parse.cc:
        a horde of #ifndef-s added
      sql/sql_prepare.cc:
        #ifndef-s added
      sql/sql_repl.cc:
        parameters added
      sql/sql_show.cc:
        #ifndef-s added
      sql/sql_update.cc:
        #ifndef-s added
      17053698
  2. 18 Sep, 2003 1 commit
    • unknown's avatar
      SCRUM · 4535f689
      unknown authored
      prepared statements in embedded library
      
      
      include/mysql_com.h:
        to make net_flush() working in expressions
      libmysqld/lib_sql.cc:
        some bugs fixed
      libmysqld/libmysqld.c:
        we already have the define in client_settings.h
      sql/protocol.cc:
        net_store_data should work that way in Protocol_prep (embedded server)
      sql/protocol.h:
        definition for net_store_data
      sql/sql_prepare.cc:
        now it works in embedded library
      4535f689
  3. 17 Sep, 2003 7 commits
    • unknown's avatar
      Merge abotchkov@bk-internal.mysql.com:/home/bk/mysql-4.1 · d1e3e9f3
      unknown authored
      into deer.(none):/home/hf/work/mysql-4.1.stmt
      
      
      d1e3e9f3
    • unknown's avatar
      SCRUM: · 194f6725
      unknown authored
      prepared statements in embedded library
      
      
      include/mysql.h:
        Another 'virtual' method
      libmysql/client_settings.h:
        client implementation declared
      libmysql/libmysql.c:
        mysql_execute edited to work with embedded implementation
      libmysqld/lib_sql.cc:
        one error fixed (we do need parameter's buffer in embedded library)
        embedded recordset transfer methods implementations added
      sql-common/client.c:
        method added to the table
      sql/client_settings.h:
        no prepared statements in mimiclient
      sql/mysql_priv.h:
        these functions became global
      sql/protocol.cc:
        the stub added
      sql/protocol.h:
        had to change Protocol's interface for embedded library
      sql/sql_class.h:
        i changed this only for embedded case, but i think it's better to do the
        same for remote server also
      sql/sql_prepare.cc:
        parts of code #ifndef-ed
      194f6725
    • unknown's avatar
    • unknown's avatar
      Merge abotchkov@bk-internal.mysql.com:/home/bk/mysql-4.1 · 11d36fa8
      unknown authored
      into deer.(none):/home/hf/work/mysql-4.1.stmt
      
      
      11d36fa8
    • unknown's avatar
      SCRUM · 6b05f916
      unknown authored
      prepared statements in embedded library
      
      
      include/mysql.h:
        stmt_execute 'virtual' method added
      include/sql_common.h:
        two functions became global
      libmysql/client_settings.h:
        declaration for cli_stmt_execute
      libmysql/libmysql.c:
        some functions changed to be usable from embedded library
      libmysqld/lib_sql.cc:
        code for embedded stmt_execute added
      sql-common/client.c:
        cli_stmt_execute added to the methods table
      sql/client_settings.h:
        no need for prepared statements in miniclient
      6b05f916
    • unknown's avatar
      abd0afa3
    • unknown's avatar
      BUG #1305: ISAM table handler should not be compiled by default under 4.1 · 65aec56c
      unknown authored
      
      include/config-win.h:
        ISAM table handler is no longer compiled with 4.1
      65aec56c
  4. 16 Sep, 2003 9 commits
    • unknown's avatar
      Merge abotchkov@bk-internal.mysql.com:/home/bk/mysql-4.1 · eead70fe
      unknown authored
      into deer.(none):/home/hf/work/mysql-4.1.stmt
      
      
      eead70fe
    • unknown's avatar
      Bug fix: · 2e95bcc4
      unknown authored
        SET character_set_connection=newcharset;
        SELECT hex('text');
      
      The above sequence failed in some cases.
      
      
      2e95bcc4
    • unknown's avatar
      Merge abotchkov@bk-internal.mysql.com:/home/bk/mysql-4.1 · 076b089a
      unknown authored
      into deer.(none):/home/hf/work/mysql-4.1.stmt
      
      
      076b089a
    • unknown's avatar
      UCS tests · 414bd57b
      unknown authored
      414bd57b
    • unknown's avatar
      Merge abotchkov@bk-internal.mysql.com:/home/bk/mysql-4.1 · 3952cb0f
      unknown authored
      into deer.(none):/home/hf/work/mysql-4.1.stmt
      
      
      sql/sql_class.h:
        Auto merged
      3952cb0f
    • unknown's avatar
      SCRUM · d0580715
      unknown authored
      Prepared statements in embedded server
      Several changes in library code with two goals:
      to make mysql_prepare_stmt working in embedded server
      to get rid of #define mysql_interface_func mysql->methods->interface_func
      in user's interface
      
      
      include/mysql.h:
        modifications of interface
        two goals: to implement prepared statements and to get rid
        of #define mysql_proc (mysql->smth) in interface
      include/sql_common.h:
        read_rows function got 'virtual'
      libmysql/client_settings.h:
        interface of some functions declared in client.c moved here
      libmysql/libmysql.c:
        several functions changed with declared goals
      libmysqld/embedded_priv.h:
        libmysqld.c <--> lib_sql.cc interface moved here
      libmysqld/lib_sql.cc:
        all embedded 'virtual' functions moved here so they can be static
      libmysqld/libmysqld.c:
        embedded 'virtual' function was moved out of here
      sql-common/client.c:
        several changes with the declared goal
      sql/sql_class.h:
        place to store statement data added to THD
      sql/sql_prepare.cc:
        storing of prepare_statement result for embedded server added
      d0580715
    • unknown's avatar
      Bug fix: · 62f2cb14
      unknown authored
      http://bugs.mysql.com/bug.php?id=1264
      
      
      62f2cb14
    • unknown's avatar
      Bug fix: · a0c238f6
      unknown authored
      http://bugs.mysql.com/bug.php?id=1264
      
      
      a0c238f6
    • unknown's avatar
      Bug fix: · 0ebd55fc
      unknown authored
      http://bugs.mysql.com/bug.php?id=1129
      From:	Georg Richter
      Description: there is a problem with special chars like umlauts in comments 
      
      
      
      0ebd55fc
  5. 15 Sep, 2003 14 commits
  6. 14 Sep, 2003 3 commits
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-4.1 · 5d1b299f
      unknown authored
      into mysql.com:/home/dlenev/src/mysql-4.1-868
      
      
      5d1b299f
    • unknown's avatar
      Post merge fixes. Fixed tests after adding UNTIL conditions · b15eba88
      unknown authored
      to SHOW SLAVE STATUS.
      
      
      mysql-test/r/rpl000015.result:
        Fixed test after adding UNTIL conditions to SHOW SLAVE STATUS
      mysql-test/r/rpl_empty_master_crash.result:
        Fixed test after adding UNTIL conditions to SHOW SLAVE STATUS
      mysql-test/r/rpl_error_ignored_table.result:
        Fixed test after adding UNTIL conditions to SHOW SLAVE STATUS
      mysql-test/r/rpl_flush_log_loop.result:
        Fixed test after adding UNTIL conditions to SHOW SLAVE STATUS
      mysql-test/r/rpl_loaddata.result:
        Fixed test after adding UNTIL conditions to SHOW SLAVE STATUS
      mysql-test/r/rpl_log.result:
        Fixed test after adding UNTIL conditions to SHOW SLAVE STATUS
      mysql-test/r/rpl_log_pos.result:
        Fixed test after adding UNTIL conditions to SHOW SLAVE STATUS
      mysql-test/r/rpl_max_relay_size.result:
        Fixed test after adding UNTIL conditions to SHOW SLAVE STATUS
      mysql-test/r/rpl_openssl.result:
        Fixed test after adding UNTIL conditions to SHOW SLAVE STATUS
      mysql-test/r/rpl_redirect.result:
        Fixed test after adding UNTIL conditions to SHOW SLAVE STATUS
      mysql-test/r/rpl_replicate_do.result:
        Fixed test after adding UNTIL conditions to SHOW SLAVE STATUS
      mysql-test/r/rpl_reset_slave.result:
        Fixed test after adding UNTIL conditions to SHOW SLAVE STATUS
      mysql-test/r/rpl_rotate_logs.result:
        Fixed test after adding UNTIL conditions to SHOW SLAVE STATUS
      mysql-test/r/rpl_until.result:
        Post merge fix
      mysql-test/t/rpl_until.test:
        Post merge fix
      b15eba88
    • unknown's avatar
      e3b11b1d
  7. 13 Sep, 2003 5 commits
    • unknown's avatar
      Manual merge after commiting START SLAVE UNTIL · 1f82a0de
      unknown authored
      
      sql/lex.h:
        Auto merged
      sql/log.cc:
        Auto merged
      sql/log_event.cc:
        Auto merged
      sql/repl_failsafe.cc:
        Auto merged
      include/mysqld_error.h:
        Manual merge
      mysql-test/r/rpl000015.result:
        Manual merge
      mysql-test/r/rpl_empty_master_crash.result:
        Manual merge
      mysql-test/r/rpl_flush_log_loop.result:
        Manual merge
      mysql-test/r/rpl_log.result:
        Manual merge
      mysql-test/r/rpl_log_pos.result:
        Manual merge
      mysql-test/r/rpl_redirect.result:
        Manual merge
      mysql-test/r/rpl_replicate_do.result:
        Manual merge
      mysql-test/r/rpl_rotate_logs.result:
        Manual merge
      sql/share/czech/errmsg.txt:
        Manual merge
      sql/share/danish/errmsg.txt:
        Manual merge
      sql/share/dutch/errmsg.txt:
        Manual merge
      sql/share/english/errmsg.txt:
        Manual merge
      sql/share/estonian/errmsg.txt:
        Manual merge
      sql/share/french/errmsg.txt:
        Manual merge
      sql/share/german/errmsg.txt:
        Manual merge
      sql/share/greek/errmsg.txt:
        Manual merge
      sql/share/hungarian/errmsg.txt:
        Manual merge
      sql/share/italian/errmsg.txt:
        Manual merge
      sql/share/japanese/errmsg.txt:
        Manual merge
      sql/share/korean/errmsg.txt:
        Manual merge
      sql/share/norwegian-ny/errmsg.txt:
        Manual merge
      sql/share/norwegian/errmsg.txt:
        Manual merge
      sql/share/polish/errmsg.txt:
        Manual merge
      sql/share/portuguese/errmsg.txt:
        Manual merge
      sql/share/romanian/errmsg.txt:
        Manual merge
      sql/share/russian/errmsg.txt:
        Manual merge
      sql/share/serbian/errmsg.txt:
        Manual merge
      sql/share/slovak/errmsg.txt:
        Manual merge
      sql/share/spanish/errmsg.txt:
        Manual merge
      sql/share/swedish/errmsg.txt:
        Manual merge
      sql/share/ukrainian/errmsg.txt:
        Manual merge
      sql/slave.cc:
        Manual merge
      sql/slave.h:
        Manual merge
      sql/sql_repl.cc:
        Manual merge
      sql/sql_yacc.yy:
        Manual merge
      1f82a0de
    • unknown's avatar
      Implemented support for START SLAVE UNTIL (WL#868) · 2f8f0a7e
      unknown authored
      
      include/mysqld_error.h:
        Added error codes for warnings and error messages for START SLAVE UNTIL
      mysql-test/r/rpl000015.result:
        Fixed test because 3 new columns to SHOW SLAVE STATUS output were added
      mysql-test/r/rpl_empty_master_crash.result:
        Fixed test because 3 new columns to SHOW SLAVE STATUS output were added
      mysql-test/r/rpl_flush_log_loop.result:
        Fixed test because 3 new columns to SHOW SLAVE STATUS output were added
      mysql-test/r/rpl_log.result:
        Fixed test because 3 new columns to SHOW SLAVE STATUS output were added
      mysql-test/r/rpl_log_pos.result:
        Fixed test because 3 new columns to SHOW SLAVE STATUS output were added
      mysql-test/r/rpl_redirect.result:
        Fixed test because 3 new columns to SHOW SLAVE STATUS output were added
      mysql-test/r/rpl_replicate_do.result:
        Fixed test because 3 new columns to SHOW SLAVE STATUS output were added
      mysql-test/r/rpl_rotate_logs.result:
        Fixed test because 3 new columns to SHOW SLAVE STATUS output were added
      sql/lex.h:
        Added UNTIL symbol
      sql/log.cc:
        Invalidating until_log_name comparison result if group_relay_log_name is changed
      sql/log_event.cc:
        Invalidating until_log_name comparison result if group_master_log_name is changed
      sql/repl_failsafe.cc:
        Cancel until condition if LOAD MASTER DATA is executed
      sql/share/czech/errmsg.txt:
        Added error and warning message for START SLAVE UNTIL
      sql/share/danish/errmsg.txt:
        Added error and warning message for START SLAVE UNTIL
      sql/share/dutch/errmsg.txt:
        Added error and warning message for START SLAVE UNTIL
      sql/share/english/errmsg.txt:
        Added error and warning message for START SLAVE UNTIL
      sql/share/estonian/errmsg.txt:
        Added error and warning message for START SLAVE UNTIL
      sql/share/french/errmsg.txt:
        Added error and warning message for START SLAVE UNTIL
      sql/share/german/errmsg.txt:
        Added error and warning message for START SLAVE UNTIL
      sql/share/greek/errmsg.txt:
        Added error and warning message for START SLAVE UNTIL
      sql/share/hungarian/errmsg.txt:
        Added error and warning message for START SLAVE UNTIL
      sql/share/italian/errmsg.txt:
        Added error and warning message for START SLAVE UNTIL
      sql/share/japanese/errmsg.txt:
        Added error and warning message for START SLAVE UNTIL
      sql/share/korean/errmsg.txt:
        Added error and warning message for START SLAVE UNTIL
      sql/share/norwegian-ny/errmsg.txt:
        Added error and warning message for START SLAVE UNTIL
      sql/share/norwegian/errmsg.txt:
        Added error and warning message for START SLAVE UNTIL
      sql/share/polish/errmsg.txt:
        Added error and warning message for START SLAVE UNTIL
      sql/share/portuguese/errmsg.txt:
        Added error and warning message for START SLAVE UNTIL
      sql/share/romanian/errmsg.txt:
        Added error and warning message for START SLAVE UNTIL
      sql/share/russian/errmsg.txt:
        Added error and warning message for START SLAVE UNTIL
      sql/share/serbian/errmsg.txt:
        Added error and warning message for START SLAVE UNTIL
      sql/share/slovak/errmsg.txt:
        Added error and warning message for START SLAVE UNTIL
      sql/share/spanish/errmsg.txt:
        Added error and warning message for START SLAVE UNTIL
      sql/share/swedish/errmsg.txt:
        Added error and warning message for START SLAVE UNTIL
      sql/share/ukrainian/errmsg.txt:
        Added error and warning message for START SLAVE UNTIL
      sql/slave.cc:
        Fixed wrong locking order in init_relay_log_pos()
        Added until condition fields to SHOW SLAVE STATUS
        Added checking if UNTIL condition is reached 
        (added proper method, added its invocation, reorganized locking 
        in exec_relay_log_event() and next_event())
      sql/slave.h:
        Members in RELAY_LOG_INFO for storing UNTIL condition. Also 
        methods for for invalidation of cached UNTIL condition comparison
        results
      sql/sql_repl.cc:
        Now honoring UNTIL clause then starting slave thread. Proper 
        errors and warnings.
      sql/sql_yacc.yy:
        Added support for UNTIL clause in START SLAVE. This involved 
        extraction of some of master_defs to separate master_file_def
        non-terminal.
      2f8f0a7e
    • unknown's avatar
      Merge sinisa@bk-internal.mysql.com:/home/bk/mysql-4.1 · df8b036d
      unknown authored
      into sinisa.nasamreza.org:/mnt/work/mysql-4.1
      
      
      df8b036d
    • unknown's avatar
      Fixes for OPTION_FOUND_ROWS in UNION's · aedc0ab0
      unknown authored
      
      mysql-test/r/subselect.result:
        A warning added to subselect test due to the recent changes.
        
        UNION in sub-select returns the empty set, which is why this warning is
        a mistery to me.
      mysql-test/r/union.result:
        two changes.
        
        First one is due to the proper handling of LIMIT offset, limit in 
        UNION without all.
        
        Second is a change in behaviour due to the fact that ORDER by in a 
        UNION without braces is not now applicable to the last SELECT node.
        
        It can not be applied until one bug is fixed (after my vacation).
        
        Should be documented.
      aedc0ab0
    • unknown's avatar
      "normal" warning in test suite disabled · 7eb9d41c
      unknown authored
      bad merge fixed
      
      
      mysql-test/t/isam.test:
        bad merge fixed
      mysql-test/t/lock_tables_lost_commit.test:
        "normal" warning in test suite disabled
      mysql-test/t/subselect.test:
        "normal" warning in test suite disabled
      7eb9d41c