An error occurred fetching the project authors.
  1. 06 May, 2004 1 commit
  2. 04 May, 2004 1 commit
    • unknown's avatar
      Fix to handle unsigned data in prepared statements (Bug #3447) · 030587a7
      unknown authored
      Fixed security problem that password was temporarly reset when someone changed GRANT for a user. (Bug #3404)
      Fixed problem with PROCEDURE analyse() and impossible WHERE (Bug #2238)
      Don't auto-repair tables in mysqlcheck if table type doesn't support 'check' command.
      
      
      Docs/mysqld_error.txt:
        Updated error values
      client/mysqlcheck.c:
        Don't cause auto-repair on 'note' (Tables that doesn't support 'check')
      libmysql/libmysql.c:
        Fix to handle unsigned data in prepared statements (Bug #3447)
      mysql-test/r/analyse.result:
        Test of analyze + impossible where (Bug #2238)
      mysql-test/r/bdb.result:
        Update results
      mysql-test/r/ctype_ujis.result:
        Update results
      mysql-test/r/isam.result:
        Update results
      mysql-test/r/repair.result:
        Update results
      mysql-test/t/analyse.test:
        Test of analyze + impossible where (Bug #2238)
      mysql-test/t/ctype_ujis.test:
        Added test for LIKE (Bug #3438)
      sql/sql_acl.cc:
        Fixed security problem that password was temporarly reset when someone changed GRANT for a user. (Bug #3404)
      sql/sql_select.cc:
        Fixed problem with PROCEDURE analyse() and impossible WHERE (Bug #2238)
      sql/sql_table.cc:
        Changed 'error' to 'note' when table doesn't support admin command.
      sql/sql_update.cc:
        Indentaion cleanup
      tests/client_test.c:
        Added test for handling unsigned/signed strings with prepared statements
      030587a7
  3. 30 Apr, 2004 2 commits
    • unknown's avatar
      Only calculate MYSQL_FIELD->max_length if mysql_stmt_attr_set(...,... · 7bf15f4b
      unknown authored
      Only calculate MYSQL_FIELD->max_length if mysql_stmt_attr_set(..., STMT_ATTR_UPDATE_MAX_LENGTH) is done.
      
      
      tests/client_test.c:
        Test mysql_stmt_attr_set(...STMT_ATTR_UPDATE_MAX_LENGTH)
      7bf15f4b
    • unknown's avatar
      Update 'MYSQL_FIELD->max_length' on mysql_stmt_store_result() (Bug #1647) · 15c2bb61
      unknown authored
      Added checking of cut read lines in bootstrap thread (Bug #2874)
      
      
      include/mysql.h:
        Added length to MYSQL_ROWS to enable sanity checking of packets
        Update 'MYSQL_FIELD->max_length' on mysql_stmt_store_result()
      libmysql/libmysql.c:
        Update 'MYSQL_FIELD->max_length' on mysql_stmt_store_result() (Bug #1647)
      scripts/fill_help_tables.sh:
        Added checking of maximum length of line in output (Bug #2874)
      scripts/mysql_install_db.sh:
        Added error message if help tables couldn't be done (Bug #2874)
      sql/sql_parse.cc:
        Added checking of cut read lines in bootstrap thread (Bug #2874)
      tests/client_test.c:
        Added --debug
        Changed some strange define names
        Less output
        Added testing of max_length for prepared statements
      15c2bb61
  4. 29 Apr, 2004 2 commits
    • unknown's avatar
      Fix for Bug#3035 "Prepared statement integer inserts": now unsigned · d5237fd0
      unknown authored
      flag is sent to server with placeholder types.
      There were no need to extend the protocol as one additional byte
      was reserved for placeholder code, when placeholder code is in range 0-255.
      So this byte is now used for flags. Post-review fixes added.
      
      
      include/config-win.h:
        added floaststore implementation
      include/my_global.h:
        added floatstore implementation
      include/mysql.h:
        Bug#3035:
        added 'is_unsigned' member
        binary_data wasn't used, removed
        null_field wasn't necessary, removed
      include/mysql_com.h:
        Unused defines were removed.
      libmysql/libmysql.c:
        Function store_param_type was removed - too much for a function, especially
        with bug in it.
        New implementation is inline and takes into account signedness of 
        placeholder.
        Fixed store functions to not perform double network-host order conversion
        on high-byte-first systems (should also fix Bug#3578 "Prepared statement 
        integer conversions work wrong in 64-bit Power Mac G5 CPUs").
        null_field removed.
      sql/sql_prepare.cc:
        Placeholder sign is taken into account when reading data from network.
      tests/client_test.c:
        Test for BUG#3035 added: insert and retrieve minimum and maximum of all
        integer types.
      d5237fd0
    • unknown's avatar
      Implementation of mysql_stmt_attr_get and mysql_stmt_attr_set · e73e26f3
      unknown authored
      requested by Monty for Bug#1647 (No way to determine what size 
      blob/clob is being returned into bound buffer)
      
      
      include/mysql.h:
        Implementation of mysql_stmt_attr_get and mysql_stmt_attr_set 
        requested by Monty for Bug#1647.
      libmysql/libmysql.c:
        Implementation of mysql_stmt_attr_get and mysql_stmt_attr_set 
        requested by Monty for Bug#1647.
      libmysql/libmysql.def:
        Windows .defs added for new API calls
      e73e26f3
  5. 28 Apr, 2004 1 commit
    • unknown's avatar
      Allow one to send empty strings with mysql_stmt_send_long_data() · ae629fff
      unknown authored
      mysql_stmt_reset() now resets param->long_data_used
      Abort if --defaults-file=path-name uses a non-existing file (Bug #3413)
      Fixed problem with symlink test (bug in 4.1.2)
      
      
      libmysql/libmysql.c:
        Allow one to send empty strings with mysql_stmt_send_long_data()
        mysql_stmt_reset() now resets param->long_data_used
      mysys/default.c:
        Abort if --defaults-file=path-name uses a non-existing file (Bug #3413)
      sql/unireg.cc:
        Fixed problem with symlink test:  .frm table was not properly deleted if handler create failed
      ae629fff
  6. 30 Mar, 2004 1 commit
    • unknown's avatar
      Stubs for types/names of placeholders, cursor flags and array execution count · bc5365b4
      unknown authored
      implemented in the client library and server.
      Warning: this makes the new client library and server incompatible with all 
      previous versions and 5.0.
      
      
      libmysql/libmysql.c:
        Make client library compatible with future extensions: types of placeholders, 
         names of named parameters, cursors and array execution.
      sql/sql_prepare.cc:
        Alpha server side support for future extensions: types of placeholders and names of
        named parameters are sent to client (virtually), cursor flags and execution
        count received in COM_EXECUTE packet are ignored.
      bc5365b4
  7. 28 Mar, 2004 1 commit
    • unknown's avatar
      Simplification: MYSQL_RES *result replaced with MYSQL_DATA result; · 7e5cd910
      unknown authored
      No need to check for result existence any more, store_result functions
      now are shorter.
      cli_read_binary_rows rewritten to handle MYSQL_DATA directly.
      
      
      include/mysql.h:
        MYSQL_RES * pointer replaced with MYSQL_DATA: it saves us at least 2 mallocs
        per store_result and simplifies stored result handling.
        Plus it's done with cursor fetch in mind: cursor fetch will use this
        structure to buffer fetched rows.
      libmysql/client_settings.h:
        signature of cli_read_binary_rows changed
      libmysql/libmysql.c:
        MYSQL_DATA is now used to handle result.
        cli_read_binary_rows rewritten to use MYSQL_DATA directly.
      libmysql/libmysql.def:
        declarations of new calls in the library
      libmysqld/lib_sql.cc:
        MYSQL_DATA is now used to handle result.
        cli_read_binary_rows rewritten to use MYSQL_DATA directly.
      7e5cd910
  8. 26 Mar, 2004 1 commit
  9. 25 Mar, 2004 1 commit
    • unknown's avatar
      Cleanups & safety fixes · 054d2de4
      unknown authored
      include/mysql.h:
        cleanup of load data infile patch
      libmysql/libmysql.c:
        cleanup of load data infile patch
      myisam/mi_search.c:
        Added missing assert.h
      mysql-test/r/func_time.result:
        Make test more secure
      mysql-test/t/func_time.test:
        Make test more secure
      sql/item.cc:
        restore to use str_value in item::save_in_field
      sql/item.h:
        Simple cleanup
      sql/item_cmpfunc.cc:
        Safety fix
      sql/item_cmpfunc.h:
        Simple optimization
      sql/item_func.cc:
        Updated comment
      sql/sql_base.cc:
        Simple optimization
      sql/sql_select.cc:
        Simple optimization
      sql/sql_union.cc:
        safey fixes
      054d2de4
  10. 23 Mar, 2004 1 commit
  11. 17 Mar, 2004 1 commit
    • unknown's avatar
      WL #1510 "Implement support for "commercial" binaries on handshake", · c6a05996
      unknown authored
      client library:
      - implemented 'check_license' function
      
      
      include/errmsg.h:
        WL #1510: new error code
      include/mysql_version.h.in:
        WL #1510: fallback define for LICENSE
      libmysql/errmsg.c:
        WL #1510: error message to print in case when client and server license 
        mismatch.
      libmysql/libmysql.c:
        WL#1510: implementation of 'check_license' function
      sql/set_var.cc:
        removed unused variable 'license'
      c6a05996
  12. 15 Mar, 2004 1 commit
    • unknown's avatar
      Intermediate commit of client library (cleanups + fixes of 3 items from · 321422c8
      unknown authored
      flaws list)
      TODO: 
       * verify that no sequence of API calls produces SIGSEGV.
       That is, verify that mysql_stmt_init  -> mysql_stmt_fetch is OK,
       or mysql_stmt_prepare -> mysql_stmt_fetch_column is OK and sets
       meaningful error.
       * remove alloc_stmt_fields call
       * revise stmt->state codes and statement states.
       * there are other items in prepared statements 'to fix' document.
      
      Done:
       - cleanups and comments
       - revision of prepared statement error codes.
       - mysql_stmt_prepare is now can always be called (that is, you can reprepare
         a statement)
       - new implementation of mysql_stmt_close and fetch cancellation
      
      
      include/errmsg.h:
        - CR_NOT_ALL_PARAMS_BOUND - this error code wasn't used until now. 
          Apparently it was added in advance, but then interface of
          mysql_stmt_bind_param changed. Now it's not possible to bind only some
          parameters - either all or none of parameters are bound.
          This error code  is renamed to CR_PARAMS_NOT_BOUND
        - CR_FETCH_CANCELLED - error code set on server side when fetch from 
          MYSQL_RES or MYSQL_STMT (in blocking mode) was cancelled because of
          intercepting call to mysql_stmt_close
        - CR_NO_DATA - this is proposed error code to return from 
          mysql_stmt_fetch_column if no row was fetched (by any type of fetch).
          We always can fall back to CR_COMMANDS_OUT_OF_SYNC though.
          Need reviewer's opinion on this one.
      include/mysql.h:
        - added unbuffered_fetch_owner member to MYSQL to point to MYSQL_RES 
          or MYSQL_STMT which is used to fetch result at the moment.
          This is to be able to set CR_FETCH_CANCELLED error without fantoms.
        - added unbuffered_fetch_cancelled boolean variable to MYSQL_STMT and 
          MYSQL_RES structures
        - rename PREP_STMT_STATE -> enum enum_mysql_stmt_state
        - members of MYSQL_STMT ordered by size.
        - removed members of MYSQL_STMT: current_row, result_buffered,
          last_fetched_column, last_fetched_buffer, query
        - renamed members of MYSQL_STMT: param_buffers -> bind_param_done, 
          res_buffers -> bind_result_done
        - now mysql_stmt_fetch calls stmt->read_row_func to read row either from 
          buffer or from network.
      include/sql_common.h:
        declaration for flush_use_result
      libmysql/client_settings.h:
        stmt_close declaration removed
      libmysql/errmsg.c:
        Error messages for changed and added error codes.
      libmysql/libmysql.c:
        Many changes:
        - some unused variables removed
        - cleanups
        - better error reporting
        - some function calls commented
        - alloc_stmt_fields is now called right after execute, to not read
          mysql->fields of some other statement
        - new implementation of mysql_stmt_fetch - this is also with cursor
          fetch in mind (to implement cursor fetch I'll just need to write
          special read_row function for it, so this change will be local)
        - implementation of fetch cancellation, including complete rewrite of
          mysql_stmt_close
        - now mysql_stmt_free_result doesn't free results of other statements.
      sql-common/client.c:
        - implementation of flush_use_result
        - implementation of fetch cancellation
        - changed behaviour of mysql_close in regard to mysql_stmt_close - now 
          mysql_close just set stmt->mysql to 0
      321422c8
  13. 12 Mar, 2004 1 commit
    • unknown's avatar
      Rudimentary part of libmysql patch: · c4ddf584
      unknown authored
      set_mysql_error is deployed
      
      
      libmysql/client_settings.h:
        declaration for set_mysql_error
      libmysql/libmysql.c:
        - set_mysql_error moved to client.c
        - st_stmt_errmsg -> set_stmt_error
      sql-common/client.c:
        deployment of set_mysql_error
      c4ddf584
  14. 10 Mar, 2004 1 commit
    • unknown's avatar
      Rename: · 188535bb
      unknown authored
      read_statistic -> read_statistics
      (statistic is adjective)
      
      
      include/mysql.h:
        read_statistic -> read_statistics
      libmysql/client_settings.h:
        read_statistic -> read_statistics
      libmysql/libmysql.c:
        read_statistic -> read_statistics
      libmysqld/lib_sql.cc:
        read_statistic -> read_statistics
      sql-common/client.c:
        read_statistic -> read_statistics
      188535bb
  15. 05 Mar, 2004 2 commits
    • unknown's avatar
      Fix for C++ style declaration · e3af1fab
      unknown authored
      e3af1fab
    • unknown's avatar
      New call mysql_stmt_init() introduced. · 7ef1b4df
      unknown authored
      Renames:
      mysql_bind_param      -> mysql_stmt_bind_param
      mysql_bind_result     -> mysql_stmt_bind_result
      mysql_execute         -> mysql_stmt_execute
      mysql_fetch           -> mysql_stmt_fetch
      mysql_fetch_column    -> mysql_stmt_fetch_column
      mysql_get_metadata    -> mysql_stmt_result_metadata
      mysql_param_count     -> mysql_stmt_param_count
      mysql_param_result    -> mysql_stmt_param_metadata
      mysql_prepare         -> mysql_stmt_prepare
      mysql_send_long_data  -> mysql_stmt_send_long_data
      
      client_test.c cleaned up from memory leaks
      
      
      include/mysql.h:
        New call mysql_stmt_init() introduced.
        Renames:
        mysql_bind_param      -> mysql_stmt_bind_param
        mysql_bind_result     -> mysql_stmt_bind_result
        mysql_execute         -> mysql_stmt_execute
        mysql_fetch           -> mysql_stmt_fetch
        mysql_fetch_column    -> mysql_stmt_fetch_column
        mysql_get_metadata    -> mysql_stmt_result_metadata
        mysql_param_count     -> mysql_stmt_param_count
        mysql_param_result    -> mysql_stmt_param_metadata
        mysql_prepare         -> mysql_stmt_prepare
        mysql_send_long_data  -> mysql_stmt_send_long_data
        Renames are done according to the rule 'Everything call operating with
        'MYSQL_STMT' structure has 'mysql_stmt_' prefix.
        Additionally mysql_param_result was renamed to mysql_stmt_param_metadata
        and mysql_get_metadata to mysql_stmt_result_metadata.
        All renames are done in hope that new names are easier to remember and 
        understand.
      libmysql/client_settings.h:
        skip_list is not needed any more
      libmysql/libmysql.c:
        New call mysql_stmt_init() introduced.
        Renames:
        mysql_bind_param      -> mysql_stmt_bind_param
        mysql_bind_result     -> mysql_stmt_bind_result
        mysql_execute         -> mysql_stmt_execute
        mysql_fetch           -> mysql_stmt_fetch
        mysql_fetch_column    -> mysql_stmt_fetch_column
        mysql_get_metadata    -> mysql_stmt_result_metadata
        mysql_param_count     -> mysql_stmt_param_count
        mysql_param_result    -> mysql_stmt_param_metadata
        mysql_prepare         -> mysql_stmt_prepare
        mysql_send_long_data  -> mysql_stmt_send_long_data
      sql-common/client.c:
        no skip_list argument any more
      tests/client_test.c:
        - many memory leaks and valgrind errors cleaned up.
      7ef1b4df
  16. 20 Feb, 2004 2 commits
    • unknown's avatar
      Added missing argument to strxnmov() (Applies for windows debug mode) · 5db8fc5c
      unknown authored
      libmysql/libmysql.c:
        Added missing argument to strxnmov()
      5db8fc5c
    • unknown's avatar
      Fix for #1429 (Segfault in mysql_stmt_close) · 3711e24a
      unknown authored
      Problem was that we checked for existing connection in stmt_close
      and did not free(stmt) if it's closed (that didn't work well with
      embedded)
      I just added new flag to the stmt_close and now we check it instead
      of connection
      
      
      libmysql/client_settings.h:
        declaration changed
      libmysql/libmysql.c:
        stmt_close and it's calls modified
      sql-common/client.c:
        stmt_close call modified
      3711e24a
  17. 19 Feb, 2004 2 commits
    • unknown's avatar
      Fixed usage of strxnmov() in recent changesets · 68242939
      unknown authored
      libmysql/libmysql.c:
        szPipeName -> pipe_name
        fixed usage of strxnmov()
      mysys/mf_tempfile.c:
        Fixed usage of strnxmov()
        Simple optimization
      mysys/my_tempnam.c:
        Fixed usage of strnxmov()
        Simple optimization
      sql/log.cc:
        simple optimization
      sql/mini_client.cc:
        szPipeName -> pipe_name
        fixed usage of strxnmov()
      sql/mysqld.cc:
        szPipeName -> pipe_name
        fixed usage of strxnmov()
        Fixed indentation
      68242939
    • unknown's avatar
      potential problem fixed afer some reasoning · ddf17601
      unknown authored
      ddf17601
  18. 16 Feb, 2004 1 commit
    • unknown's avatar
      Changed wellformedlen to well_formed_len · 709356d4
      unknown authored
      Fixed that blobs >16M can be inserted/updated
      Fixed bug when doing CREATE TEMPORARY TABLE ... LIKE
      
      
      include/m_ctype.h:
        Changed wellformedlen to well_formed_len
      include/mysql.h:
        Fixed comment
      libmysql/libmysql.c:
        Fixed indentation
      libmysqld/lib_sql.cc:
        Fixed indentation
      mysql-test/r/ctype_utf8.result:
        updated warning numbers
      mysql-test/r/innodb.result:
        Moved test to right place
      mysql-test/r/myisam-blob.result:
        More test for blobs
      mysql-test/r/rpl000002.result:
        Move test to better place
      mysql-test/r/rpl_log.result:
        Move test to better place
      mysql-test/r/union.result:
        Move test to better place
      mysql-test/t/innodb.test:
        Moved test to right place
      mysql-test/t/myisam-blob.test:
        More test of blobs
      mysql-test/t/rpl000002.test:
        Move test to better place
      mysql-test/t/rpl_log.test:
        Move test to better place
      mysql-test/t/union.test:
        Move test to better place
      sql/field.cc:
        Changed wellformedlen to well_formed_len.
        Fixed that blobs >16M can be inserted/updated (new bug)
      sql/field.h:
        Code optimization
      sql/sql_lex.cc:
        Changed short variable names
      sql/sql_show.cc:
        Optimized quote handling
      sql/sql_table.cc:
        Fixed bug when doing CREATE TEMPORARY TABLE ... LIKE
      sql/sql_union.cc:
        Added comment
      strings/ctype-big5.c:
        Changed wellformedlen to well_formed_len
      strings/ctype-bin.c:
        Changed wellformedlen to well_formed_len
      strings/ctype-euc_kr.c:
        Changed wellformedlen to well_formed_len
      strings/ctype-gb2312.c:
        Changed wellformedlen to well_formed_len
      strings/ctype-gbk.c:
        Changed wellformedlen to well_formed_len
      strings/ctype-latin1.c:
        Changed wellformedlen to well_formed_len
      strings/ctype-mb.c:
        Changed wellformedlen to well_formed_len
      strings/ctype-simple.c:
        Changed wellformedlen to well_formed_len
      strings/ctype-sjis.c:
        Changed wellformedlen to well_formed_len
      strings/ctype-tis620.c:
        Changed wellformedlen to well_formed_len
      strings/ctype-ucs2.c:
        Changed wellformedlen to well_formed_len
        Indentation changes
      strings/ctype-ujis.c:
        Changed wellformedlen to well_formed_len
      strings/ctype-utf8.c:
        Changed wellformedlen to well_formed_len
      709356d4
  19. 14 Feb, 2004 1 commit
    • unknown's avatar
      Fix for #2212 (mysql_change_user doesn't work in embedded library) · b012018b
      unknown authored
      now it's working
      
      
      include/mysql.h:
        read_change_user_result 'virtual' method added
      libmysql/client_settings.h:
        cli_read_change_user_result interface
      libmysql/libmysql.c:
        cli_read_change_user_result implementation
      libmysqld/lib_sql.cc:
        emb_read_change_user_result implementation
      sql-common/client.c:
        cli_read_change_user_result added to the method's table
      sql/sql_parse.cc:
        fixes to make mysql_change_user working in embedded library
      b012018b
  20. 11 Feb, 2004 2 commits
  21. 10 Feb, 2004 2 commits
    • unknown's avatar
      Fixed bug #2248 "mysql_fetch without prior mysql_execute hangs" · 94f215cb
      unknown authored
      Done clean-up in prep stmt API functions:
      1) Removed some checks that were performed only in debug version
      were making debug version more tolerable to user errors than 
      production (and thus caused problems for example masking some
      bugs). 
      2) Also removed some other checks to make prep stmt API 
      consistent with the rest of C API (this also in line with 
      general politics - make checks in only those places where 
      errors are very common and hard to spot).
      
      
      include/mysql.h:
        Removed CHECK_EXTRA_ARGUMENTS define since it is no longer used 
        anywhere.
      libmysql/libmysql.c:
        Added check that will cause mysql_fetch() to bark then it is 
        used without calling mysql_execute() before.
        Removed checks that were performed only in debug version and
        caused problems since they were making debug version more 
        tolerable to user errors than production. Also removed some
        other checks to make prep stmt API consistent in this regard 
        with the rest of C API (this also in line with general politics -
        make checks in only those places where errors are very common 
        and hard to spot).
      tests/client_test.c:
        Updated tests to reflect removal of some checks in prep stmt API.
        Removed lines that caused bug #2473 to pop up, should be added 
        as separate test with the fix for this bug.
        Added test for bug#2248 "mysql_fetch without prior mysql_execute 
        hangs"
      94f215cb
    • unknown's avatar
      Fix for #2208 (multi-query returns wrong result in embedded library) · b4fc7c7f
      unknown authored
      now we execute only one first select during mysql_real_query
      others - during 'mysql_next_result'
      
      
      include/mysql.h:
        'virtual' next_result added
      libmysql/client_settings.h:
        cli_next_result declaration added
      libmysql/libmysql.c:
        mysql_next_result now works in embedded library as well
      libmysqld/lib_sql.cc:
        emb_next_result implemented
      sql/sql_class.h:
        fields to store the rest of the query added
      sql/sql_parse.cc:
        Saving the rest of the query added for embedded case
      b4fc7c7f
  22. 06 Feb, 2004 1 commit
    • unknown's avatar
      Fix for bug #2247: "mysql_stmt_affected_rows returns affected rows from · 3aef1d2c
      unknown authored
      last command"
      
      
      include/mysql.h:
        Fix for bug #2247: 
        added affected_rows variable to MYSQL_STMT
      libmysql/libmysql.c:
        Fix for bug #2247: 
        save mysql->affected_rows in stmt->affected_rows
        after mysql_execute() and mysql_stmt_store_result().
      tests/client_test.c:
        Fix for bug #2247: test added
      3aef1d2c
  23. 21 Jan, 2004 1 commit
  24. 23 Dec, 2003 1 commit
  25. 22 Dec, 2003 1 commit
  26. 18 Dec, 2003 2 commits
    • 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
      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
  27. 11 Dec, 2003 1 commit
    • unknown's avatar
      Fixed a possible memory leak on MacOSX when using the shared libmysql.so library (Bug #2061) · 287661e6
      unknown authored
      mysql_server_init() now returns error code if something went wrong (Bug #2062)
      Don't use my_fopen() when reading symlink information as this may cause problems when a lot of files are opened.
      Free thread keys with pthread_key_delete() instead of relying on automatic free. (Bug #2062)
      Fixed bug in UNION statement with alias '*'. (Bug #1249)
      Fixed a bug in DELETE ... ORDER BY ... LIMIT where the rows where not deleted in the proper order. (Bug #1024).
      FOUND_ROWS() could return incorrect number of rows after a query with an impossible WHERE condition.
      HOW DATABASES doesn't anymore show .sym files (on windows) that doesn't point to a valid directory. (Bug #1385)
      
      
      include/config-win.h:
        Ensure that USE_SYMDIR is set for all windows versions
        (This is set in makefiles, so this is just an extra safety measure)
      include/my_pthread.h:
        Fixed a possible memory leak on MacOSX when using the shared libmysql.so library (Bug #2061)
      include/my_sys.h:
        my_init() now returns error code if something went wrong
      include/mysql.h:
        mysql_once_init() now returns error code if something went wrong
      include/mysql_com.h:
        my_init() now returns error code if something went wrong
      libmysql/libmysql.c:
        mysql_server_init() and mysql_once_init() now returns error code if something went wrong (Bug #2062)
      mysql-test/r/limit.result:
        Update results
      mysql-test/r/select_found.result:
        Update results
      mysql-test/r/union.result:
        Update results
      mysql-test/t/limit.test:
        Added test for DELETE ... ORDER BY ... LIMIT (bug #1024)
      mysql-test/t/select_found.test:
        Added test for problem with impossible WHERE (Bug #1468)
      mysql-test/t/union.test:
        Added test for problem with alias '*' (Bug #1249)
      mysys/mf_pack.c:
        Don't use my_fopen() when reading symlink information as this may cause problems when a lot of files are opened.
      mysys/my_init.c:
        my_init() now returns error code if something went wrong
      mysys/my_lib.c:
        More debug information
      mysys/my_thr_init.c:
        Free thread keys with pthread_key_delete() instead of relying on automatic free. (Bug #2062)
      sql/sql_base.cc:
        Fixed bug in UNION statement with alias '*'. (Bug #1249)
      sql/sql_delete.cc:
        Fixed a bug in DELETE ... ORDER BY ... LIMIT where the rows where not deleted in the proper order. (Bug #1024).
      sql/sql_select.cc:
        FOUND_ROWS() could return incorrect number of rows after a query with an impossible WHERE condition.
      sql/sql_show.cc:
        SHOW DATABASES doesn't anymore show .sym files (on windows) that doesn't point to a valid directory. (Bug #1385)
      sql/sql_yacc.yy:
        Allow syntax UNION DISTINCT
      287661e6
  28. 09 Dec, 2003 1 commit
  29. 28 Nov, 2003 2 commits
  30. 27 Nov, 2003 2 commits