summaryrefslogtreecommitdiff
path: root/client
Commit message (Collapse)AuthorAgeFilesLines
* Fixed cast warnings in introducing the pluggable authentication clientGeorgi Kodinov2011-06-0610-19/+19
| | | | options.
* BUG#12354268Luis Soares2011-05-061-1/+2
|\ | | | | Automerge from mysql-5.1 into mysql-5.5.
| * BUG#12354268Luis Soares2011-05-061-1/+2
| |\ | | | | | | | | | Automerged bzr bundle from bug report: luis.soares@oracle.com-20110505224815-6ob90n7suxsoizvs.bundle
| | * BUG#12354268: MYSQLBINLOG --BASE64-OUTPUT=DECODE-ROWS DOES NOTLuis Soares2011-05-051-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | WORK WITH --START-POSITION If setting --start-position to start after the FD event, mysqlbinlog will output an error stating that it has not found an FD event. However, its not that mysqlbinlog does not find it but rather that it does not processes it in the regular way (i.e., it does not print it). Given that one is using --base64-output=DECODE-ROWS then not printing it is actually fine. To fix this, we make mysqlbinlog not to complain when it has not printed the FD event, is outputing in base64, but is decoding the rows.
* | | BUG#11762616: BUG#55229: 'POSTION'Luis Soares2011-05-061-2/+2
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | Manual merge from mysql-5.1 into mysql-5.5. Conflicts ========= Text conflict in mysql-test/suite/rpl/t/rpl_row_until.test Text conflict in sql/handler.h Text conflict in storage/archive/ha_archive.cc
| * | BUG#11762616: BUG#55229: 'POSTION' Luis Soares2011-05-061-2/+2
| |/ | | | | | | | | Fix for all "postion" in Oracle files (s/postion/position). Updated the copyright notices where needed.
| * Remove soft links in the build directory, not the source directory (Bug#43312)Kent Boortz2011-05-031-2/+2
| |
| * Merge mysql-5.1 -> mysql-5.1-innodbVasil Dimov2011-04-212-3/+9
| |\
* | \ Merge mysql-5.5-innodb -> mysql-5.5Vasil Dimov2011-04-211-5/+7
|\ \ \
| * \ \ Merge mysql-5.1-innodb to mysql-5.5-innodb.Marko Mäkelä2011-04-111-5/+7
| |\ \ \ | | |/ /
| | * | Bug #11766513 - 59641: Prepared XA transaction in system after hard crashMarko Mäkelä2011-04-071-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | causes future shutdown hang InnoDB would hang on shutdown if any XA transactions exist in the system in the PREPARED state. This has been masked by the fact that MySQL would roll back any PREPARED transaction on shutdown, in the spirit of Bug #12161 Xa recovery and client disconnection. [mysql-test-run] do_shutdown_server: Interpret --shutdown_server 0 as a request to kill the server immediately without initiating a shutdown procedure. xid_cache_insert(): Initialize XID_STATE::rm_error in order to avoid a bogus error message on XA ROLLBACK of a recovered PREPARED transaction. innobase_commit_by_xid(), innobase_rollback_by_xid(): Free the InnoDB transaction object after rolling back a PREPARED transaction. trx_get_trx_by_xid(): Only consider transactions whose trx->is_prepared flag is set. The MySQL layer seems to prevent attempts to roll back connected transactions that are in the PREPARED state from another connection, but it is better to play it safe. The is_prepared flag was introduced in the InnoDB Plugin. trx_n_prepared: A new counter, counting the number of InnoDB transactions in the PREPARED state. logs_empty_and_mark_files_at_shutdown(): On shutdown, allow trx_n_prepared transactions to exist in the system. trx_undo_free_prepared(), trx_free_prepared(): New functions, to free the memory objects of PREPARED transactions on shutdown. This is not needed in the built-in InnoDB, because it would collect all allocated memory on shutdown. The InnoDB Plugin needs this because of innodb_use_sys_malloc. trx_sys_close(): Invoke trx_free_prepared() on all remaining transactions.
* | | | Merging patch for bug#11765157 from mysql-5.1.Nirbhay Choubey2011-04-082-3/+9
|\ \ \ \ | |/ / / |/| | / | | |/ | |/|
| * | Bug#11765157 - 58090: mysqlslap drops schema specified inNirbhay Choubey2011-04-082-3/+9
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | create_schema if auto-generate-sql also set. mysqlslap uses a schema to run its tests on and later drops it if auto-generate-sql is used. This can be a problem, if the schema is an already existing one. If create-schema is used with auto-generate-sql option, mysqlslap while performing the cleanup, drops the specified database. Fixed by introducing an option --no-drop, which, if used, will prevent the dropping of schema at the end of the test.
* | Merged BUG#11766427, BUG#59539 from 5.1 to 5.5.Sven Sandberg2011-03-251-3/+11
|\ \ | |/ | | | | No conflicts.
| * BUG#11766427, BUG#59539: Filter by server id in mysqlbinlog failsSven Sandberg2011-03-251-3/+11
| | | | | | | | | | | | | | | | | | | | | | Problem: mysqlbinlog --server-id may filter out Format_description_log_events. If mysqlbinlog does not process the Format_description_log_event, then mysqlbinlog cannot read the rest of the binary log correctly. This can have the effect that mysqlbinlog crashes, generates an error, or generates output that causes mysqld to crash, generate an error, or corrupt data. Fix: Never filter out Format_description_log_events. Also, never filter out Rotate_log_events.
* | merge from 5.5 mainBjorn Munch2011-03-223-6/+7
|\ \
| * \ Merge from mysql-5.5.10-releasehery.ramilison@oracle.com2011-03-163-6/+7
| |\ \
| | * | Fix for BUG#59894Guilhem Bichot2011-02-113-6/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | "set optimizer_switch to e or d causes invalid memory writes/valgrind warnings": due to prefix support, the argument "e" was overwritten with its full value "engine_condition_pushdown", which caused a buffer overrun. This was wrong usage of find_type(); other wrong usages are fixed here too. Please start reading with the comment of typelib.c.
* | | | upmerge 11885854Bjorn Munch2011-03-181-3/+5
|\ \ \ \ | |/ / / |/| | / | | |/ | |/|
| * | Bug #11885854 MYSQLTEST: PS-PROTOCOL IMPLIED BY CURSOR-PROTOCOL LOST AFTER ↵Bjorn Munch2011-03-181-3/+5
| | | | | | | | | | | | | | | | | | | | | ENABLE_PS_PROTOCOL The condition cursor-protocol => ps-protocol was done at "current setting" level" Moved it to "set by command line" level
* | | Bug #11755431 (former 47205)Jon Olav Hauglid2011-03-081-6/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MAP 'REPAIR TABLE' TO RECREATE +ANALYZE FOR ENGINES NOT SUPPORTING NATIVE REPAIR Executing 'mysqlcheck --check-upgrade --auto-repair ...' will first issue 'CHECK TABLE FOR UPGRADE' for all tables in the database in order to check if the tables are compatible with the current version of MySQL. Any tables that are found incompatible are then upgraded using 'REPAIR TABLE'. The problem was that some engines (e.g. InnoDB) do not support 'REPAIR TABLE'. This caused any such tables to be left incompatible. As a result such tables were not properly fixed by the mysql_upgrade tool. This patch fixes the problem by first changing 'CHECK TABLE FOR UPGRADE' to return a different error message if the engine does not support REPAIR. Instead of "Table upgrade required. Please do "REPAIR TABLE ..." it will report "Table rebuild required. Please do "ALTER TABLE ... FORCE ..." Second, the patch changes mysqlcheck to do 'ALTER TABLE ... FORCE' instead of 'REPAIR TABLE' in these cases. This patch also fixes 'ALTER TABLE ... FORCE' to actually rebuild the table. This change should be reflected in the documentation. Before this patch, 'ALTER TABLE ... FORCE' was unused (See Bug#11746162) Test case added to mysqlcheck.test
* | | Remove last traces of HAVE_NDBCLUSTER_DB define - it has not had an effect ↵Magnus Blåudd2011-02-211-3/+0
| | | | | | | | | | | | | | | in a long time and is just confusing. At the same time backport the removal of OPT_NDB_CONNECTSTRING and OPT_NDBCLUSTER values from "enum options_client"
* | | Merge of fix for bug#11766310 from mysql-5.1 -> mysql-5.5.Nirbhay Choubey2011-02-211-2/+8
|\ \ \ | |/ / | | / | |/ |/|
| * Bug#11766310 : 59398: MYSQLDUMP 5.1 CAN'T HANDLE A DASHNirbhay Choubey2011-02-211-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | ("-") IN DATABASE NAMES IN ALTER DATABASE. mysqldump did not quote database name in 'ALTER DATABASE' statements in its output. This can further cause a failure while loading if database name contains a hyphen '-'. This happened as, while printing the 'ALTER DATABASE' statements, the database name was not quoted. Fixed by quoting the database name.
* | Automerge from mysql-5.1 for follow-up bug#57450.Dmitry Shulga2011-02-091-0/+2
|\ \ | |/
| * Follow up fix for bug#57450.Dmitry Shulga2011-02-091-0/+2
| | | | | | | | | | batch_readline_init() was modified - make check for type of file for input stream unless target platform is WINDOWS since on this platform S_IFBLK is undefined.
* | Automerge from mysql-5.1 for follow-up bug#57450.Dmitry Shulga2011-02-092-0/+10
|\ \ | |/
| * Follow up fix for bug#57450.Dmitry Shulga2011-02-092-0/+10
| | | | | | | | | | | | | | | | batch_readline_init() was modified - return an error if the input source is a directory or a block device. This follow-up is necessary because on some platforms, such as Solaris, call to read() from directory may be successful.
* | Auto-merge from mysql-5.1 for bug#57450.Dmitry Shulga2011-02-053-20/+33
|\ \ | |/
| * Fixed bug#57450 - mysql client enter in an infinite loopDmitry Shulga2011-02-053-20/+33
| | | | | | | | | | | | | | | | | | | | | | if the standard input is a directory. The problem is that mysql monitor try to read from stdin without checking input source type. The solution is to stop reading data from standard input if a call to read(2) failed. A new test case was added into mysql.test.
* | merge of bug 47902 and (null-merge) of bug 57924.Mattias Jonsson2011-01-261-2/+6
|\ \ | |/ | | | | bug#57924 does not occur in 5.5, so I reverted the 5.1 specific code and used the errors from 5.5 instead in the tests
| * mergeMattias Jonsson2011-01-261-2/+6
| |\
| | * Bug#47902: partition_recover_myisam fails with --ps-protocolMattias Jonsson2011-01-101-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The problem was that the warnings was never written out when running with --ps-protocol. This was because the warnings only appeared during the prepare phase, not the execute phase. Solved by not clearing the warnings from the prepare phase if there was no other warnings. If there are warnings from the execute phase, it is very likely to be the same as from the prepare phase. My tests show that if not clearing the warnings from the prepare phase when there are warnings from the execute phase, there will be duplicated warnings in the result.
* | | Fixed copyright headers in mtr src filesBjorn Munch2011-01-181-2/+2
|\ \ \ | |/ /
| * | Fixed copyright headers in mtr src filesBjorn Munch2011-01-181-2/+2
| | |
* | | Bug#58139 : default-auth option not recognized in MySQL standardNirbhay Choubey2011-01-1610-6/+91
| | | | | | | | | | | | | | | | | | | | | command line clients. Postfix covering other mysql standard clients like mysql_upgrade, mysqlbinlog, mysqlcheck, mysqlimport, mysqlshow and mysqlslap.
* | | Merge of fix for bug#58221 from mysql-5.1 -> mysql-5.5.Nirbhay Choubey2011-01-161-0/+3
|\ \ \ | |/ /
| * | Bug#58221 : mysqladmin --sleep=x --count=x keeps loopingNirbhay Choubey2011-01-161-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When mysqldadmin is run with sleep and count options, it goes into an infinite loop and keeps executing the specified command. This happened because the statement, responsible for decrementing the count value, was missing. Fixed by adding a statement which will decrement the count value for each iteration.
* | | Merging fix of Bug#13618 from mysql-5.1.Nirbhay Choubey2011-01-141-2/+11
|\ \ \ | |/ /
| * | Bug#13618 : mysqldump --xml omits comment on table fieldNirbhay Choubey2011-01-141-2/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When mysqldump tries to dump information in xml format, the result does not contain field level comments. In order to retrieve various informations for a field/column, mysqldump currently uses 'show fields from <tab>' statement. The attributes returned by the statement lacks the information regarding field comments. Fixed by changing the query to one that probes I_S to retrieve required field informations, including the field comment.
* | | Merging from mysql-5.1.Nirbhay Choubey2011-01-131-5/+15
|\ \ \ | |/ /
| * | Bug#59109 : mysqlslap crashes on mysql_fetch_row after ignoringNirbhay Choubey2011-01-131-5/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | null from mysql_store_result. mysqlslap segfaults at a point when it tries to fetch rows from the result set. Under some circumstances, mysql_store_result can return 'NULL', even after query execution (mysql_query) succeeds, and eventually a segfault might occur if same unchecked return value is passed to mysql_fetch_row. Fixed by adding a check on mysql_store_result's return value.
* | | merge from 5.5 mainBjorn Munch2011-01-121-3/+1
|\ \ \
| * | | Remove configuration preprocessor symbols 'THREAD'Magne Mahre2011-01-111-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and 'THREAD_SAFE_CLIENT'. As of MySQL 5.5, we no longer support non-threaded builds. This patch removes all references to the obsolete THREAD and THREAD_SAFE_CLIENT preprocessor symbols. These were used to distinguish between threaded and non-threaded builds.
* | | | Bug #59153 mysqltest produces a valgrind warning when the running test failsBjorn Munch2011-01-111-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | Local variable ds_warnings in run_query not cleared. But when we call die() we don't have access to it. Set global var. to point to it when allocated.
* | | | upmerge 58896,58900,59002Bjorn Munch2011-01-111-13/+27
|\ \ \ \ | |/ / / |/| / / | |/ /
| * | Bug #58900 query_get_value crashes when result begins with dollar signBjorn Munch2011-01-111-4/+9
| | | | | | | | | | | | | | | Generalized fix for recursive backtick Optional arg to eval_expr telling it not to interpret
| * | Bug #59002 Please make mtr print correct file and line number when tests failBjorn Munch2011-01-111-9/+18
| |/ | | | | | | | | This patchs adds printing of a file stack (with line numbers) It does not fix the problem of a failure in the non-first iteration of a loop
* | MergeKent Boortz2010-12-291-2/+2
|\ \ | |/
| * MergeKent Boortz2010-12-291-2/+2
| |\