An error occurred fetching the project authors.
  1. 10 Feb, 2006 1 commit
    • unknown's avatar
      Bug#14013 mysql_stmt_store_result() bombs if a cursor is open · 09a4aff4
      unknown authored
       - Add code to 'mysql_stmt_store_result' to allow it to be called on 
         a prepared statement with open server side cursor.
       - Add tests to mysql_client_test that uses 'mysql_stmt_store_result'
      
      
      client/mysqltest.c:
        Enable cursor protocol(remove the ifdef BUG14013_FIXED)
        When running in cursor mode, the warnings from execute needs 
        to be extracted after mysql_stmt_execute, put them in a dynamic string 
        for later use.
        Untabify some tabs.
      libmysql/libmysql.c:
        Allow 'mysql_stmt_store_result' to be called on a statement with an open server side cursor.
        Detect that a server side cursor is open and send a "fetch" to ask for all rows to be sent to the client.
        Read all binary rows as normal store.
        Check that server said last row was sent after all binary rows has been sent.
      tests/mysql_client_test.c:
        Update 'fetch_n' function to take parameter indicating if 'mysql_stmt_store_result' should be used on the statement.
        Call fetch_n with parameter set to use 'mysql_stmt_store_result'
      09a4aff4
  2. 02 Feb, 2006 1 commit
  3. 01 Feb, 2006 1 commit
    • unknown's avatar
      Use common function 'append_field' to output the value of one field to the result. · 429b0e2c
      unknown authored
      Fix for extra zero in exponent of double values on windows.
      
      
      client/mysqltest.c:
        Write new function 'append_field' which takes care of appending one field to the dynamic string.
        Use function 'append_field' from both ps and normal execution
        Add hack to 'append_field' that removes the extra '0' in exponent for double values on Windows.
      mysql-test/r/type_float.result:
        One zero too much was removed( I think )
      mysql-test/t/insert.test:
        Remove the "replace_result" for extra zero in  exponent
      mysql-test/t/type_float.test:
        Remove the "replace_result" for extra zero in  exponent
      mysql-test/t/variables.test:
        Remove the "replace_result" for extra zero in  exponent
      429b0e2c
  4. 31 Jan, 2006 3 commits
  5. 17 Jan, 2006 1 commit
  6. 13 Jan, 2006 2 commits
  7. 12 Jan, 2006 1 commit
    • unknown's avatar
      wl2325 wl2324 · 551f74f0
      unknown authored
      mysql-test/include/have_ndb_extra.inc:
        New BitKeeper file ``mysql-test/include/have_ndb_extra.inc''
      mysql-test/include/not_ndb.inc:
        New BitKeeper file ``mysql-test/include/not_ndb.inc''
      mysql-test/r/have_ndb_extra.require:
        New BitKeeper file ``mysql-test/r/have_ndb_extra.require''
      mysql-test/r/ndb_alter_table_row.result:
        New BitKeeper file ``mysql-test/r/ndb_alter_table_row.result''
      mysql-test/r/ndb_alter_table_stm.result:
        New BitKeeper file ``mysql-test/r/ndb_alter_table_stm.result''
      mysql-test/r/ndb_binlog_basic.result:
        New BitKeeper file ``mysql-test/r/ndb_binlog_basic.result''
      mysql-test/r/ndb_binlog_multi.result:
        New BitKeeper file ``mysql-test/r/ndb_binlog_multi.result''
      mysql-test/r/ndb_multi_row.result:
        New BitKeeper file ``mysql-test/r/ndb_multi_row.result''
      mysql-test/r/not_ndb.require:
        New BitKeeper file ``mysql-test/r/not_ndb.require''
      mysql-test/r/rpl_ndb_bank.result:
        New BitKeeper file ``mysql-test/r/rpl_ndb_bank.result''
      mysql-test/r/rpl_ndb_basic.result:
        New BitKeeper file ``mysql-test/r/rpl_ndb_basic.result''
      mysql-test/r/rpl_ndb_disk.result:
        New BitKeeper file ``mysql-test/r/rpl_ndb_disk.result''
      mysql-test/r/rpl_ndb_idempotent.result:
        New BitKeeper file ``mysql-test/r/rpl_ndb_idempotent.result''
      mysql-test/r/rpl_ndb_load.result:
        New BitKeeper file ``mysql-test/r/rpl_ndb_load.result''
      mysql-test/r/rpl_ndb_multi.result:
        New BitKeeper file ``mysql-test/r/rpl_ndb_multi.result''
      mysql-test/r/rpl_ndb_sync.result:
        New BitKeeper file ``mysql-test/r/rpl_ndb_sync.result''
      mysql-test/r/rpl_row_basic_7ndb.result:
        New BitKeeper file ``mysql-test/r/rpl_row_basic_7ndb.result''
      mysql-test/t/ndb_alter_table_row.test:
        New BitKeeper file ``mysql-test/t/ndb_alter_table_row.test''
      mysql-test/t/ndb_alter_table_stm.test:
        New BitKeeper file ``mysql-test/t/ndb_alter_table_stm.test''
      mysql-test/t/ndb_binlog_basic.test:
        New BitKeeper file ``mysql-test/t/ndb_binlog_basic.test''
      mysql-test/t/ndb_binlog_multi.test:
        New BitKeeper file ``mysql-test/t/ndb_binlog_multi.test''
      mysql-test/t/ndb_multi_row.test:
        New BitKeeper file ``mysql-test/t/ndb_multi_row.test''
      mysql-test/t/rpl_ndb_bank.test:
        New BitKeeper file ``mysql-test/t/rpl_ndb_bank.test''
      mysql-test/t/rpl_ndb_basic.test:
        New BitKeeper file ``mysql-test/t/rpl_ndb_basic.test''
      mysql-test/t/rpl_ndb_disk.test:
        New BitKeeper file ``mysql-test/t/rpl_ndb_disk.test''
      mysql-test/t/rpl_ndb_idempotent.test:
        New BitKeeper file ``mysql-test/t/rpl_ndb_idempotent.test''
      mysql-test/t/rpl_ndb_load.test:
        New BitKeeper file ``mysql-test/t/rpl_ndb_load.test''
      mysql-test/t/rpl_ndb_multi.test:
        New BitKeeper file ``mysql-test/t/rpl_ndb_multi.test''
      mysql-test/t/rpl_ndb_sync.test:
        New BitKeeper file ``mysql-test/t/rpl_ndb_sync.test''
      mysql-test/t/rpl_row_basic_7ndb.test:
        New BitKeeper file ``mysql-test/t/rpl_row_basic_7ndb.test''
      sql/ha_ndbcluster_binlog.cc:
        New BitKeeper file ``sql/ha_ndbcluster_binlog.cc''
      sql/ha_ndbcluster_binlog.h:
        New BitKeeper file ``sql/ha_ndbcluster_binlog.h''
      sql/ha_ndbcluster_tables.h:
        New BitKeeper file ``sql/ha_ndbcluster_tables.h''
      sql/rpl_injector.cc:
        New BitKeeper file ``sql/rpl_injector.cc''
      sql/rpl_injector.h:
        New BitKeeper file ``sql/rpl_injector.h''
      storage/ndb/include/kernel/signaldata/DihFragCount.hpp:
        New BitKeeper file ``storage/ndb/include/kernel/signaldata/DihFragCount.hpp''
      551f74f0
  8. 11 Jan, 2006 3 commits
  9. 10 Jan, 2006 3 commits
  10. 29 Dec, 2005 1 commit
  11. 22 Dec, 2005 1 commit
    • unknown's avatar
      mysqltest.c: · 37a3cb50
      unknown authored
        Put options in order.
        Add #ifdef around --debug for non-debug builds.
      
      
      client/mysqltest.c:
        Put options in order.
        Add #ifdef around --debug for non-debug builds.
      37a3cb50
  12. 20 Dec, 2005 2 commits
  13. 13 Dec, 2005 3 commits
    • unknown's avatar
      Remove confusing printouts from expected to fail "system" commands · 1034d941
      unknown authored
      client/mysqltest.c:
        Add missing DBUG_VOID_RETURN
        Log failure to run "system" into result log 
        Add DBUG_PRINT for the sleep value used in do_sleep
      mysql-test/r/mysqltest.result:
        Update test results
      mysql-test/t/mysqltest.test:
        Mask outpu from failed system command
      1034d941
    • unknown's avatar
      Remove confusing printout · 04e0e92f
      unknown authored
      client/mysqltest.c:
        Remove printout to stderr about expected failure of a command, if we want it logged, it has already been logged to the result.
      04e0e92f
    • unknown's avatar
      Fix tests after merge · 3a9307fd
      unknown authored
      Straighten out and comment behaviour for --require and --result in run_query
      
      
      client/mysqltest.c:
         If --require or --result has been provided for a query command->record_file file be set.
        In that case it should either dump to file if recording or check with content in file if running.
      mysql-test/r/mysqltest.result:
        Fix up tests and results after merge
      mysql-test/t/mysqltest.test:
        Fix up tests and results after merge
      3a9307fd
  14. 12 Dec, 2005 1 commit
    • unknown's avatar
      mysqltest.c: · cb6b419d
      unknown authored
        Put options in proper order.
      
      
      client/mysqltest.c:
        Put options in proper order.
      cb6b419d
  15. 09 Dec, 2005 1 commit
  16. 08 Dec, 2005 1 commit
    • unknown's avatar
      WL#2930 mysqltest++ · f5e39a2b
      unknown authored
       - Updated after valgrinding
      
      
      client/mysqltest.c:
        Move initialisation of dynamic strings to top of function so that variables are always inited before free
        The workaround for 15518 moved to last in function
        Add check for "--" comments without any comment,. to avoid read of uninit memory
      mysql-test/mysql-test-run.sh:
        Add printout of valgrind errors from mysqltest when test with valgrind  has completed
      f5e39a2b
  17. 07 Dec, 2005 1 commit
    • unknown's avatar
      Fix memory leak · 476a24cb
      unknown authored
      client/mysqltest.c:
        Call my_regex_end  to free global memory allocated regex library
      476a24cb
  18. 06 Dec, 2005 1 commit
    • unknown's avatar
      WL#2930 · d4309e56
      unknown authored
      - Updated after review
      
      
      client/mysqltest.c:
        Remove the mysterious 1024, sed when calculating max_length for bind columns
        Change affected_rows variables to use ulonglong
        A little more fiddling with warnings in ps mode needed
        Add temporary workaround for bug#15518
        Use ulong instead of "unsigned long"
        Print verbose_msg when failure to create view or sp
        Updated cheks for "zero size result file" and "no queries executed but result file found"
        The test must produce some output
      mysql-test/include/have_multi_ndb.inc:
        Use --require <result_file> instead of @r <result_file>
      mysql-test/r/mysqltest.result:
        Update resulfiles
      mysql-test/t/init_file.test:
        Add "echo" command so that test produces output.
      mysql-test/t/mysql_client_test.test:
        Add "echo" command so that test produces output.
      mysql-test/t/mysqltest.test:
        Added new test case for "zero size resul file"
        Added new test case for "no output"
        Make sure all generated sql files are put in var/tmp dir
      mysql-test/r/init_file.result:
        New BitKeeper file ``mysql-test/r/init_file.result''
      mysql-test/r/mysql_client_test.result:
        New BitKeeper file ``mysql-test/r/mysql_client_test.result''
      d4309e56
  19. 22 Nov, 2005 1 commit
    • unknown's avatar
      Recursion support made for SP (BUG#10100). · d0645e35
      unknown authored
      client/mysqltest.c:
        An expected error messages hiding from the log if disable_result_log is in force.
      mysql-test/r/sp-dynamic.result:
        The test expanded for case of allowed/disalowed recursion.
      mysql-test/r/sp-error.result:
        Error messages changed.
        Test of bug11394() made with allowed recursion.
      mysql-test/r/sp.result:
        Tests for recursion.
      mysql-test/r/trigger.result:
        Check that triggers are not affected by this patch.
      mysql-test/r/variables.result:
        Test of max_sp_recursion_depth variable.
      mysql-test/t/sp-dynamic.test:
        The test expanded for case of allowed/disalowed recursion.
      mysql-test/t/sp-error.test:
        Error messages changed.
        Test of bug11394() made with allowed recursion.
      mysql-test/t/sp.test:
        Tests for recursion.
      mysql-test/t/trigger.test:
        Check that triggers are not affected by this patch.
      mysql-test/t/variables.test:
        Test of max_sp_recursion_depth variable.
      sql/item_func.cc:
        sp_find_function() and sp_find_procedure() joined to sp_find_routine()
          function as it was mentioned in TODO.
      sql/mysqld.cc:
        max_sp_recursion_depth variable added.
      sql/set_var.cc:
        max_sp_recursion_depth variable added.
      sql/share/errmsg.txt:
        An error message changed.
        An error message added.
      sql/sp.cc:
        sp_find_function() and sp_find_procedure() joined to sp_find_routine()
          function as it was mentioned in TODO.
        Temory LEX is allocated on a stack, not on a heap.
        Recursion support added for stored procedures.
      sql/sp.h:
        sp_find_function() and sp_find_procedure() joined to sp_find_routine()
          function as it was mentioned in TODO.
      sql/sp_head.cc:
        Initialization of new sp_head fields to get correct list of instances
          contained one instance only.
        Stack requirement for SP instruction is increased.
        Stack free space is checked before mem root initialisation to avoid
          memory leak.
        Pointer to the free instance management added before and after
          SP execution.
      sql/sp_head.h:
        New sp_head variables added to support inst of instances of SP
          for recursion and pointer on ths first free to use instance.
      sql/sql_base.cc:
        open_table() consume a lot of stack space so we check free stack space before it.
      sql/sql_class.h:
        max_sp_recursion_depth variable added.
      sql/sql_parse.cc:
        sp_find_function() and sp_find_procedure() joined to sp_find_routine()
          function as it was mentioned in TODO.
      d0645e35
  20. 04 Nov, 2005 2 commits
  21. 03 Nov, 2005 2 commits
    • unknown's avatar
      Reapplying patch · 3392de2f
      unknown authored
      Check for NULLs only if we don't replace column results,
        get real results after all checks.
        (see bug #14254: func_crypt.test fails on FreeBSD with --ps-protocol).
      
      Remove two FIXME's
      
      
      client/mysqltest.c:
        Reapplying patch, lost during merge
        Check for NULLs only if we don't replace column results,
          get real results after all checks.
          (see bug #14254: func_crypt.test fails on FreeBSD with --ps-protocol).
        
        Remove FIXME comments since it ssemd like the function handles vertical displays and 
        even wheter the string is terminated or not is not relevant since we only append 
        as much of it to output as "len" says
      3392de2f
    • unknown's avatar
      WL#2930 Adding view and cursor 'protocols' to mysqltest · 2a3583b7
      unknown authored
       - Part2, actually adding the new functionality
      
      
      client/mysqltest.c:
        adding the new functionality run with views, cursor and stored procedures
      mysql-test/mysql-test-run.pl:
        Adding new switches
      2a3583b7
  22. 31 Oct, 2005 4 commits
    • unknown's avatar
      Fixed bugs in client/mysqltest.c which made lots of "connect" commands in tests fail. · e6b02a69
      unknown authored
      client/mysqltest.c:
        Fixed crash bug in debug mode and make sure q->last_argument is set right
        so that check_eol_junk() will work again.
      e6b02a69
    • unknown's avatar
      Removed C++-isms from client/mysqltest.c · a1f01826
      unknown authored
      client/mysqltest.c:
        Removed C++-isms from C file.
      a1f01826
    • unknown's avatar
      Check for NULLs only if we don't replace column results, · 38bb3f90
      unknown authored
      get real results after all checks.
      (see bug #14254: func_crypt.test fails on FreeBSD with --ps-protocol).
      
      
      client/mysqltest.c:
        Check for NULLs only if we don't replace column results,
        get real results after all checks.
      38bb3f90
    • unknown's avatar
      WL#2930 Adding view and cursor 'protocols' to mysqltest · 62b0ba25
      unknown authored
       - Cleanup of mysqltest.c before extending it
      
      
      client/mysqltest.c:
        Cleanup functions run_query_* before adding new functionality.
        Break out common functions used in both run_query_stmt and run_query_normal
        Move functionality for all run_query_* calls into run_query
        Since the normal way of handling an unepected error is to call die(which will never return), remove all return values from functions that does not return. 
        Add comments.
        Remove unused vars.
        Cleanup...
        Removed oboslete syntax @<file_name>, "require" or "result" should be used.
      mysql-test/include/master-slave.inc:
        remove obsolete syntax @, use "require" command
      mysql-test/include/ps_query.inc:
        Remove this comment, mysqltest will now produce output. Old mysqltest didn't return any output since command starting with @ was treated as a require. Uggh.
      mysql-test/r/mysqltest.result:
        Update test result
      mysql-test/r/ps_2myisam.result:
        Update test result
      mysql-test/r/ps_3innodb.result:
        Update test result
      mysql-test/r/ps_4heap.result:
        Update test result
      mysql-test/r/ps_5merge.result:
        Update test result
      mysql-test/r/ps_6bdb.result:
        Update test result
      mysql-test/r/ps_7ndb.result:
        Update test result
      mysql-test/t/alias.test:
        Remove --disable/enable_ps_protocol, only used to mask bugs in mysqltest
      mysql-test/t/group_by.test:
        Remove --disable/enable_ps_protocol, only used to mask bugs in mysqltest
      mysql-test/t/mysqltest.test:
        Add test for "Missing delimiter until eof"
      mysql-test/t/union.test:
        Remove --disable/enable_ps_protocol, "select found_rows" works  with ps_protocol now!
      62b0ba25
  23. 28 Oct, 2005 1 commit
    • unknown's avatar
      After reiview fix · 9723cd7b
      unknown authored
       - Use msg argument to determine if param is required or not in safe_get_param
      
      
      client/mysqltest.c:
        Use msg argument as inidicator wheter param is required or not.
      9723cd7b
  24. 13 Oct, 2005 1 commit
    • unknown's avatar
      Fix being able to set default TCP port for command-line utilities · 0812e569
      unknown authored
      by using MYSQL_TCP_PORT variable. (Bug #5792)
      
      
      client/mysql.cc:
        Set default port to 0 so MYSQL_TCP_PORT is handled by mysql_server_init().
      client/mysqladmin.cc:
        Set default port to 0 so MYSQL_TCP_PORT is handled by mysql_server_init().
      client/mysqlbinlog.cc:
        Set default port to 0 so MYSQL_TCP_PORT is handled by mysql_server_init().
      client/mysqlcheck.c:
        Set default port to 0 so MYSQL_TCP_PORT is handled by mysql_server_init().
      client/mysqldump.c:
        Set default port to 0 so MYSQL_TCP_PORT is handled by mysql_server_init().
      client/mysqlimport.c:
        Set default port to 0 so MYSQL_TCP_PORT is handled by mysql_server_init().
      client/mysqlshow.c:
        Set default port to 0 so MYSQL_TCP_PORT is handled by mysql_server_init().
      client/mysqltest.c:
        Set default port to 0 so MYSQL_TCP_PORT is handled by mysql_server_init().
      0812e569
  25. 12 Oct, 2005 1 commit
    • unknown's avatar
      Always test ssl and compress · 32f2ad06
      unknown authored
       - Updated after review
      
      
      client/mysqltest.c:
        Updated after review.
        Fix "connect" command to take SSL and/or COMPRESS as options instead of enable/disable_ssl and enable/disable_compress
        Commented do_connect, added test cases etc.
        Fix safe_get_param to make it possible to call it once for every argument without having any checks inbetween.
        Make a copy for query->first_argument  since safe_get_param will modify query string. Now connect works inside a while loop as well.
      mysql-test/mysql-test-run.pl:
        Updated after review
      mysql-test/r/connect.result:
        Enable test that was previolsy disabled because of "no error handling" in connect
      mysql-test/r/mysqltest.result:
        Added tests for "connect"
      mysql-test/t/compress.test:
        Updated after review, use the option argument to connect
      mysql-test/t/connect.test:
        Enable test that was previolsy disabled because of "no error handling" in connect
        Now it's possible to use "--error" before connect, so let's use it.
      mysql-test/t/information_schema.test:
        Connection user4 was already used
      mysql-test/t/myisam.test:
        Disconnect con1 so the name can be reused
      mysql-test/t/mysqltest.test:
        Added tests for "connect"
      mysql-test/t/openssl_1.test:
        Updated after review, use the option argument to connect
      mysql-test/t/sp-security.test:
        Disconnect user1 connection so the name can be reused
      mysql-test/t/ssl.test:
        Updated after review, use the option argument to connect
      mysql-test/t/ssl_compress.test:
        Updated after review, use the option argument to connect
      sql/mysqld.cc:
        Updated after review, Compression variable is always available
      sql/sql_show.cc:
        Updated after review, Compression variable is always available
      sql/structs.h:
        Updated after review, Compression variable is always available
      32f2ad06