1. 18 Dec, 2003 7 commits
    • unknown's avatar
      Post-merge fix. · 844d9b76
      unknown authored
      844d9b76
    • unknown's avatar
      Merge · fe6946ac
      unknown authored
      
      client/mysqltest.c:
        Auto merged
      include/mysqld_error.h:
        Auto merged
      libmysql/libmysql.c:
        Auto merged
      libmysqld/lib_sql.cc:
        Auto merged
      mysql-test/r/variables.result:
        Auto merged
      mysql-test/t/variables.test:
        Auto merged
      sql/handler.cc:
        Auto merged
      sql/handler.h:
        Auto merged
      sql/lex.h:
        Auto merged
      sql/mysql_priv.h:
        Auto merged
      sql/mysqld.cc:
        Auto merged
      sql/net_serv.cc:
        Auto merged
      sql/set_var.cc:
        Auto merged
      sql/sql_lex.h:
        Auto merged
      sql/sql_parse.cc:
        Auto merged
      sql/sql_show.cc:
        Auto merged
      sql/sql_table.cc:
        Auto merged
      sql/udf_example.cc:
        Auto merged
      include/sql_state.h:
        SCCS merged
      sql/sql_yacc.yy:
        SCCS merged
      fe6946ac
    • unknown's avatar
      Corrected faulty #if tests in udf_example.cc which made udf_test crash the server on some · fddddc2c
      unknown authored
      platforms.
      
      
      sql/udf_example.cc:
        Corrected faulty #if tests which made udf_test crash the server on some
        platforms.
      fddddc2c
    • unknown's avatar
      Merge abotchkov@bk-internal.mysql.com:/home/bk/mysql-4.1 · 24937ffc
      unknown authored
      into deer.(none):/home/hf/work/mysql-4.1.2126
      
      
      24937ffc
    • unknown's avatar
      Fix for #2126 · 195b8ac5
      unknown authored
      additional changes (after discussion with Monty)
      
      
      libmysql/libmysql.c:
        it's good to check my_thread_init() result as well
      sql/client_settings.h:
        0 is more relevant here
      195b8ac5
    • unknown's avatar
      29af6f37
    • unknown's avatar
      Fix for #2126 (mysql_server_init call shouldn't be needed) · 886307f2
      unknown authored
      now mysql_server_init is called from mysql_init with fake parameters
      mysql_once_init code included to mysql_server_init.
      embedded-specific initialization is in init_embedded_server function
      
      
      include/errmsg.h:
        this error won't happen
      include/mysql.h:
        declarations removed
      libmysql/client_settings.h:
        declaration of init_embedded_server/end_embedded_server added
      libmysql/errmsg.c:
        this error won't happen
      libmysql/libmysql.c:
        mysql_once_init -> mysql_server_init transformations
      libmysqld/embedded_priv.h:
        declaration deleted
      libmysqld/lib_sql.cc:
        mysql_server_init -> init_embedded_server
        mysql_server_end  -> end_embedded_server
      libmysqld/libmysqld.c:
        check for server_inited not needed now
      sql-common/client.c:
        mysql_server_init now called from mysql_init
      sql/client_settings.h:
        fake mysql_server_init for server code
      sql/net_serv.cc:
        we need MYSQL_CLIENT defined in embedded server
      sql/sql_client.cc:
        not needed now
      886307f2
  2. 17 Dec, 2003 2 commits
    • unknown's avatar
      WorkLog #1323 (part 2) · 69cee792
      unknown authored
      New Statement: SHOW [STORAGE] ENGINES
      New System Variable: storage_engine
      New mysqld Argument: --default-storage-engine=
      
      
      include/mysqld_error.h:
        We now call handlers STORAGE ENGINEs
      include/sql_state.h:
        We now call handlers STORAGE ENGINEs
      mysql-test/r/create.result:
        table_type system variable becomes storage_engine
      mysql-test/r/key_cache.result:
        table_type system variable becomes storage_engine
      mysql-test/r/variables.result:
        table_type system variable becomes storage_engine
      mysql-test/r/warnings.result:
        Test for deprecated table_type system variable
      mysql-test/t/create.test:
        table_type system variable becomes storage_engine
      mysql-test/t/key_cache.test:
        table_type system variable becomes storage_engine
      mysql-test/t/variables.test:
        table_type system variable becomes storage_engine
      mysql-test/t/warnings.test:
        Test for deprecated table_type system variable
      sql/handler.cc:
        change name for consistency
      sql/handler.h:
        change name for consistency
      sql/lex.h:
        New keywords - ENGINES and STORAGE
      sql/mysql_priv.h:
        change name for consistency
      sql/mysqld.cc:
        New command like argument for default-storage-engine
      sql/set_var.cc:
        New system variable for storage_engine
      sql/set_var.h:
        New system variable for storage_engine
      sql/sql_lex.h:
        Change for consistancy
      sql/sql_parse.cc:
        Change for consistancy
      sql/sql_show.cc:
        Change for consistancy
      sql/sql_table.cc:
        Change for consistancy
      sql/sql_yacc.yy:
        New keywords: STORAGE and ENGINES
        Change table_types to storage_engines
        New statement: SHOW [STORAGE] ENGINES
      69cee792
    • unknown's avatar
      Fixed some minor issues, revealed by compiler warnings when using · 1ca25d0e
      unknown authored
      BUILD/compile-pentium-debug-max
      
      
      BitKeeper/etc/logging_ok:
        Logging to logging@openlogging.org accepted
      1ca25d0e
  3. 16 Dec, 2003 11 commits
    • unknown's avatar
      Renamed the "schema" column to "db" in mysql.proc to keep it in style with · fd454487
      unknown authored
      all the other mysql.* tables.
      
      
      fd454487
    • unknown's avatar
      Post-merge fixes. · bc748bef
      unknown authored
      Multiple result sets from stored procedures now works with the
      mysql and mysqltest clients.
      
      
      client/mysqltest.c:
        Post-merge fixes.
      mysql-test/r/index_merge_innodb.result:
        Post-merge fixes.
      mysql-test/r/sp-error.result:
        Post-merge fixes.
        Removed now obsolete error test for multiple selects (without "into").
      mysql-test/r/sp.result:
        Post-merge fixes.
        Added test for mulple result sets.
      mysql-test/r/variables.result:
        Post-merge fixes.
      mysql-test/t/index_merge_innodb.test:
        Post-merge fixes.
      mysql-test/t/sp-error.test:
        Post-merge fixes.
        Removed now obsolete error test for multiple selects (without "into").
      mysql-test/t/sp.test:
        Post-merge fixes.
        Added test for mulple result sets.
      sql/lex.h:
        Post-merge fixes.
      bc748bef
    • unknown's avatar
      Merge 4.1 to 5.0. · b8fa1718
      unknown authored
      
      mysql-test/r/distinct.result:
        Auto merged
      mysql-test/r/func_time.result:
        Auto merged
      mysql-test/r/join_outer.result:
        Auto merged
      mysql-test/r/multi_update.result:
        Auto merged
      mysql-test/r/mysqldump.result:
        Auto merged
      mysql-test/r/null.result:
        Auto merged
      mysql-test/r/query_cache.result:
        Auto merged
      mysql-test/r/show_check.result:
        Auto merged
      mysql-test/r/status.result:
        Auto merged
      mysql-test/r/subselect.result:
        Auto merged
      mysql-test/r/symlink.result:
        Auto merged
      mysql-test/t/distinct.test:
        Auto merged
      mysql-test/t/func_time.test:
        Auto merged
      mysql-test/t/multi_update.test:
        Auto merged
      mysql-test/t/null.test:
        Auto merged
      mysql-test/t/query_cache.test:
        Auto merged
      mysql-test/t/subselect.test:
        Auto merged
      sql/item.cc:
        Auto merged
      sql/item_cmpfunc.cc:
        Auto merged
      sql/mysqld.cc:
        Auto merged
      sql/sql_show.cc:
        Auto merged
      b8fa1718
    • unknown's avatar
      Merge jamppa@bk-internal.mysql.com:/home/bk/mysql-4.1 · 24794dbc
      unknown authored
      into rhols221.adsl.netsonic.fi:/home/my/bk/mysql-4.1
      
      
      24794dbc
    • unknown's avatar
      Fixed parenthesis needed by valgrind-max. · 8af0acea
      unknown authored
      8af0acea
    • unknown's avatar
      proper fix for the bug #2077: accented characters in enum/defaul values are reported incorrectly. · 96636daf
      unknown authored
      note: bar asked me to use res.charset in ::sql_type() functions to be more consistent.
      
      
      mysql-test/r/type_enum.result:
        proper fix for the bug #2077: accented characters in enum/defaul values are reported incorrectly
      mysql-test/t/type_enum.test:
        proper fix for the bug #2077: accented characters in enum/defaul values are reported incorrectly
      sql/field.cc:
        proper fix for the bug #2077: accented characters in enum/defaul values are reported incorrectly
      sql/sql_show.cc:
        proper fix for the bug #2077: accented characters in enum/defaul values are reported incorrectly
      sql/table.cc:
        proper fix for the bug #2077: accented characters in enum/defaul values are reported incorrectly
      96636daf
    • unknown's avatar
      Forgot to wrap things in #ifndef NO_EMBEDDED_ACCESS_CHECKS for the embedded server. · 241bb226
      unknown authored
      Added missing cleanup in sp-security.test.
      
      
      mysql-test/r/sp-security.result:
        Added clean-up.
      mysql-test/t/sp-security.test:
        Added clean-up.
      sql/item_func.cc:
        Forgot to wrap things in #ifndef NO_EMBEDDED_ACCESS_CHECKS for the embedded server.
      sql/sp_head.cc:
        Forgot to wrap things in #ifndef NO_EMBEDDED_ACCESS_CHECKS for the embedded server.
      sql/sp_head.h:
        Forgot to wrap things in #ifndef NO_EMBEDDED_ACCESS_CHECKS for the embedded server.
      sql/sql_parse.cc:
        Forgot to wrap things in #ifndef NO_EMBEDDED_ACCESS_CHECKS for the embedded server.
      241bb226
    • unknown's avatar
      Missed header added · 029e30b4
      unknown authored
      
      heap/hp_hash.c:
        header added
      029e30b4
    • unknown's avatar
      Some minor code clean up. · 2c2c409a
      unknown authored
      2c2c409a
    • unknown's avatar
      Added support for multi statement tests. Use mysqltest internal · 3467862b
      unknown authored
      command delimiter to change the default delimiter (;) to something
      else, a string upto 16 characters is allowed. Separate the sub
      queries with ';' and end the whole statement with your own delimiter.
      
      
      3467862b
    • unknown's avatar
      Cleanup · caf4fd96
      unknown authored
      
      client/mysqltest.c:
        Remove not needed include files
      caf4fd96
  4. 15 Dec, 2003 6 commits
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-4.1 · 52a39105
      unknown authored
      into mysql.com:/my/mysql-4.1
      
      
      52a39105
    • unknown's avatar
      Updated results · c3617bb8
      unknown authored
      c3617bb8
    • unknown's avatar
      part one of the fix for the bug #2077: accented characters in enum/defaul... · 987d8ff9
      unknown authored
      part one of the fix for the bug #2077: accented characters in enum/defaul values are reported incorrectly
      
      
      mysql-test/r/type_enum.result:
        test for the bug #2077: accented characters in enum/defaul values are reported incorrectly
      mysql-test/t/type_enum.test:
        test for the bug #2077: accented characters in enum/defaul values are reported incorrectly
      987d8ff9
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-4.1 · 082953ec
      unknown authored
      into mysql.com:/my/mysql-4.1
      
      
      mysql-test/r/create.result:
        Auto merged
      mysql-test/t/create.test:
        Auto merged
      082953ec
    • unknown's avatar
      Added missing timeout function for named pipes and shared memory (fixes core dump on windows) · 9000046c
      unknown authored
      Signed auto_increment keys for HASH tables (like for MyISAM tables in 4.0)
      nitialize system_charset_info() early. Fixes core dump when starting windows service
      
      
      heap/hp_hash.c:
        Signed auto_increment keys for HASH tables (like for MyISAM tables in 4.0)
      mysql-test/r/create.result:
        More test for type returned by if_null()
      mysql-test/t/create.test:
        More test for type returned by if_null()
      sql/field.h:
        Remove not needed functions
      sql/item.cc:
        Use normal field create function instead of special functions just made for tmp_table_field_from_field_type
      sql/mysqld.cc:
        Initialize system_charset_info() early. Fixes core dump when starting windows service
      vio/vio.c:
        Added missing timeouts for named pipes and shared memory (fixes core dump on windows)
      vio/vio_priv.h:
        Added missing timeout function for named pipes and shared memory (fixes core dump on windows)
      vio/viosocket.c:
        Added missing timeout function for named pipes and shared memory (fixes core dump on windows)
      9000046c
    • unknown's avatar
      Fixed various memory leaks. · 1d77c041
      unknown authored
      
      sql/sp.cc:
        Fixed memory leaks. Deletion of sps now in sp_cache.
      sql/sp_cache.cc:
        Fixed memory leaks. Use implicit delete of objects to make sure
        they're always freed.
      sql/sp_cache.h:
        Fixed memory leaks. Use implicit delete of objects to make sure
        they're always freed.
      sql/sp_head.cc:
        Fixed memory leaks. Make sure we use the right mem_root during parsing.
      sql/sp_head.h:
        Fixed memory leaks. Make sure we use the right mem_root during parsing.
      sql/sql_parse.cc:
        Fixed memory leaks. Don't forget to free the temporary object created at definition.
      sql/sql_yacc.yy:
        Fixed memory leaks. Make sure we use the right mem_root during parsing.
      1d77c041
  5. 13 Dec, 2003 5 commits
    • unknown's avatar
      Translation update · 4d52808b
      unknown authored
      4d52808b
    • unknown's avatar
      Merge bk-internal:/home/bk/mysql-4.1/ · 85dab639
      unknown authored
      into serg.mylan:/usr/home/serg/Abk/mysql-4.1
      
      
      85dab639
    • unknown's avatar
    • unknown's avatar
      WL#1365: Implement definer's rights execution of stored procedures. · a6f85eea
      unknown authored
      (Also put the hostpart back in the definer column.)
      
      
      mysql-test/r/sp-error.result:
        Moved error test from sp.test
      mysql-test/r/sp.result:
        Moved error test to sp-error.test.
        Put hostpart back into definer column in mysql.proc.
      mysql-test/t/sp-error.test:
        Moved error test from sp.test
      mysql-test/t/sp.test:
        Moved error test to sp-error.test.
        Put hostpart back into definer column in mysql.proc.
      sql/item_func.cc:
        (Maybe) switch security context before invoking a stored function.
      sql/sp.cc:
        Renamed creator into definer, for more consistent terminology, and put the
        hostpart back.
      sql/sp_head.cc:
        Some fixes in the way things are allocated, and moved set_info() definition
        here from sp_head.h. creator is now called definer, and is split into a
        user and host part.
        Added functions for (possible) change and restore of privileges, for sql security
        definer calls.
      sql/sp_head.h:
        Moved set_info() definition here from sp_head.h.
        creator is now called definer, and is split into a user and host part.
        Added functions for (possible) change and restore of privileges, for sql security
        definer calls.
      sql/sql_acl.cc:
        New function acl_getroot_no_password() for getting the privileges used when
        calling an SP with sql security definer.
      sql/sql_acl.h:
        New function acl_getroot_no_password() for getting the privileges used when
        calling an SP with sql security definer.
      sql/sql_parse.cc:
        (Maybe) switch security context before invoking a stored procedure.
      sql/sql_yacc.yy:
        Fixed typo.
      a6f85eea
    • unknown's avatar
      Already approved bug fix for #1561. · 85a4e83e
      unknown authored
      Bug happens in INTERVAL function when number of compared arguments
      is 8 or more.
      
      
      85a4e83e
  6. 12 Dec, 2003 3 commits
    • unknown's avatar
      Merge bk-internal:/home/bk/mysql-4.1/ · f953acea
      unknown authored
      into serg.mylan:/usr/home/serg/Abk/mysql-4.1
      
      
      f953acea
    • unknown's avatar
      Don't want host in the definer's column. · 8630ca9a
      unknown authored
      8630ca9a
    • unknown's avatar
      In order to make ALTER PROCEDURE|FUNCTION work correctly, and in general to · cabd28c6
      unknown authored
      make characteristics (and SHOW) work right, we had to separate the old
      definition blob in the mysql.proc table into separate fields for parameters,
      return type, and body, and handle the characteristics (like SQL SECURITY)
      separately... and then reassemble the CREATE string for parsing, of course.
      This is rather ugly, mostly the parser bit. (Hopefully that will be better
      with the new parser.)
      
      
      Docs/sp-imp-spec.txt:
        Separated the definitions string of the procedure into different columns
        in the mysql.proc schema.
      mysql-test/r/sp.result:
        New characteristics tests.
      mysql-test/t/sp.test:
        New characteristics tests.
      scripts/mysql_create_system_tables.sh:
        Separated the definitions string of the procedure into different columns
        in the mysql.proc schema.
      scripts/mysql_fix_privilege_tables.sql:
        Separated the definitions string of the procedure into different columns
        in the mysql.proc schema.
      sql/sp.cc:
        Separated the definitions string of the procedure into different columns.
        Rewrote much of the code related this (have a assemble the definition
        string from its different parts now) and the way characteristics are now
        handled, in order to make ALTER actually work.
      sql/sp.h:
        Changed prototypes.
      sql/sp_head.cc:
        Rewrote much of the code related to the new mysql.proc schema with separate
        definition fields (have to assemble the definition string from its different
        parts now) and the way characteristics are now handled, in order to make ALTER
        actually work.
      sql/sp_head.h:
        Separated the different parts of the definition strings: name, parameters,
        return type (for functions) and body.
      sql/sql_yacc.yy:
        Separated the different parts of the definition strings: name, parameters,
        return type (for functions) and body.
        This is ugly and messy; hopefully there's a more elegant way to do this
        when the new parser is installed.
      cabd28c6
  7. 11 Dec, 2003 4 commits
  8. 10 Dec, 2003 2 commits
    • unknown's avatar
      WL#1363: Update the mysql.proc table and add new fields. · 3702a1db
      unknown authored
      Also made the parsing and handling of SP characteristics
      more general and extendable, and added a few ch:istics.
      
      
      Docs/sp-imp-spec.txt:
        Updated spec with new schema.
      Docs/sp-implemented.txt:
        Added info about ALTER and SHOW.
      mysql-test/r/sp.result:
        Minor change in SHOW FUNCTION|PROCEDURE STATUS output.
      scripts/mysql_create_system_tables.sh:
        New mysql.proc schema.
      scripts/mysql_fix_privilege_tables.sql:
        New mysql.proc schema.
      sql/lex.h:
        New lex words for SP characteristics.
      sql/sp.cc:
        New mysql.proc schema.
        Also made the characteristics handling slightly more extendable.
      sql/sp.h:
        Made the characteristics handling slightly more extendable.
      sql/sp_head.cc:
        Made the characteristics handling slightly more extendable.
      sql/sp_head.h:
        Made the characteristics handling slightly more extendable.
      sql/sql_lex.h:
        Made the characteristics handling slightly more extendable.
      sql/sql_parse.cc:
        Made the characteristics handling slightly more extendable.
      sql/sql_yacc.yy:
        Made the characteristics handling slightly more extendable
        and made the parsing of characteristics more general, and
        added a few new dito. (LANGUAGE SQL, and [NOT] DETERMINISTIC
        for starters).
      3702a1db
    • unknown's avatar
      4de97333