An error occurred fetching the project authors.
  1. 26 Feb, 2003 1 commit
    • unknown's avatar
      Made stored FUNCTION invokation work almost always. Still buggy and unstable, and · 76b037dc
      unknown authored
      various known problems, but good enough for a checkpoint commit.
      
      
      mysql-test/r/sp.result:
        New tests for invoking simple FUNCTIONs.
      mysql-test/t/sp.test:
        New tests for invoking simple FUNCTIONs.
      sql/item_func.cc:
        New Item_func_sp for stored FUNCTIONs.
      sql/item_func.h:
        New Item_func_sp for stored FUNCTIONs.
      sql/sp.cc:
        Close mysql.proc table earlier so recursive find_function calls work.
        Added temporary sp_function_exists() function for checking without parsing.
      sql/sp.h:
        Added temporary sp_function_exists() function for checking without parsing.
      sql/sp_head.cc:
        New code for executing a FUNCTION. (And reworked some of the old code in the process.)
      sql/sp_head.h:
        New code for executing a FUNCTION.
      sql/sp_rcontext.h:
        Added result slot for FUNCTIONs.
      sql/sql_lex.cc:
        Added check for stored FUNCTION, analogous to UDFs.
      sql/sql_parse.cc:
        sp_head::execute was renamed into execute_procedure.
      sql/sql_yacc.yy:
        Added parsing of stored FUNCTION invocation and code generation for RETURN statement.
      76b037dc
  2. 16 Feb, 2003 1 commit
    • unknown's avatar
      fixed excluding st_select_lex from global select list · 77f5c5a7
      unknown authored
      fixed destroing not well constructed analize object
      fixed wrong detection of unions in derived tables
      
      
      sql/sql_analyse.h:
        fixed destroing not well constructed analize object
      sql/sql_derived.cc:
        fixed wrong detection of unions in derived tables
      sql/sql_lex.cc:
        fixed excluding st_select_lex from global select list
      77f5c5a7
  3. 12 Feb, 2003 1 commit
    • unknown's avatar
      Fixed a lot of wrong memory references as reported by valgrind · fcb61f59
      unknown authored
      Portability fixes
      Added new client function: mysql_get_server_version()
      New server help code (From Victor Vagin)
      Fixed wrong usage of binary()
      Disabled RTREE usage for now.
      
      
      
      BitKeeper/etc/ignore:
        added scripts/fill_help_tables.sql
      client/mysql.cc:
        Some fixes when using 'help'
      cmd-line-utils/libedit/compat.h:
        Portability fix
      cmd-line-utils/libedit/fgetln.c:
        Portability fix
      include/mysql.h:
        Added new client function: mysql_get_server_version()
      libmysql/libmysql.c:
        Added new client function: mysql_get_server_version()
      libmysqld/libmysqld.c:
        Fixed prototype
      mysql-test/install_test_db.sh:
        Added creation of help tables
      mysql-test/r/connect.result:
        Added help tables
      mysql-test/r/myisam.result:
        Test of RTREE index
      mysql-test/r/type_ranges.result:
        updated results
      mysql-test/t/myisam.test:
        Test of RTREE index
      mysql-test/t/type_ranges.test:
        Updated test
      mysys/charset.c:
        Indentation change
      mysys/my_symlink.c:
        Removed compiler warning
      scripts/fill_help_tables.sh:
        Update for new help tables
      sql/field.cc:
        Indentation changes
      sql/filesort.cc:
        Optimized character set usage
      sql/item_cmpfunc.cc:
        Fix wrong usage of binary()
      sql/item_cmpfunc.h:
        Fix wrong usage of binary()
      sql/item_func.cc:
        Fix wrong usage of binary()
      sql/item_func.h:
        Fix wrong usage of binary()
      sql/item_strfunc.cc:
        Fix wrong usage of binary()
      sql/item_sum.cc:
        Fix wrong usage of binary()
      sql/item_sum.h:
        Fix wrong usage of binary()
      sql/key.cc:
        Indentation change
      sql/lex.h:
        HELP -> HELP_SYM
      sql/mysql_priv.h:
        Make get_field() more general
      sql/password.c:
        Indentation change + variable initialisation moved
      sql/sql_acl.cc:
        Make get_field() more general
      sql/sql_base.cc:
        Added comments + assertion for double call to mysql_lock_tables
      sql/sql_cache.cc:
        Indentation changes
      sql/sql_class.h:
        Added need_strxnfrm to SORT_FIELD to be able to optimise character set handling in filesort
      sql/sql_derived.cc:
        Renamed variables
      sql/sql_help.cc:
        New help functions (from Victor Vagin)
      sql/sql_lex.cc:
        Removed variables that doesn't have to be initialized for each query
      sql/sql_lex.h:
        Removed not used variable (olap)
      sql/sql_parse.cc:
        Fixed (not fatal) access of unitialized memory
        Indentation / code cleanup
      sql/sql_prepare.cc:
        Indentaion cleanup
      sql/sql_table.cc:
        Disabled RTREE until 5.0
      sql/sql_udf.cc:
        Make get_field() more general
      sql/sql_yacc.yy:
        Removed access to uninitialized memory
        Always set offset_limit and select_limit when using LIMIT (removed warnings)
        Allow usage of 'help week'
      sql/table.cc:
        Make get_field() more general
        More comments
      sql/table.h:
        Fixded type of TABLE_LIST->derived
      sql/time.cc:
        Stricter date / datetime handling (to be able to handle timestamps with days and microseconds)
      strings/ctype-bin.c:
        Added cha
      fcb61f59
  4. 10 Feb, 2003 1 commit
    • unknown's avatar
      Move tmp_table_used to THD · 96273457
      unknown authored
      Optimize depending sub querys
      Remove valgrind warnings
      
      
      libmysqld/lib_sql.cc:
        Better way to reset errors
      mysql-test/mysql-test-run.sh:
        Remove wrong `
      mysql-test/r/subselect.result:
        Don't use table t1
      mysql-test/t/subselect.test:
        Don't use table t1
      sql/item.cc:
        Indentation fix
      sql/item.h:
        optimize depending sub querys
      sql/item_func.cc:
        Remove warning for uninitalized data
      sql/item_row.cc:
        Remove warning
      sql/item_strfunc.h:
        Fixed memory overrun
      sql/item_subselect.cc:
        Better debugging names
      sql/log_event.cc:
        Move tmp_table_used to THD
      sql/sql_base.cc:
        Move tmp_table_used to THD
      sql/sql_class.cc:
        Move tmp_table_used to THD
      sql/sql_class.h:
        Move tmp_table_used to THD
      sql/sql_lex.cc:
        Move tmp_table_used to THD
      sql/sql_lex.h:
        Move tmp_table_used to THD
      sql/sql_parse.cc:
        Move tmp_table_used to THD
      sql/sql_select.cc:
        optimize depending sub querys
      sql/sql_table.cc:
        Move tmp_table_used to THD
      96273457
  5. 28 Jan, 2003 1 commit
    • unknown's avatar
      fixed bugs in temporary tables in subselect implementation (SCRUM) · ca0d06d5
      unknown authored
      merging with switching on static tables optimization (SCRUM)
      fixed subselects with uncacheable results
      added test for fixed bugs from bugreports
      
      
      mysql-test/r/subselect.result:
        changes in subselect test after switching on static tables optimization
        fixed bug test added
        uncacheable subselects
      mysql-test/t/subselect.test:
        changes in subselect test after switching on static tables optimization
        fixed bug test added
        uncacheable subselects
      sql/item_create.cc:
        fixed subselects with uncacheable results
      sql/item_func.cc:
        fixed subselects with uncacheable results
      sql/item_subselect.cc:
        fixed subselects with uncacheable results
        clean up
      sql/item_subselect.h:
        fixed subselects with uncacheable results
      sql/sql_lex.cc:
        fixed subselects with uncacheable results
      sql/sql_lex.h:
        fixed subselects with uncacheable results
      sql/sql_select.cc:
        fixed bugs in temporary tables in subselect implementation
        fixed subselects with uncacheable results
      sql/sql_union.cc:
        fixed subselects with uncacheable results
      sql/sql_yacc.yy:
        fixed subselects with uncacheable results
      ca0d06d5
  6. 26 Jan, 2003 1 commit
    • unknown's avatar
      after merge fix of 577 task (SCRUM, pre commit to be able to merge with static... · a72ebebf
      unknown authored
      after merge fix of 577 task (SCRUM, pre commit to be able to merge with static tables optimization fix)
      fixed derived tables with subselect inside
      
      
      mysql-test/r/derived.result:
        test of subselects inside derived tables
      mysql-test/t/derived.test:
        test of subselects inside derived tables
      mysql-test/t/subselect.test:
        subselect test (not finished)
      sql/item.cc:
        after merge fix
      sql/item.h:
        after merge fix
      sql/item_cmpfunc.h:
        after merge fix
      sql/item_subselect.cc:
        after merge fix
      sql/item_sum.h:
        after merge fix
      sql/mysql_priv.h:
        fixed derived tables with subselect inside
      sql/sql_class.h:
        after merge fix
      sql/sql_derived.cc:
        fixed derived tables with subselect inside
      sql/sql_lex.cc:
        fixed derived tables with subselect inside
      sql/sql_lex.h:
        fixed derived tables with subselect inside
      sql/sql_parse.cc:
        fixed derived tables with subselect inside
        after merge fix
      sql/sql_prepare.cc:
        after merge fix
      sql/sql_select.cc:
        after merge fix
        fixed derived tables with subselect inside
      a72ebebf
  7. 25 Jan, 2003 1 commit
    • unknown's avatar
      fixed subselects with temporary tables (SCRUM) · b2354133
      unknown authored
      fixed memory leacks
      
      
      mysql-test/r/subselect.result:
        some changes in subselect tests
      mysql-test/t/subselect.test:
        some changes in subselect tests
      sql/item.cc:
        some item made copyable
        methods for creating copy of item list
        tmp_table_field() splited
      sql/item.h:
        some item made copyable
        methods for creating copy of item list
        tmp_table_field() splited
      sql/item_cmpfunc.cc:
        changed references creation
      sql/item_cmpfunc.h:
        changed references creation
      sql/item_func.cc:
        some item made copyable
        methods for creating copy of item list
        changed references creation
      sql/item_func.h:
        some item made copyable
        methods for creating copy of item list
        changed references creation
        tmp_table_field() splited
      sql/item_subselect.cc:
        changed references creation
      sql/item_sum.cc:
        some item made copyable
        methods for creating copy of item list
      sql/item_sum.h:
        some item made copyable
        methods for creating copy of item list
      sql/item_timefunc.h:
        tmp_table_field() splited
      sql/item_uniq.h:
        some item made copyable
        methods for creating copy of item list
      sql/mysql_priv.h:
        fixed subselects with temporary tables
      sql/sql_base.cc:
        fixed subselects with temporary tables
      sql/sql_class.h:
        fixed subselects with temporary tables
      sql/sql_delete.cc:
        fixed subselects with temporary tables
      sql/sql_derived.cc:
        fixed subselects with temporary tables
      sql/sql_do.cc:
        fixed subselects with temporary tables
      sql/sql_insert.cc:
        fixed subselects with temporary tables
      sql/sql_lex.cc:
        fixed subselects with temporary tables
      sql/sql_lex.h:
        fixed subselects with temporary tables
      sql/sql_list.h:
        fixed subselects with temporary tables
      sql/sql_load.cc:
        fixed subselects with temporary tables
      sql/sql_olap.cc:
        fixed subselects with temporary tables
      sql/sql_parse.cc:
        fixed subselects with temporary tables
      sql/sql_prepare.cc:
        fixed subselects with temporary tables
      sql/sql_select.cc:
        fixed subselects with temporary tables
      sql/sql_select.h:
        fixed subselects with temporary tables
      sql/sql_table.cc:
        fixed subselects with temporary tables
      sql/sql_union.cc:
        fixed subselects with temporary tables
      sql/sql_update.cc:
        fixed subselects with temporary tables
      sql/sql_yacc.yy:
        fixed subselects with temporary tables
      b2354133
  8. 21 Jan, 2003 1 commit
    • unknown's avatar
      Portability fixes (for windows) · 10e22c34
      unknown authored
      Some changes to the prepared statement protocol to make it easier to use and faster.
      
      
      Makefile.am:
        Fix to make dist to work with cmd-line-utils
      client/mysql.cc:
        Portability fixes
      client/mysqlbinlog.cc:
        Portabiliy fixes and remove usafe of FILE
      configure.in:
        Fix to make dist to work with cmd-line-utils
      heap/_check.c:
        Portability fixes
      include/config-win.h:
        Portability fixes
      include/m_ctype.h:
        Indentation cleanup
      include/my_list.h:
        Portability fixes
      include/mysql.h:
        Cleanup of BIND structure
      include/violite.h:
        Portability fixes
      innobase/dict/dict0dict.c:
        Portability fixes
      innobase/dict/dict0load.c:
        Portability fixes
      innobase/include/os0proc.h:
        Portability fixes (Heikki, please check)
      innobase/os/os0proc.c:
        Portability fixes (Heikki, please check)
      innobase/ut/ut0ut.c:
        Portability fixes
      isam/pack_isam.c:
        Portability fixes
      libmysql/libmysql.c:
        Portability fixes
        Remove obscure usage of the length parameter for prepared statements.
      libmysql/libmysql.def:
        Remove not existing functions
      libmysqld/lib_sql.cc:
        Remove compiler warning
      mysql-test/r/explain.result:
        Fix after merge
      mysql-test/r/join.result:
        Fix after merge
      mysys/my_once.c:
        Portability fix
      mysys/tree.c:
        Portability fixes
      sql/field.cc:
        Portability fixes
      sql/filesort.cc:
        move assert.h to mysql_priv.h
      sql/ha_berkeley.cc:
        move assert.h to mysql_priv.h
      sql/ha_innodb.cc:
        move assert.h to mysql_priv.h
      sql/item.cc:
        move assert.h to mysql_priv.h
        Fixed syntax error
      sql/item_cmpfunc.cc:
        move assert.h to mysql_priv.h
      sql/item_func.cc:
        move assert.h to mysql_priv.h
      sql/item_row.cc:
        move assert.h to mysql_priv.h
      sql/item_strfunc.cc:
        Portability fix
      sql/item_subselect.cc:
        Portability fix
      sql/item_sum.cc:
        move assert.h to mysql_priv.h
      sql/lex.h:
        Portability fix
      sql/lock.cc:
        move assert.h to mysql_priv.h
      sql/log.cc:
        move assert.h to mysql_priv.h
      sql/log_event.cc:
        Portability fix
      sql/mf_iocache.cc:
        move assert.h to mysql_priv.h
      sql/mysql_priv.h:
        move assert.h to mysql_priv.h
      sql/mysqld.cc:
        move assert.h to mysql_priv.h
      sql/opt_range.cc:
        move assert.h to mysql_priv.h
      sql/password.c:
        Portability fix
      sql/protocol.cc:
        move assert.h to mysql_priv.h
      sql/set_var.cc:
        Portability fix
      sql/slave.cc:
        move assert.h to mysql_priv.h
      sql/spatial.cc:
        Portability fix
      sql/sql_acl.cc:
        move assert.h to mysql_priv.h
      sql/sql_base.cc:
        move assert.h to mysql_priv.h
      sql/sql_cache.cc:
        move assert.h to mysql_priv.h
      sql/sql_class.cc:
        move assert.h to mysql_priv.h
      sql/sql_handler.cc:
        move assert.h to mysql_priv.h
      sql/sql_help.cc:
        Removed compiler warning
      sql/sql_lex.cc:
        Portability fix
      sql/sql_lex.h:
        Portability fix
      sql/sql_parse.cc:
        move assert.h to mysql_priv.h
      sql/sql_prepare.cc:
        move assert.h to mysql_priv.h
      sql/sql_repl.cc:
        move assert.h to mysql_priv.h
      sql/sql_select.cc:
        move assert.h to mysql_priv.h
      sql/sql_string.cc:
        Portability fix
      sql/sql_string.h:
        Portability fix
      sql/sql_table.cc:
        move assert.h to mysql_priv.h
      sql/sql_yacc.yy:
        Portability fix
        Remove not accessed code
      strings/ctype-bin.c:
        Portability fix
      strings/ctype-mb.c:
        Portability fix
      strings/ctype.c:
        Portability fix
      tests/client_test.c:
        A
      10e22c34
  9. 18 Jan, 2003 1 commit
  10. 17 Jan, 2003 1 commit
    • unknown's avatar
      Changed my_strntoxxx functions to clear error number on start · 4655f1d4
      unknown authored
      Allow one to change ANSI_QUOTES mode per thread and on the fly
      
      
      sql/field.cc:
        Use new my_strntoxxx functions where function clears errno.
        Change variable names to 'not_used' for variables that is not used in function
      sql/sql_base.cc:
        comment
      sql/sql_lex.cc:
        Allow one to change ANSI_QUOTES mode per thread and on the fly
      sql/sql_lex.h:
        Allow one to change ANSI_QUOTES mode per thread and on the fly
      strings/ctype-simple.c:
        Changed my_strntoxxx functions to clear error number on start
        Changed my_strtod() to correctly set return error number
      strings/ctype-utf8.c:
        Changed my_strntoxxx functions to clear error number on start
        Changed my_strtod() to correctly set return error number
      4655f1d4
  11. 16 Jan, 2003 1 commit
    • unknown's avatar
      Added support sql_mode, which can be used to produce various outputs · d08e02eb
      unknown authored
      of SHOW CREATE TABLE 'name'. Depending on the mode, the output can
      be compatible with various databases, including earlier versions of
      MySQL
      .
      
      
      sql/field.cc:
        Added support for sql_mode.
        
        Changed find_set() to be aware of possible error. If the argument
        contains a value that is not legal in the set, err_pos and err_len
        are set.
      sql/field.h:
        Added support for sql_mode.
        
        Changed find_set() to be aware of possible error. If the argument
        contains a value that is not legal in the set, err_pos and err_len
        are set.
      sql/item_func.cc:
        Added support for sql_mode.
      sql/mysql_priv.h:
        Some new sql modes.
      sql/mysqld.cc:
        Added support for sql mode, including some new modes.
      sql/set_var.cc:
        Added support for sql_mode.
        
        Added function that can be used to check values in a set.
      sql/set_var.h:
        Added support for sql_mode.
        
        Added function that can be used to check values in a set.
      sql/sql_class.cc:
        Removed previous usage of opt_sql_mode.
      sql/sql_class.h:
        Removed previous usage of opt_sql_mode.
      sql/sql_lex.cc:
        Changed previous version of sql_mode to the new noe.
      sql/sql_parse.cc:
        Changed previous version of sql_mode to the new noe.
      sql/sql_select.cc:
        Changed previous version of sql_mode to the new noe.
      sql/sql_show.cc:
        Added support for various sql_modes for printing CREATE TABLE.
      sql/sql_yacc.yy:
        Changed previous version of sql_mode to the new noe.
      d08e02eb
  12. 14 Jan, 2003 1 commit
    • unknown's avatar
      after merging fixing · 742de8f5
      unknown authored
      include/m_string.h:
        added include to va_list bicame known
      mysql-test/r/union.result:
        some changing in error message
      sql/sql_base.cc:
        error detection moved
      sql/sql_lex.cc:
        new flag to detect table name error
      sql/sql_lex.h:
        new flag to detect table name error
      sql/sql_yacc.yy:
        check possibility of using table name added
      742de8f5
  13. 09 Jan, 2003 2 commits
    • unknown's avatar
      Post merge fix · f7ff1cca
      unknown authored
      Allow empty key list in USE|IGNORE|FORCE INDEX()
      
      
      mysql-test/r/myisam.result:
        New explain format
      mysql-test/t/myisam.test:
        test of index()
      mysys/my_handler.c:
        Updated ha_key_cmp() to be as latest _mi_key_cmp() in 4.0
      sql/sql_lex.cc:
        Post merge fix
      sql/sql_lex.h:
        Post merge fix
      sql/sql_parse.cc:
        Post merge fix
      sql/sql_yacc.yy:
        Post merge fix for FORCE INDEX ()
        Allow empty key list in USE|IGNORE|FORCE INDEX()
      f7ff1cca
    • unknown's avatar
      Separating CHARSET and COLLATION terms · 6383a27b
      unknown authored
      mysql-test/r/alter_table.result:
        SHOW FIELDS and SHOW CREATE TABLE now displays collation
      mysql-test/r/create.result:
        SHOW FIELDS and SHOW CREATE TABLE now displays collation
      mysql-test/r/innodb.result:
        SHOW FIELDS and SHOW CREATE TABLE now displays collation
      mysql-test/r/isam.result:
        SHOW FIELDS and SHOW CREATE TABLE now displays collation
      mysql-test/r/select.result:
        SHOW FIELDS and SHOW CREATE TABLE now displays collation
      mysql-test/r/show_check.result:
        SHOW FIELDS and SHOW CREATE TABLE now displays collation
      mysql-test/r/type_blob.result:
        SHOW FIELDS and SHOW CREATE TABLE now displays collation
      mysql-test/r/type_float.result:
        SHOW FIELDS and SHOW CREATE TABLE now displays collation
      mysql-test/r/type_ranges.result:
        SHOW FIELDS and SHOW CREATE TABLE now displays collation
      sql/field.cc:
        In field type charset rather than collation name is displayed
      sql/sql_db.cc:
        COLLATE clause has been added into SHOW CREATE DATABASE
      sql/sql_lex.cc:
        Detect charset names rather than collation names
      sql/sql_show.cc:
        COLLATION field has been added into SHOW FIELDS
      sql/sql_yacc.yy:
        COLLATE syntax has been added in CREATE TABLE/DATABASE
      6383a27b
  14. 29 Dec, 2002 1 commit
  15. 27 Dec, 2002 1 commit
    • unknown's avatar
      postreview fix (SCRUM) · 3ab0ddc2
      unknown authored
      fixed layout
      
      
      sql/filesort.cc:
        fixed layout
      sql/gstream.cc:
        fixed layout
      sql/item.cc:
        postreview fix
      sql/item.h:
        postreview fix
      sql/item_cmpfunc.cc:
        postreview fix
      sql/item_cmpfunc.h:
        fixed layout
      sql/item_func.h:
        fixed layout
      sql/item_row.h:
        fixed layout
      sql/item_strfunc.cc:
        fixed layout
      sql/item_subselect.cc:
        postreview fix
      sql/item_subselect.h:
        postreview fix
      sql/nt_servc.cc:
        fixed layout
      sql/opt_range.cc:
        fixed layout
      sql/password.c:
        fixed layout
      sql/spatial.cc:
        fixed layout
      sql/sql_help.cc:
        fixed layout
      sql/sql_lex.cc:
        fixed layout
      sql/sql_olap.cc:
        fixed layout
      sql/sql_select.cc:
        fixed layout
      sql/sql_show.cc:
        fixed layout
      sql/sql_string.cc:
        fixed layout
      sql/sql_table.cc:
        fixed layout
      sql/stacktrace.c:
        fixed layout
      3ab0ddc2
  16. 24 Dec, 2002 1 commit
  17. 15 Dec, 2002 1 commit
    • unknown's avatar
      moved links initialization · fce29f66
      unknown authored
      mysql-test/r/delete.result:
        test of delete error
      mysql-test/t/delete.test:
        test of delete error
      fce29f66
  18. 12 Dec, 2002 1 commit
    • unknown's avatar
      derived tables with UNION's ... · 657b3112
      unknown authored
      Scrum task !!!!!
      
      
      mysql-test/r/analyse.result:
        reverting a fix
      mysql-test/r/derived.result:
        derived tables with UNION's ...
      mysql-test/t/analyse.test:
        reverting a fix
      mysql-test/t/derived.test:
        derived tables with UNION's ...
      sql/mysql_priv.h:
        derived tables with UNION's ...
      sql/sql_analyse.cc:
        reverting a fix
      sql/sql_derived.cc:
        derived tables with UNION's ...
      sql/sql_lex.cc:
        derived tables with UNION's ...
      sql/sql_select.cc:
        derived tables with UNION's ...
      sql/sql_union.cc:
        derived tables with UNION's ...
      657b3112
  19. 08 Dec, 2002 1 commit
    • unknown's avatar
      Simplistic, experimental framework for Stored Procedures (SPs). · 27de9ece
      unknown authored
      Implements creation and dropping of PROCEDUREs, IN, OUT, and INOUT parameters,
      single-statement procedures, rudimentary multi-statement (begin-end) prodedures
      (when the client can handle it), and local variables.
      Missing most of the embedded SQL language, all attributes, FUNCTIONs, error handling,
      reparses procedures at each call (no caching), etc, etc.
      Certainly buggy too, but procedures can actually be created and called....
      
      
      sql/Makefile.am:
        Added SP files.
      sql/item.cc:
        Added this*_item() methods for Item_splocal. (SP local variable)
      sql/item.h:
        Added this*_item() methods for SPs in Item, and the new Item_splocal
        class (SP local variable).
      sql/lex.h:
        Added new symbols for SPs. (Note: SPSET is temporary and will go away later.)
      sql/sql_class.cc:
        Initialize SP runtime context in THD.
      sql/sql_class.h:
        Add SP runtime context to THD.
      sql/sql_lex.cc:
        Init. buf pointer to beginning of command (needed by SPs).
        Also initialize SP head and parse time context.
      sql/sql_lex.h:
        New SQLCOM_ tags for SPs, and added pointer to beginning of command pointer and
        SP head and parse-time context to LEX.
      sql/sql_parse.cc:
        Added SQLCOM_CREATE_PROCEDURE, _CALL, _ALTER_PROCEDURE and _DROP_PROCEDURE cases.
        (Still rudimentary and lacking proper error handling...)
      sql/sql_yacc.yy:
        Lots and lots of additions for SPs...
        (Still even more missing, and no error messages...)
      27de9ece
  20. 06 Dec, 2002 1 commit
    • unknown's avatar
      After merge fixes · ae4323e0
      unknown authored
      Added THD to add_to_xxx_list() functions for faster parsing.
      
      
      heap/_check.c:
        After merge fix
      mysql-test/r/distinct.result:
        After merge fix
      mysql-test/r/multi_update.result:
        Make timestamp test portable
      mysql-test/t/multi_update.test:
        Make timestamp test portable
      sql/field.cc:
        After merge fix
      sql/item_sum.cc:
        After merge fix
      sql/log_event.cc:
        Remove compiler warning
      sql/mysql_priv.h:
        Added THD to add_to_list (Faster parsing)
      sql/sql_derived.cc:
        Fixed parameters to create_tmp_table()
      sql/sql_lex.cc:
        Added THD to add_to_list (Faster parsing)
      sql/sql_lex.h:
        Added THD to add_to_list (Faster parsing)
      sql/sql_parse.cc:
        Added THD to add_to_list (Faster parsing)
      sql/sql_select.cc:
        After merge fixes
        Fixed return values from JOIN::optimize()
        Replaced test_function_query with '!tables_list'
        Optimized arguments to create_tmp_table()
      sql/sql_select.h:
        Removed test_function_query variable
        Updated prototypes
      sql/sql_union.cc:
        Updated argument lists.
      sql/sql_update.cc:
        After merge fixes
      sql/sql_yacc.yy:
        Added THD to all add_xxx_to_list() functions
      sql/table.h:
        After merge fix
      ae4323e0
  21. 02 Dec, 2002 1 commit
    • unknown's avatar
      Fixed bug when creating keys in temporary HEAP tables. · 59dec1bc
      unknown authored
      (This caused the DISTINCT test to fail)
      Removed one inline as this caused compiler problems
      
      
      heap/hp_create.c:
        Comment
      heap/hp_update.c:
        Indentation cleanup
      heap/hp_write.c:
        Indentation cleanup
      mysql-test/mysql-test-run.sh:
        Better options for valgrind
      sql/item_sum.cc:
        Removed inline as this caused compiler problems with gcc 3.2
        (Was also non standard usage of inline)
      sql/item_sum.h:
        Removed inline as this caused compiler problems with gcc 3.2
      sql/sql_class.cc:
        Fixed reference to uninitialized value
      sql/sql_lex.cc:
        Indentation cleanup
      sql/sql_select.cc:
        Fixed bug when creating keys in temporary HEAP tables.
      59dec1bc
  22. 01 Dec, 2002 1 commit
  23. 30 Nov, 2002 1 commit
  24. 29 Nov, 2002 2 commits
    • unknown's avatar
      many bug fixes · 1b921a99
      unknown authored
      mysql-test/r/derived.result:
        test for a bug fix which caused a deadlock !
        Also test for a bug fix with using() on derived tables
      mysql-test/r/subselect.result:
        correcting previous changes caused by a bug ..
      mysql-test/t/derived.test:
        test for a bug fix which caused a deadlock !
        Also test for a bug fix with using() on derived tables
      mysql-test/t/subselect.test:
        corrections of previous changes caused by a bug ..
      sql/sql_base.cc:
        A for for a bug which caused a deadlock !
        Also fix for a bug with using() on derived tables
      sql/sql_derived.cc:
        code cleanup
      sql/sql_lex.cc:
        fix for deadlock
      1b921a99
    • unknown's avatar
      fixed error handling bug · 5b62dfcd
      unknown authored
      fixed naming bug
      fixed bug of subselect excluding
      
      
      mysql-test/r/subselect.result:
        test of error handling bug
        test of naming bug
        test bug of subselect excluding
      mysql-test/t/subselect.test:
        test of error handling bug
        test of naming bug
        test bug of subselect excluding
      sql/item_subselect.cc:
        fixed naming bug
        fixed error handling bug
      sql/sql_lex.cc:
        fixed subselect excluding bug
      5b62dfcd
  25. 28 Nov, 2002 1 commit
    • unknown's avatar
      fixed * without tables in IN bug · 6f80b711
      unknown authored
      fixed sunction-test select in IN bug
      fixed unions in subselect bug
      
      
      include/mysqld_error.h:
        new warning
      mysql-test/r/subselect.result:
        test of * without tables in IN
        test of sunction-test select in IN
        test of unions in subselect
      mysql-test/t/subselect.test:
        test of * without tables in IN
        test of sunction-test select in IN
        test of unions in subselect
      sql/item.cc:
        fixed * substitution without tables
      sql/item_subselect.cc:
        fixed subselect rewriting with function-test subselect
      sql/item_subselect.h:
        mechanism for subselect removing
      sql/share/czech/errmsg.txt:
        new warning
      sql/share/danish/errmsg.txt:
        new warning
      sql/share/dutch/errmsg.txt:
        new warning
      sql/share/english/errmsg.txt:
        new warning
      sql/share/estonian/errmsg.txt:
        new warning
      sql/share/french/errmsg.txt:
        new warning
      sql/share/german/errmsg.txt:
        new warning
      sql/share/greek/errmsg.txt:
        new warning
      sql/share/hungarian/errmsg.txt:
        new warning
      sql/share/italian/errmsg.txt:
        new warning
      sql/share/japanese/errmsg.txt:
        new warning
      sql/share/korean/errmsg.txt:
        new warning
      sql/share/norwegian-ny/errmsg.txt:
        new warning
      sql/share/norwegian/errmsg.txt:
        new warning
      sql/share/polish/errmsg.txt:
        new warning
      sql/share/portuguese/errmsg.txt:
        new warning
      sql/share/romanian/errmsg.txt:
        new warning
      sql/share/russian/errmsg.txt:
        new warning
      sql/share/serbian/errmsg.txt:
        new warning
      sql/share/slovak/errmsg.txt:
        new warning
      sql/share/spanish/errmsg.txt:
        new warning
      sql/share/swedish/errmsg.txt:
        new warning
      sql/share/ukrainian/errmsg.txt:
        new warning
      sql/sql_base.cc:
        fixed case on no name field in UNION subselect
      sql/sql_lex.cc:
        mechanisp of removing single subselect for optimisation purposes
      sql/sql_lex.h:
        mechanisp of removing single subselect for optimisation purposes
      sql/sql_parse.cc:
        error handling
      sql/sql_union.cc:
        fixed unions in subselect
      sql/sql_yacc.yy:
        fixed Lex->describe flag appearence
      6f80b711
  26. 25 Nov, 2002 1 commit
    • unknown's avatar
      Faster parsing of identifiers · 895e3dbb
      unknown authored
      Compatibility syntax: SERIAL, [PRIMARY] KEY and VALUE
      
      
      
      sql/sql_lex.cc:
        Faster handling of identifiers
      sql/sql_lex.h:
        Faster handling of identifiers
      sql/sql_yacc.yy:
        Added SERIAL (alias for bigint auto_increment)
        Make PRIMARY optional in field specification
        Make VALUE alias for VALUES
      895e3dbb
  27. 23 Nov, 2002 2 commits
    • unknown's avatar
      after merging fix (update SCRUM?) · b99dec07
      unknown authored
      mysql-test/t/subselect.test:
        after merging fix
      sql/sql_lex.cc:
        after merging fix
      sql/sql_update.cc:
        after merging fix
      sql/sql_yacc.yy:
        after merging fix
      b99dec07
    • unknown's avatar
      lock option in table list · b7bcb965
      unknown authored
      sql/sql_lex.cc:
        note about methods location
      b7bcb965
  28. 22 Nov, 2002 1 commit
    • unknown's avatar
      Moved safe_to_cache_query from thd to lex. · 0e9a75a4
      unknown authored
      This is required for prepared statements and stored procedures.
      
      
      BitKeeper/etc/ignore:
        Added bkpull.log bkpull.log.2 bkpull.log.3 build.log sql/safe_to_cache_query.txt to the ignore list
      sql/item_create.cc:
        Moved safe_to_cache_query from thd to lex.
      sql/item_func.cc:
        Moved safe_to_cache_query from thd to lex.
      sql/sql_cache.cc:
        Moved safe_to_cache_query from thd to lex.
        Note: Query_cache::is_cacheable() has both a thd and lex argument.
        We assumed that it's the lex->safe_to_cache_query we should test.
      sql/sql_class.cc:
        Moved safe_to_cache_query from thd to lex.
      sql/sql_class.h:
        Moved safe_to_cache_query from thd to lex.
      sql/sql_lex.cc:
        Moved safe_to_cache_query from thd to lex.
        We set it to 1 initially. It's then set to 0 in cases where
        it's know not to be safe. (Before this change, it was set to
        0 in thd, and then set to 1 before parsing.)
      sql/sql_lex.h:
        Moved safe_to_cache_query from thd to lex.
      sql/sql_parse.cc:
        Moved safe_to_cache_query from thd to lex.
        No point in setting it here now, it's set in lex_start() later.
      sql/sql_prepare.cc:
        Moved safe_to_cache_query from thd to lex.
        Must set it after lex_start() has been called.
      sql/sql_yacc.yy:
        Moved safe_to_cache_query from thd to lex.
      0e9a75a4
  29. 21 Nov, 2002 2 commits
    • unknown's avatar
      Fixes after merge with 4.0 · c58d9d9a
      unknown authored
      mysql-test/r/heap_btree.result:
        Updated results
      mysql-test/r/heap_hash.result:
        Updated results
      mysql-test/r/merge.result:
        Updated results
      mysql-test/r/rpl_log.result:
        Updated results
      mysql-test/r/select.result:
        Updated results
      mysql-test/r/subselect.result:
        Updated results
      sql/item_cmpfunc.h:
        Fix after merge
      sql/log_event.cc:
        Fix after merge
      sql/mysql_priv.h:
        Fix after merge
      sql/sql_acl.cc:
        Fix after merge
      sql/sql_class.cc:
        Fix after merge
      sql/sql_db.cc:
        Fix after merge
      sql/sql_delete.cc:
        Fix after merge
      sql/sql_lex.cc:
        Fix after merge
      sql/sql_lex.h:
        Fix after merge
      sql/sql_parse.cc:
        Fix after merge
      sql/sql_update.cc:
        Fix after merge
      sql/sql_yacc.yy:
        Fix after merge
      c58d9d9a
    • unknown's avatar
      Automatic conversion from CHAR(length) to BLOB when length > 255 · 2723dbdb
      unknown authored
      New operators MOD and DIV
      SELECT ... FROM DUAL
      TRUE = 1 and FALSE = 0
      
      
      include/mysqld_error.h:
        New warning message
      mysql-test/r/func_system.result:
        Added testing of new functions
      mysql-test/r/func_test.result:
        Added testing of new functions
      mysql-test/r/type_blob.result:
        Added testing of new functions
      mysql-test/t/func_system.test:
        Added testing of new functions
      mysql-test/t/func_test.test:
        Added testing of new functions
      mysql-test/t/type_blob.test:
        Added testing of new functions
      sql/item_func.cc:
        Added function DIV
      sql/item_func.h:
        Added function DIV
      sql/lex.h:
        New keywords
      sql/share/czech/errmsg.txt:
        New warning message
      sql/share/danish/errmsg.txt:
        New warning message
      sql/share/dutch/errmsg.txt:
        New warning message
      sql/share/english/errmsg.txt:
        New warning message
      sql/share/estonian/errmsg.txt:
        New warning message
      sql/share/french/errmsg.txt:
        New warning message
      sql/share/german/errmsg.txt:
        New warning message
      sql/share/greek/errmsg.txt:
        New warning message
      sql/share/hungarian/errmsg.txt:
        New warning message
      sql/share/italian/errmsg.txt:
        New warning message
      sql/share/japanese/errmsg.txt:
        New warning message
      sql/share/korean/errmsg.txt:
        New warning message
      sql/share/norwegian-ny/errmsg.txt:
        New warning message
      sql/share/norwegian/errmsg.txt:
        New warning message
      sql/share/polish/errmsg.txt:
        New warning message
      sql/share/portuguese/errmsg.txt:
        New warning message
      sql/share/romanian/errmsg.txt:
        New warning message
      sql/share/russian/errmsg.txt:
        New warning message
      sql/share/serbian/errmsg.txt:
        New warning message
      sql/share/slovak/errmsg.txt:
        New warning message
      sql/share/spanish/errmsg.txt:
        New warning message
      sql/share/swedish/errmsg.txt:
        New warning message
        Translated a lot of error messages
      sql/share/ukrainian/errmsg.txt:
        New warning message
      sql/sql_class.cc:
        Added support for warnings during parsing
      sql/sql_class.h:
        Added support for warnings during parsing
      sql/sql_error.cc:
        Added support for warnings during parsing
      sql/sql_lex.cc:
        Fixed comment
      sql/sql_parse.cc:
        Added automatic conversion from CHAR(length) to BLOB when length > 255
        Added support for BLOB(length)
      sql/sql_yacc.yy:
        New operators MOD and DIV
        SELECT ... FROM DUAL
        TRUE = 1 and FALSE = 0
      2723dbdb
  30. 15 Nov, 2002 1 commit
    • unknown's avatar
      basic row Items (SCRUM) · 3f742831
      unknown authored
      include/mysql_com.h:
        basic row Items
      include/mysqld_error.h:
        more wide error mening
      libmysqld/Makefile.am:
        basic row Items
      mysql-test/r/subselect.result:
        more wide error mening
      sql/Makefile.am:
        basic row Items
      sql/filesort.cc:
        basic row Items
      sql/item.cc:
        basic row Items
      sql/item.h:
        basic row Items
      sql/item_cmpfunc.cc:
        basic row Items
      sql/item_cmpfunc.h:
        basic row Items
      sql/item_func.cc:
        basic row Items
      sql/item_func.h:
        basic row Items
      sql/item_strfunc.cc:
        basic row Items
      sql/item_strfunc.h:
        basic row Items
      sql/item_subselect.cc:
        basic row Items
      sql/item_sum.cc:
        basic row Items
      sql/share/czech/errmsg.txt:
        more wide error mening
      sql/share/danish/errmsg.txt:
        more wide error mening
      sql/share/dutch/errmsg.txt:
        more wide error mening
      sql/share/english/errmsg.txt:
        more wide error mening
      sql/share/estonian/errmsg.txt:
        more wide error mening
      sql/share/french/errmsg.txt:
        more wide error mening
      sql/share/german/errmsg.txt:
        more wide error mening
      sql/share/greek/errmsg.txt:
        more wide error mening
      sql/share/hungarian/errmsg.txt:
        more wide error mening
      sql/share/italian/errmsg.txt:
        more wide error mening
      sql/share/japanese/errmsg.txt:
        more wide error mening
      sql/share/korean/errmsg.txt:
        more wide error mening
      sql/share/norwegian-ny/errmsg.txt:
        more wide error mening
      sql/share/norwegian/errmsg.txt:
        more wide error mening
      sql/share/polish/errmsg.txt:
        more wide error mening
      sql/share/portuguese/errmsg.txt:
        more wide error mening
      sql/share/romanian/errmsg.txt:
        more wide error mening
      sql/share/russian/errmsg.txt:
        more wide error mening
      sql/share/serbian/errmsg.txt:
        more wide error mening
      sql/share/slovak/errmsg.txt:
        more wide error mening
      sql/share/spanish/errmsg.txt:
        more wide error mening
      sql/share/swedish/errmsg.txt:
        more wide error mening
      sql/share/ukrainian/errmsg.txt:
        more wide error mening
      sql/sql_base.cc:
        fix_fields error handling
      sql/sql_lex.cc:
        basic row Items
      sql/sql_select.cc:
        basic row Items
      sql/sql_yacc.yy:
        basic row Items
      3f742831
  31. 09 Nov, 2002 1 commit
  32. 05 Nov, 2002 2 commits
  33. 04 Nov, 2002 1 commit
    • unknown's avatar
      moved similar code to function · 53a386ca
      unknown authored
      onversion with check
      
      
      sql/item.cc:
        removed similar code
      sql/item_sum.cc:
        conversion with check
      sql/sql_delete.cc:
        conversion with check
      sql/sql_derived.cc:
        style fix
      sql/sql_lex.cc:
        conversion with check
        moved similar code to function
      sql/sql_lex.h:
        conversion with check
        moved similar code to function
      sql/sql_parse.cc:
        conversion with check
      sql/sql_update.cc:
        conversion with check
      sql/sql_yacc.yy:
        conversion with check
      53a386ca
  34. 31 Oct, 2002 1 commit
    • unknown's avatar
      IN subselect with ORDER BY, HAVING & sum functions · ceb73645
      unknown authored
      mysql-test/r/subselect.result:
        IN subselect with ORDER BY, HAVING & sum functions test
      mysql-test/t/subselect.test:
        IN subselect with ORDER BY, HAVING & sum functions test
      sql/item.h:
        removed field, because parent class has same field
      ceb73645
  35. 30 Oct, 2002 1 commit
    • unknown's avatar
      removed SELECT_LEX_UNIT -> SELECT_LEX pointer conversion (SCRUM) · 0bb1e716
      unknown authored
      fixed some possible bugs
      
      
      sql/item.cc:
        removed SELECT_LEX_UNIT -> SELECT_LEX pointer conversion
      sql/item_subselect.cc:
        removed SELECT_LEX_UNIT -> SELECT_LEX pointer conversion
      sql/item_sum.cc:
        removed SELECT_LEX_UNIT -> SELECT_LEX pointer conversion
      sql/mysql_priv.h:
        removed SELECT_LEX_UNIT -> SELECT_LEX pointer conversion
      sql/sql_base.cc:
        removed SELECT_LEX_UNIT -> SELECT_LEX pointer conversion
      sql/sql_cache.cc:
        removed SELECT_LEX_UNIT -> SELECT_LEX pointer conversion
      sql/sql_delete.cc:
        removed SELECT_LEX_UNIT -> SELECT_LEX pointer conversion
      sql/sql_lex.cc:
        removed SELECT_LEX_UNIT -> SELECT_LEX pointer conversion
      sql/sql_lex.h:
        removed SELECT_LEX_UNIT -> SELECT_LEX pointer conversion
        fixed some possible bugs
      sql/sql_parse.cc:
        removed SELECT_LEX_UNIT -> SELECT_LEX pointer conversion
      sql/sql_prepare.cc:
        removed SELECT_LEX_UNIT -> SELECT_LEX pointer conversion
      sql/sql_repl.cc:
        removed SELECT_LEX_UNIT -> SELECT_LEX pointer conversion
      sql/sql_select.cc:
        removed SELECT_LEX_UNIT -> SELECT_LEX pointer conversion
      sql/sql_union.cc:
        removed SELECT_LEX_UNIT -> SELECT_LEX pointer conversion
      sql/sql_update.cc:
        removed SELECT_LEX_UNIT -> SELECT_LEX pointer conversion
      sql/sql_yacc.yy:
        removed SELECT_LEX_UNIT -> SELECT_LEX pointer conversion
      0bb1e716