An error occurred fetching the project authors.
  1. 27 Jan, 2004 1 commit
    • unknown's avatar
      bugfix to #1224 · 58e442ca
      unknown authored
      code slightly modified with Monty's suggestions
      
      
      libmysqld/lib_sql.cc:
        copying of pointers replaced with my_strdup()-s
      sql/sql_class.cc:
        this code should work anyway now
      58e442ca
  2. 07 Jan, 2004 1 commit
    • unknown's avatar
      Fix for 1224 (USER() CURRENT_USER() functions in embedded library) · 582886a3
      unknown authored
      Now we return user@host for USER() in embedded library
      CURRENT_USER returns empty string if library compiled with
      NO_EMBEDDED_ACCESS_CHECKS
      
      
      libmysqld/embedded_priv.h:
        function's declarations trimmed
      libmysqld/lib_sql.cc:
        user/host names handling added
      libmysqld/libmysqld.c:
        user/host names handling added
      sql/sql_class.cc:
        we shouldn't free user/host names in embedded library
      582886a3
  3. 19 Dec, 2003 2 commits
    • unknown's avatar
      Prepared_statement deployed instead of PREP_STMT. · 32c6b0d7
      unknown authored
      libmysqld/lib_sql.cc:
        Prepared_statement now resides entirely in sql_prepare.cc
        Embedded versions of setup_params_data moved to sql_prepare.cc
      sql/mysql_priv.h:
        removed declarations for non-existing functions
      sql/slave.cc:
        no thd->init_for_queries() any more
      sql/sql_class.cc:
        added Statement and Statement_map classes.
        PREP_STMT replaced with Statement (Prepared_statement) and moved to
        sql_prepare.cc
      sql/sql_class.h:
        added Statement and Statement_map classes.
        PREP_STMT replaced with Statement (Prepared_statement) and moved to
        sql_prepare.cc
      sql/sql_parse.cc:
        thd->init_for_queries() doesn't exist any more
        comment moved to proper place
      sql/sql_prepare.cc:
        PREP_STMT replaced with Prepared_statement
        minor code cleanups
      tests/client_test.c:
        Later in the test we rely on order of rows, which normally is not defined.
        My patch changes the order.
      32c6b0d7
    • unknown's avatar
      THD::lex now points to THD::main_lex like in 5.0 · 8d987f9e
      unknown authored
      All tests pass (client_test included)
      
      
      libmysqld/lib_sql.cc:
        THD::lex now points to THD::main_lex like in 5.0
      sql/filesort.cc:
        THD::lex now points to THD::main_lex like in 5.0
      sql/ha_innodb.cc:
        THD::lex now points to THD::main_lex like in 5.0
      sql/ha_myisam.cc:
        THD::lex now points to THD::main_lex like in 5.0
      sql/item.cc:
        THD::lex now points to THD::main_lex like in 5.0
      sql/item_cmpfunc.cc:
        THD::lex now points to THD::main_lex like in 5.0
      sql/item_create.cc:
        THD::lex now points to THD::main_lex like in 5.0
      sql/item_func.cc:
        THD::lex now points to THD::main_lex like in 5.0
      sql/item_subselect.cc:
        THD::lex now points to THD::main_lex like in 5.0
      sql/item_sum.cc:
        THD::lex now points to THD::main_lex like in 5.0
      sql/mysql_priv.h:
        THD::lex now points to THD::main_lex like in 5.0
      sql/mysqld.cc:
        THD::lex now points to THD::main_lex like in 5.0
      sql/protocol.cc:
        THD::lex now points to THD::main_lex like in 5.0
      sql/repl_failsafe.cc:
        THD::lex now points to THD::main_lex like in 5.0
      sql/slave.cc:
        THD::lex now points to THD::main_lex like in 5.0
      sql/sql_acl.cc:
        THD::lex now points to THD::main_lex like in 5.0
      sql/sql_base.cc:
        THD::lex now points to THD::main_lex like in 5.0
      sql/sql_cache.cc:
        THD::lex now points to THD::main_lex like in 5.0
      sql/sql_class.cc:
        THD::lex now points to THD::main_lex like in 5.0
      sql/sql_class.h:
        THD::lex now points to THD::main_lex like in 5.0
      sql/sql_delete.cc:
        THD::lex now points to THD::main_lex like in 5.0
      sql/sql_error.cc:
        THD::lex now points to THD::main_lex like in 5.0
      sql/sql_insert.cc:
        THD::lex now points to THD::main_lex like in 5.0
      sql/sql_lex.cc:
        THD::lex now points to THD::main_lex like in 5.0
      sql/sql_lex.h:
        THD::lex now points to THD::main_lex like in 5.0
      sql/sql_parse.cc:
        THD::lex now points to THD::main_lex like in 5.0
      sql/sql_prepare.cc:
        THD::lex now points to THD::main_lex like in 5.0
      sql/sql_repl.cc:
        THD::lex now points to THD::main_lex like in 5.0
      sql/sql_select.cc:
        THD::lex now points to THD::main_lex like in 5.0
      sql/sql_table.cc:
        THD::lex now points to THD::main_lex like in 5.0
      sql/sql_union.cc:
        THD::lex now points to THD::main_lex like in 5.0
      sql/sql_update.cc:
        THD::lex now points to THD::main_lex like in 5.0
      sql/sql_yacc.yy:
        THD::lex now points to THD::main_lex like in 5.0
      8d987f9e
  4. 18 Dec, 2003 1 commit
    • 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
  5. 16 Dec, 2003 1 commit
    • unknown's avatar
      Fixes for last pull · 4bdfe0fb
      unknown authored
      libmysqld/lib_sql.cc:
        Fixed compilation error in embedded library (from last pull)
      sql/field.cc:
        Safer timestamp year checking (as 1969 can be in timestamp)
      4bdfe0fb
  6. 12 Dec, 2003 2 commits
    • unknown's avatar
      Edited fix for #1224. · 429675f4
      unknown authored
      strcpy changed to strmake
      
      
      libmysqld/lib_sql.cc:
        strcpy to strmake
      429675f4
    • unknown's avatar
      Fix for #1224 in 4.0 · 86f62a54
      unknown authored
      we didn't specify thd->priv_host properly
      
      
      libmysqld/lib_sql.cc:
        Specifying of thd->priv_host added
      86f62a54
  7. 08 Dec, 2003 1 commit
    • unknown's avatar
      Portability fixes for Windows · e505696f
      unknown authored
      VC++Files/client/mysqlclient.dsp:
        Update for windows
      VC++Files/libmysql/libmysql.dsp:
        Update for windows
      VC++Files/strings/strings.dsp:
        Update for windows
      libmysqld/lib_sql.cc:
        Update for windows
      scripts/make_win_src_distribution.sh:
        Update for windows
      scripts/mysql_install_db.sh:
        Update for windows
      sql/mysqld.cc:
        Remove not used variable
      sql/set_var.cc:
        Indentation cleanups
      sql/share/czech/errmsg.txt:
        Fixed wrong delimiters
      sql/share/danish/errmsg.txt:
        Fixed wrong delimiters
      sql/share/dutch/errmsg.txt:
        Fixed wrong delimiters
      sql/share/english/errmsg.txt:
        Fixed wrong delimiters
      sql/share/estonian/errmsg.txt:
        Fixed wrong delimiters
      sql/share/french/errmsg.txt:
        Fixed wrong delimiters
      sql/share/greek/errmsg.txt:
        Fixed wrong delimiters
      sql/share/hungarian/errmsg.txt:
        Fixed wrong delimiters
      sql/share/italian/errmsg.txt:
        Fixed wrong delimiters
      sql/share/japanese/errmsg.txt:
        Fixed wrong delimiters
      sql/share/korean/errmsg.txt:
        Fixed wrong delimiters
      sql/share/norwegian-ny/errmsg.txt:
        Fixed wrong delimiters
      sql/share/norwegian/errmsg.txt:
        Fixed wrong delimiters
      sql/share/polish/errmsg.txt:
        Fixed wrong delimiters
      sql/share/portuguese/errmsg.txt:
        Fixed wrong delimiters
      sql/share/romanian/errmsg.txt:
        Fixed wrong delimiters
      sql/share/russian/errmsg.txt:
        Fixed wrong delimiters
      sql/share/serbian/errmsg.txt:
        Fixed wrong delimiters
      sql/share/slovak/errmsg.txt:
        Fixed wrong delimiters
      sql/share/spanish/errmsg.txt:
        Fixed wrong delimiters
      sql/share/swedish/errmsg.txt:
        Fixed wrong delimiters
      sql/share/ukrainian/errmsg.txt:
        Fixed wrong delimiters
      sql/sql_acl.cc:
        Removed compiler warnings
      strings/ctype-big5.c:
        Removed compiler warnings (VC++)
      strings/ctype-euc_kr.c:
        Removed compiler warnings (VC++)
      strings/ctype-gb2312.c:
        Removed compiler warnings (VC++)
      strings/ctype-gbk.c:
        Removed compiler warnings (VC++)
      strings/ctype-sjis.c:
        Removed compiler warnings (VC++)
      strings/ctype-ucs2.c:
        Removed compiler warnings (VC++)
      strings/ctype-ujis.c:
        Removed compiler warnings (VC++)
      e505696f
  8. 01 Dec, 2003 1 commit
    • unknown's avatar
      SCRUM · 5d90d940
      unknown authored
      WL#1246 (Query cache in embedded library)
      
      
      libmysqld/Makefile.am:
        New files added to the project
      libmysqld/lib_sql.cc:
        added initialization of 'newborn' fields:
        catalog, catalog_length, def_length
      sql/sql_cache.cc:
        Code added to provide query-cache in embedded library
        query_cache_insert isn't called during the query execution
        in embedded library. So we call it in query_cache_end_of_result.
        Parameter of query_cache_end_of_result changed to get access to
        the recordset
      sql/sql_cache.h:
        function's parameter changed
      sql/sql_parse.cc:
        we don't need these anymore
      5d90d940
  9. 21 Oct, 2003 1 commit
    • unknown's avatar
      Fix for Windows bug reported throuhg Miguel · 8d94e500
      unknown authored
      libmysqld/lib_sql.cc:
        This code seems to be superfluous
      sql/derror.cc:
        in embedded server these functions should return the sign of the error
        instead of halting the program
      sql/init.cc:
        my_abort_hook left unchanged
      sql/mysql_priv.h:
        declaration of init_errmessage changed
        unireg_abort was replaced with DBUG_RETURN for embedded server
      sql/mysqld.cc:
        these functions don't work in embedded server thus #ifdef-ed
      8d94e500
  10. 16 Oct, 2003 1 commit
    • unknown's avatar
      Safety fix to detect multiple calls to my_thread_end() · 4f936a69
      unknown authored
      Portability fix (For Mac OS X)
      
      
      configure.in:
        Added detection of malloc / sys/malloc
      include/my_pthread.h:
        Safety fix to detect multiple calls to my_thread_end()
      libmysqld/lib_sql.cc:
        Remove duplicate call to my_thread_end()
      mysys/charset.c:
        Cleanup indentation
        Remove some short variable names
      mysys/my_thr_init.c:
        Safety fix to detect multiple calls to my_thread_end()
      sql/sql_test.cc:
        Portability fix (For Mac OS X)
      4f936a69
  11. 06 Oct, 2003 4 commits
    • unknown's avatar
      Fix for #1447 · 6fc8b48c
      unknown authored
      libmysqld/lib_sql.cc:
        Check for unfetched rows added
      6fc8b48c
    • unknown's avatar
      Fix for #1488 · c479f5d3
      unknown authored
      libmysqld/lib_sql.cc:
        net->sqlstate should be initialized here
      c479f5d3
    • unknown's avatar
      Fix for #1487 · f9ce2f4b
      unknown authored
      libmysqld/lib_sql.cc:
        arg_parameters now are stored in these THD members
      sql/sql_class.h:
        members to store query arguments
      sql/sql_prepare.cc:
        query arguments retrieval added for embedded case
        code not necessary in embedded server #ifdefed
      f9ce2f4b
    • unknown's avatar
      Fix for #1470 · 5218a0cd
      unknown authored
      libmysqld/lib_sql.cc:
        check for error
      sql/sql_prepare.cc:
        set success mark here
      5218a0cd
  12. 04 Oct, 2003 1 commit
    • unknown's avatar
      Fix for bugs #1437, #1446 · 759aabf7
      unknown authored
      include/mysql.h:
        read_statistic added to virtual methods
      libmysql/client_settings.h:
        interface for cli_read_statistic added
      libmysql/libmysql.c:
        read_statistic and mysql_stat code changes
      libmysqld/lib_sql.cc:
        emb_read_statistic implemented
        server_version initialized
      sql-common/client.c:
        cli_read_statistic added to the table
      sql/sql_parse.cc:
        storage of result of COM_STATISTIC changed in embedded library
      759aabf7
  13. 01 Oct, 2003 1 commit
    • unknown's avatar
      Fix for #1430 · e50b19a0
      unknown authored
      there was an error about sendind prepared parameters to the server
      
      
      libmysqld/lib_sql.cc:
        parameter's length added as a parameter
      sql/ha_berkeley.cc:
        these lines sometimes crashes in embedded library
        so i #ifdef-ed it
      sql/item.h:
        add the data_len parameter in the embedded case
      sql/sql_prepare.cc:
        i added macroses to make headers of store_param_xxx functions
        they have different number of parameters in standalone an embedded servers
        also get_param_length now is implemented differently in embedded server
      e50b19a0
  14. 29 Sep, 2003 3 commits
    • unknown's avatar
      fix for #1344 · 6fbd3da5
      unknown authored
      handling of init-file option added to embedded library
      main problem was killing of output (resulting recordsets etc)
      i added checks for empty output in Protocol:: methods
      better solution could be special Protocol_nul class to redirect
      results to nowhere
      
      
      libmysqld/lib_sql.cc:
        code was added to call read_init_file
        Protocol methods now can support output to nowhere
      sql/mysqld.cc:
        bootstrap function extended to work in embedded library
      sql/sql_parse.cc:
        handle_bootstrap modified to work in embedded library
      6fbd3da5
    • unknown's avatar
      bugfix for #1375 · 5c08e1c1
      unknown authored
      libmysqld/lib_sql.cc:
        some programs check mysql_error for empty string
      sql/log.cc:
        in embedded library these members can be NULL
      5c08e1c1
    • unknown's avatar
      SCRUM · 15779a96
      unknown authored
      embedded library
      some fixes - cleanup procedure changed for embedded library - deletion of
      embedded mysql->thd
      
      
      include/mysql.h:
        free_embedded_thd added to the list of virtual methods
      libmysqld/embedded_priv.h:
        function deleted
      libmysqld/lib_sql.cc:
        function moved upper in file
      sql-common/client.c:
        call of free_embedded_thd added
      15779a96
  15. 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
  16. 25 Sep, 2003 1 commit
    • unknown's avatar
      Bug fixed · e81d45c1
      unknown authored
      null_string wasn't known in libmysqld/lib_sql.cc, that caused compiler's error
      i put the declaration of the null_string in mysql_priv.h and renamed it
      to my_null_string to reduce the probability of name's intersections
      
      
      libmysqld/lib_sql.cc:
        null_string -> my_null_string
      sql/mysql_priv.h:
        my_null_string was made known
      sql/sql_prepare.cc:
        null_string -> my_null_string
      e81d45c1
  17. 19 Sep, 2003 2 commits
    • unknown's avatar
      SCRUM · 6e922478
      unknown authored
      embedded library
      missed memory freeing added
      
      
      libmysqld/embedded_priv.h:
        declaration added
      libmysqld/lib_sql.cc:
        implementation added
      libmysqld/libmysqld.c:
        mysql->thd releasing
      6e922478
    • unknown's avatar
      SCRUM · 83e8881a
      unknown authored
      prepared statements in embedded library.
      some fixes after testing
      
      
      include/mysql.h:
        virtual method added
      libmysql/client_settings.h:
        declaration added
      libmysql/libmysql.c:
        implementation added
        mysql_fetch changed to work in both libraries
      libmysqld/lib_sql.cc:
        implementation added
      sql-common/client.c:
        added items in methods table
      sql/client_settings.h:
        decided to remove such defines - i placed single #ifdef in client.c
      83e8881a
  18. 18 Sep, 2003 2 commits
    • unknown's avatar
      SCRUM · 4c638048
      unknown authored
      embedded library
      some dirty places cleaned:
      
      uint removed from mysql.h as Miguel suggested
      empty_string renamed as my_empty_string to get rid of name's intersections
      using embedded library
      
      
      include/mysql.h:
        uint -> unsigned int
      include/mysql_com.h:
        this caused warnings when not in expression
      libmysqld/lib_sql.cc:
        uint -> unsigned int
      sql-common/client.c:
        uint -> unsigned int
      sql/item_strfunc.cc:
        empty_string -> my_empty_string
      sql/mysql_priv.h:
        empty_string -> my_empty_string
      sql/set_var.cc:
        empty_string -> my_empty_string
      sql/sql_class.cc:
        empty_string -> my_empty_string
      sql/sql_prepare.cc:
        net_flush ifdef-ed
      4c638048
    • 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
  19. 17 Sep, 2003 2 commits
    • 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
      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
  20. 16 Sep, 2003 1 commit
    • 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
  21. 12 Sep, 2003 1 commit
    • unknown's avatar
      Monty's merge bug fixed · 11930efb
      unknown authored
      libmysqld/lib_sql.cc:
        these definitions moved to be after my_bool declaration
      11930efb
  22. 11 Sep, 2003 1 commit
    • unknown's avatar
      SCRUM · d6f15e9d
      unknown authored
      embedded&client library
      some fixes: zero at the end of the data added
      mysql_list_fields became 'virtual'
      
      
      include/mysql.h:
        mysql_list_fields became 'virtual'
      libmysql/client_settings.h:
        in client library we need proper implementation for list_fields
      libmysql/libmysql.c:
        implementation for remote server
      libmysqld/lib_sql.cc:
        we still need zero at the end of the data in client (see mysql.cc).
        I feel it should be changed
      libmysqld/libmysqld.c:
        implementation for embedded server
      sql-common/client.c:
        cli_list_fields member set for client library
      sql/client_settings.h:
        we don't need mysql_list_fields in mini_client code
      d6f15e9d
  23. 10 Sep, 2003 2 commits
    • unknown's avatar
      SCRUM: embedde library · 01397f5d
      unknown authored
      Minor fixes
      
      
      libmysqld/lib_sql.cc:
        Comment added
      libmysqld/libmysqld.c:
        this part of code should be moved under if (mysql)
      01397f5d
    • unknown's avatar
      SCRUM: embedded library · 12e063b5
      unknown authored
      mysql_fetch_length fixed for embedded library. Now data length is stored
      before the data. Pointers in row still points to the data so you have to
      get *(uint*)(data_ptr - sizeof(uint)) to get data length
      
      
      libmysqld/lib_sql.cc:
        bug fixed - user didn't get error description
        Protocol::net_store_data changed to store data length before the data
      libmysqld/libmysqld.c:
        emb_fetch_length changed to retrive data length stored before the data
      12e063b5
  24. 08 Sep, 2003 3 commits
    • unknown's avatar
      fix for #1219 · b036ffec
      unknown authored
      libmysqld/lib_sql.cc:
        we need ER() macrodefinition from errmsg.h
      b036ffec
    • unknown's avatar
      fix for #1210 · d0f9e73a
      unknown authored
      include/errmsg.h:
        Error code added
      libmysql/errmsg.c:
        Error message added
      libmysqld/lib_sql.cc:
        static inited variable changed to global server_inited
      libmysqld/libmysqld.c:
        check for mysql_server_init execution added
      d0f9e73a
    • unknown's avatar
      Fix for #1210 · 2a5b413a
      unknown authored
      i fixed this in 4.1 in slightly different way
      
      
      libmysqld/lib_sql.cc:
        Initialization's flag was made global
      libmysqld/libmysqld.c:
        Check for mysql_server_init call added
      2a5b413a
  25. 06 Sep, 2003 1 commit
    • unknown's avatar
      Fix for LOAD DATA to work with embedded library · 1496610d
      unknown authored
      libmysqld/lib_sql.cc:
        There's now one common SCRAMBLE_LENGTH
      sql/sql_load.cc:
        mysql_load fixed to work with embedded library
      sql/sql_parse.cc:
        LOAD DATA enabled for embedded library
      1496610d
  26. 28 Aug, 2003 1 commit
    • unknown's avatar
      SCRUM: · 36636e82
      unknown authored
      Fixed some mess with STDCALL in function's declarations
      
      
      include/mysql.h:
        That definitions are more correct
      libmysqld/lib_sql.cc:
        should be declared as STDCALL
      libmysqld/libmysqld.c:
        should be declared as STDCALL
      sql-common/client.c:
        should be declared as STDCALL
      36636e82
  27. 23 Jul, 2003 1 commit
    • unknown's avatar
      SCRUM - adding client into embedded server · 41e77ddf
      unknown authored
      error handling fixed
      fetch_lengths made to work differently in embedded and client cases
      
      
      include/mysql.h:
        removed 'embedded' error containers - they're unnecessary now
        added declarations for fetch_lengths to be 'virtual'
      include/sql_common.h:
        fetch_lengths declaration removed
      libmysql/libmysql.c:
        implementations for fetch_lengths to be 'virtual' added
      libmysqld/lib_sql.cc:
        error informations now is moved from thd->net to mysql-net
      libmysqld/libmysqld.c:
        error data is in mysql->net now
      sql-common/client.c:
        we have to return old fetch_lengths implementation for 'client' case
      sql/protocol.cc:
        handling of sqlstate for embedded library added
      41e77ddf