1. 08 Jul, 2003 1 commit
    • unknown's avatar
      Merge oak.local:/home/kostja/mysql/mysql-4.1-root · db3e9344
      unknown authored
      into oak.local:/home/kostja/mysql/mysql-4.1
      
      
      scripts/mysql_create_system_tables.sh:
        Auto merged
      sql/item_strfunc.cc:
        Auto merged
      sql/mysql_priv.h:
        Auto merged
      sql/mysqld.cc:
        Auto merged
      sql/sql_class.h:
        Auto merged
      sql/sql_parse.cc:
        Auto merged
      sql/sql_yacc.yy:
        Auto merged
      db3e9344
  2. 07 Jul, 2003 2 commits
    • unknown's avatar
      Preliminary support for options --secure-auth, · 78c3d968
      unknown authored
      --old-passwords
      Support for option --old-protocol was removed.
      Some test performed.
      Tests for SSL and replication are pending.
      More strict following to specification for --old-passwords
      is in the TODO.
      
      
      include/mysql_com.h:
        support for 3.20 passwords removed from
        scramble_323
      include/mysqld_error.h:
        added error code for --secure-auth mode
      libmysql/libmysql.c:
        removed support for 3.20 password and protocol
        version 9
      mysql-test/r/connect.result:
        added check for new syntax of 
        set password
      mysql-test/r/func_crypt.result:
        tests for two-argument of password() were removed.
        Instead added tests for cooperation of password() and
        old_passwords session/global variable, passwords() and spaces 
        in argument string
      mysql-test/t/connect.test:
        added check for new syntax of
        set password
      mysql-test/t/func_crypt.test:
        tests for two-argument of password() were removed.
        Instead added tests for cooperation of password() and
        old_passwords session/global variable, passwords() and spaces 
        in argument string
      sql-common/client.c:
        removed support for 3.20 servers and 
        protocol version 9
      sql/item_strfunc.h:
        fixed comment
      sql/mysql_priv.h:
        added declarartion for option opt_secure_auth
      sql/mysqld.cc:
        added option opt_secure_auth
        option old-password placed according to
        sort order
      sql/password.c:
        removed support for 3.20 clients and 
        old scrambles
      sql/set_var.cc:
        added system variable 'secure_auth'
        added system/thread variable 'old_passwords'
      sql/set_var.h:
        sys_old_passwords needs to be exported 
        because sys_old_passwords.after_update is used
        in sql_acl.cc
      sql/sql_acl.cc:
        support for 3.20 passwords removed
        now acl_init honors options works properly with
        options/variables --secure-auth and --old-passwords
      sql/sql_acl.h:
        support for 3.20 clients removed
      sql/sql_class.h:
        added system/thread variable old_passwords
      sql/sql_parse.cc:
        support for 3.20 clients removed
        now check_user takes into account option
        secure_auth
      sql/sql_yacc.yy:
        global variable use_old_passwords 
        replaced with thread-specific variable 
        old_passwords
      sql/share/czech/errmsg.txt:
        error message for --secure-auth added
        (as suggested by Paul)
      sql/share/danish/errmsg.txt:
        error message for --secure-auth added
        (as suggested by Paul)
      sql/share/dutch/errmsg.txt:
        error message for --secure-auth added
        (as suggested by Paul)
      sql/share/english/errmsg.txt:
        error message for --secure-auth added
        (as suggested by Paul)
      sql/share/estonian/errmsg.txt:
        error message for --secure-auth added
        (as suggested by Paul)
      sql/share/french/errmsg.txt:
        error message for --secure-auth added
        (as suggested by Paul)
      sql/share/german/errmsg.txt:
        error message for --secure-auth added
        (as suggested by Paul)
      sql/share/greek/errmsg.txt:
        error message for --secure-auth added
        (as suggested by Paul)
      sql/share/hungarian/errmsg.txt:
        error message for --secure-auth added
        (as suggested by Paul)
      sql/share/italian/errmsg.txt:
        error message for --secure-auth added
        (as suggested by Paul)
      sql/share/japanese/errmsg.txt:
        error message for --secure-auth added
        (as suggested by Paul)
      sql/share/korean/errmsg.txt:
        error message for --secure-auth added
        (as suggested by Paul)
      sql/share/norwegian-ny/errmsg.txt:
        error message for --secure-auth added
        (as suggested by Paul)
      sql/share/norwegian/errmsg.txt:
        error message for --secure-auth added
        (as suggested by Paul)
      sql/share/polish/errmsg.txt:
        error message for --secure-auth added
        (as suggested by Paul)
      sql/share/portuguese/errmsg.txt:
        error message for --secure-auth added
        (as suggested by Paul)
      sql/share/romanian/errmsg.txt:
        error message for --secure-auth added
        (as suggested by Paul)
      sql/share/russian/errmsg.txt:
        error message for --secure-auth added
        (as suggested by Paul)
      sql/share/serbian/errmsg.txt:
        error message for --secure-auth added
        (as suggested by Paul)
      sql/share/slovak/errmsg.txt:
        error message for --secure-auth added
        (as suggested by Paul)
      sql/share/spanish/errmsg.txt:
        error message for --secure-auth added
        (as suggested by Paul)
      sql/share/swedish/errmsg.txt:
        error message for --secure-auth added
        (as suggested by Paul)
      sql/share/ukrainian/errmsg.txt:
        error message for --secure-auth added
        (as suggested by Paul)
      78c3d968
    • unknown's avatar
      Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-4.1 · 8d128eed
      unknown authored
      into sanja.is.com.ua:/home/bell/mysql/bk/work-alloc_group-4.1
      
      
      8d128eed
  3. 06 Jul, 2003 2 commits
    • unknown's avatar
      fixed subselect with to temporary tables executing · 51b26a4d
      unknown authored
      (now it return correct results. Test was commited before, but it is not pushed,
      BUG# is not registered, because bug was introduced after release)
      
      
      sql/sql_select.cc:
        fixed subselect with to temporary tables executing
      sql/sql_select.h:
        fixed subselect with to temporary tables executing
      51b26a4d
    • unknown's avatar
      fixed memory leak in group_concat function (BUG#796) · cd3e15a6
      unknown authored
      fixed test func_gconcat to be repeatable independent of presend tables and avoid removing user tables
      
      
      mysql-test/r/func_gconcat.result:
        removed warning in test
        fixed table tnames (should be tN, where N is number)
      mysql-test/t/func_gconcat.test:
        removed warning in test
        fixed table tnames (should be tN, where N is number)
      sql/item_sum.cc:
        added debug information
        fixed memory leak in group_concat function
      cd3e15a6
  4. 05 Jul, 2003 1 commit
    • unknown's avatar
      reduced using of slow current_thd/current_lex macro · 0f792995
      unknown authored
      initialization of item_thd moved to constructor (in any case we need thd in constructor)
      initialization of group_concat_max_len to constructor to avoid incorrect length reporting (BUG#757)
      removed Item_func_group_concat::fix_length_and_dec() because item have its own fix_fields and will not have inherited items
      
      
      mysql-test/r/func_gconcat.result:
        test for BUG#757
      mysql-test/t/func_gconcat.test:
        test for BUG#757
      sql/item_sum.cc:
        reduced using of slow current_thd/current_lex macro
        initialization of item_thd moved to constructor (in any case we need thd in constructor)
        initialization of group_concat_max_len to constructor to avoid incorrect length reporting (BUG#757)
      sql/item_sum.h:
        removed Item_func_group_concat::fix_length_and_dec() because item have its own fix_fields and will not have inherited items
      0f792995
  5. 04 Jul, 2003 13 commits
    • unknown's avatar
      Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-4.1 · 929a4783
      unknown authored
      into sanja.is.com.ua:/home/bell/mysql/bk/work-alloc_group-4.1
      
      
      mysql-test/t/subselect.test:
        Auto merged
      sql/sql_select.cc:
        Auto merged
      929a4783
    • unknown's avatar
      Merge venu@bk-internal.mysql.com:/home/bk/mysql-4.1 · e25c83e0
      unknown authored
      into myvenu.com:/home/venu/work/sql/dev-4.1
      
      
      e25c83e0
    • unknown's avatar
    • unknown's avatar
      Bug fixes for authentication · ccbcf1c9
      unknown authored
      OLD_PASSWORD made a keyword to allow set password=old_password('abc') constructions.
      
      
      BitKeeper/etc/ignore:
        Added BitKeeper/post-commit BitKeeper/post-commit-manual build_tags.sh tests/connect_test BUILD/compile-pentium-maintainer to the ignore list
      include/mysql_com.h:
        scramble return type changed to void as now it's not used
      libmysql/libmysql.c:
        fixed bug with with failed authentification when scramble contained zero byte
      sql-common/client.c:
        applied patch from Lycos team
        fixed bug with scramble containing zero byte
      sql/item_create.cc:
        removed create_func_old_password, create_func_password as they are not used any more
      sql/item_create.h:
        removed create_func_old_password, create_func_password as they are not used any more
      sql/item_strfunc.cc:
        Added alloc() function to Item_func_password, Item_func_old_password, which is used in sql_yacc.yy
      sql/item_strfunc.h:
        Added alloc() function to Item_func_password, Item_func_old_password, which is used in sql_yacc.yy
      sql/lex.h:
        OLD_PASSWORD now is keyword, to allow statements like
        set password=old_password('abc')
      sql/password.c:
        fixed scramble return value
        trailing zero now is not written
      sql/sql_acl.cc:
        incorporated patch from Lycos team
        41 replaced with constant
        acl_getroot rewritten to support ER_AUTH_... error
      sql/sql_parse.cc:
        authenticate merged with check_user
        check_user return values reversed, support for ER_AUTH in check_user.added
      sql/sql_yacc.yy:
        OLD_PASSWORD now is keyword, to allow statements like
        set password=old_password('abc')
      ccbcf1c9
    • unknown's avatar
      More code was reused · 0333deef
      unknown authored
      0333deef
    • unknown's avatar
      Better arguments format to allow reuse more code · a371a6e6
      unknown authored
      a371a6e6
    • unknown's avatar
      Merge abarkov@build.mysql.com:/home/bk/mysql-4.1 · c29f49c2
      unknown authored
      into bar.mysql.r18.ru:/usr/home/bar/mysql-4.1
      
      
      c29f49c2
    • unknown's avatar
      New methods · 3b09b2f0
      unknown authored
        Item_func::agg_arg_collations()
        Item_func::arr_arg_collations_for_comparison()
       to aggregate argument collations.
      It helps to reuse a lot of code.
      
      
      3b09b2f0
    • unknown's avatar
      Merge bk-internal:/home/bk/mysql-4.1/ · f688da00
      unknown authored
      into serg.mylan:/usr/home/serg/Abk/mysql-4.1
      
      
      f688da00
    • unknown's avatar
      Merge rkalimullin@bk-internal.mysql.com:/home/bk/mysql-4.1 · d1f61d6f
      unknown authored
      into mysql.r18.ru:/usr/home/ram/work/4.1
      
      
      d1f61d6f
    • unknown's avatar
      Merge bk-internal:/home/bk/mysql-4.1/ · be1197ec
      unknown authored
      into serg.mylan:/usr/home/serg/Abk/mysql-4.1
      
      
      be1197ec
    • unknown's avatar
      enabling HA_READ_PREFIX_LAST_OR_PREV · ea4b758a
      unknown authored
      
      mysql-test/t/subselect.test:
        fixed test case for no InnoDB
      ea4b758a
    • unknown's avatar
      fix and test case for the bug #787: HANDLER without INDEX doesn't work with deleted rows · a7beff5e
      unknown authored
      
      mysql-test/r/handler.result:
        test case for the bug #787: HANDLER without INDEX doesn't work with deleted rows
      mysql-test/t/handler.test:
        test case for the bug #787: HANDLER without INDEX doesn't work with deleted rows
      sql/sql_handler.cc:
        fix for the bug #787: HANDLER without INDEX doesn't work with deleted rows
      a7beff5e
  6. 03 Jul, 2003 12 commits
  7. 02 Jul, 2003 4 commits
  8. 01 Jul, 2003 5 commits
    • unknown's avatar
      First version of new authentification procedure: now authentification is... · dbb088b0
      unknown authored
      First version of new authentification procedure: now authentification is one-stage (instead of two-stage in 4.1)
      
      For now following tasks have been done:
      - PASSWORD() function was rewritten. PASSWORD() now returns SHA1
        hash_stage2; for new passwords user.password contains '*'hash_stage2; sql_yacc.yy also fixed; 
      
      - password.c: new functions were implemented, old rolled back to 4.0 state
      
      - server code was rewritten to use new authorization algorithm (check_user(), change
        user, and other stuff in sql/sql_parse.cc)
      
      - client code was rewritten to use new authorization algorithm
        (mysql_real_connect, myslq_authenticate in sql-common/client.c)
      
      - now server barks on 45-byte-length 4.1.0 passwords and refuses 4.1.0-style
        authentification. Users with 4.1.0 passwords are blocked (sql/sql_acl.cc)
      
      - mysqladmin.c was fixed to work correctly with new passwords
      
      Tests for 4.0-4.1.1, 4.1.1-4.1.1 (with or without db/password) logons was performed;
      mysqladmin also was tested. Additional check are nevertheless necessary.
      
      
      BitKeeper/etc/ignore:
        Added start_mysqld.sh mysys/main.cc to the ignore list
      client/mysqladmin.c:
        fixed with new password api
      include/mysql.h:
        So as scramble_323 accepts only null-terminated message, two scramble buffs are necessary.
        gotta be fixed
      include/mysql_com.h:
        new constants and password.c api changes
      libmysql/libmysql.c:
        mysql_change_user rewritten to work with new password api
      scripts/mysql_create_system_tables.sh:
        fixed 'Password' column length to 41
      scripts/mysql_fix_privilege_tables.sql:
        fixed 'Password' column length to 41
      sql-common/client.c:
        mysql_real_connect rewritten to support new handshake procedure
      sql/item_strfunc.cc:
        Item_func_password and Item_func_old_password rewritten with new password api
      sql/item_strfunc.h:
        bit commented, numbers replaced with #defined constants
      sql/mysql_priv.h:
        removed unnecessary declaration as now all constants defined is in mysql_com.h
      sql/mysqld.cc:
        scramble initialization moved to sql_parce.cc:check_connection
      sql/password.c:
        All 4.1 functions were rolled back to 4.0 with attempt to save all possible 4.0-4.1 changes.
        Names for 4.0 functions were suffixed with '_323'
        Functions for new handshake were added.
      sql/slave.cc:
        Fixed to new constant; Bug #766 remains to be fixed
      sql/slave.h:
        fixed to new constant; Buf #766 remains to be fixed
      sql/sql_acl.cc:
        rewritten to support new passwords (41 byte-long) and password api
      sql/sql_acl.h:
        ditto
      sql/sql_class.cc:
        initialization for new members added
      sql/sql_class.h:
        same thing as in struct mysql - scramble is used for new family of functions, scramble_323 - for old
      sql/sql_parse.cc:
        check_connections was renamed to check_connection as this name reflects better what this function does
        authorization part of check_connection was rewritten
        check_user was rewritten with new password and acl api
        new function 'authenticate', which optionally re-request scramble from client was added
        fixed some typos
        COM_CHANGE_USER piece of dipsatch_command() was rewritten
      sql/sql_repl.h:
        HASH_PASSWORD_LENGTH replaced with SCRAMBLED_PASSWORD_CHAR_LENGTH
        bug #766 remains
      sql/sql_yacc.yy:
        Two-argument form of PASSWORD() was removed
        PASSWORD() function was fixed with new password api.
      BitKeeper/etc/logging_ok:
        Logging to logging@openlogging.org accepted
      dbb088b0
    • unknown's avatar
      Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-4.1 · 54313be5
      unknown authored
      into sanja.is.com.ua:/home/bell/mysql/bk/work-alloc_group-4.1
      
      
      mysql-test/r/subselect.result:
        Auto merged
      mysql-test/t/subselect.test:
        Auto merged
      sql/sql_select.cc:
        Auto merged
      sql/sql_select.h:
        Auto merged
      54313be5
    • unknown's avatar
      Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-4.1 · 4354fcd6
      unknown authored
      into sanja.is.com.ua:/home/bell/mysql/bk/work-err-4.1
      
      
      mysql-test/r/subselect.result:
        Auto merged
      sql/sql_parse.cc:
        Auto merged
      sql/sql_select.cc:
        Auto merged
      4354fcd6
    • unknown's avatar
      fixed uninitialized pointer · 69df67fb
      unknown authored
      69df67fb
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-4.1 · ff1f63e8
      unknown authored
      into mashka.mysql.fi:/home/my/mysql-4.1
      
      
      mysql-test/r/grant_cache.result:
        Auto merged
      ff1f63e8