Commit graph

47743 commits

Author SHA1 Message Date
tomas@whalegate.ndb.mysql.com
71bbcc0e84 move all error codes to ndberror.c
- step 1 mgmtsrvr error codes
2007-06-14 11:26:54 +02:00
mats@kindahl-laptop.dnsalias.net
61ac88f313 WL#3303 (RBR: Engine-controlled logging format):
Test case fixes.
2007-06-14 11:05:48 +02:00
malff/marcsql@weblab.(none)
dd2bdfda8d Bug#27857 (Log tables supplies the wrong value for generating AUTO_INCREMENT
numbers)

Before this patch, the code in the class Log_to_csv_event_handler, which is
used by the global LOGGER object to write to the tables mysql.slow_log and
mysql_general_log, was supporting only records of the format defined for
these tables in the database creation scripts.

Also before this patch, the server would allow, with certain limitations,
to perform ALTER TABLE on the LOG TABLES.

As implemented, the behavior of the server, with regards to LOG TABLES,
is inconsistent:
- either ALTER TABLES on LOG TABLES should be prohibited,
and the code writing to these tables can make assumptions on the record
format,
- or ALTER TABLE on LOG TABLES is permitted, in which case the code
writing a record to these tables should be more flexible and honor
new fields.

In particular, adding an AUTO_INCREMENT column to the logs,
does not work as expected (per the bug report).

Given that the ALTER TABLE on log tables statement has been explicitly
implemented to check that the log should be off to perform the operation,
and that current test cases already cover this, the user expectation is
already set that this is a "feature" and should be supported.

With this patch, the server will:
- populate AUTO INCREMENT columns if present,
- populate any additional column with it's default value
when writing a record to the LOG TABLES.

Tests are provided, that detail the precise sequence of statements
a SUPER user might want to perform to add more columns to the log tables.
2007-06-13 22:05:22 -06:00
stewart@willster.(none)
afdee6e0a5 fix build of mgm client with history - caught by pb. 2007-06-14 11:59:25 +10:00
dkatz@damien-katzs-computer.local
65e47d59db Bug #28897 UUID() returns non-unique values when query cache is enabled
Removed the ability to cache queries with UUID() and UUID_SHORT().
2007-06-13 17:25:16 -04:00
dkatz@damien-katzs-computer.local
7a303bc80e Merge damien-katzs-computer.local:/Users/dkatz/mysql50
into  damien-katzs-computer.local:/Users/dkatz/mysql51
2007-06-13 16:37:16 -04:00
dkatz@damien-katzs-computer.local
471173c57c Bug #28953 Using events in a replication let the slave crash.
Fixed where the slave code would try to update the Lex->sphead which is NULL on an "alter table" commands.
2007-06-13 16:24:21 -04:00
dkatz@damien-katzs-computer.local
c67c49fff0 Merge damien-katzs-computer.local:/Users/dkatz/mysql50
into  damien-katzs-computer.local:/Users/dkatz/50_win
2007-06-13 15:47:34 -04:00
dkatz@damien-katzs-computer.local
1481bfc87b Bug #28897 UUID() returns non-unique values when query cache is enabled
Removed the ability to cache queries containing "UUID()".
2007-06-13 14:23:25 -04:00
jmiller/ndbdev@mysql.com/ndb08.mysql.com
422d7999b5 rpl_known_bugs_detection.test:
Updated to use new tool(s):Missed on call, resubmitting
2007-06-13 19:52:42 +02:00
df@pippilotta.erinye.com
02f5ba1076 Merge pippilotta.erinye.com:/shared/home/df/mysql/build/mysql-5.0-build
into  pippilotta.erinye.com:/shared/home/df/mysql/build/mysql-5.1-build
2007-06-13 19:29:13 +02:00
df@pippilotta.erinye.com
f58ca7e057 Merge pippilotta.erinye.com:/shared/home/df/mysql/build/mysql-4.1-build
into  pippilotta.erinye.com:/shared/home/df/mysql/build/mysql-5.0-build
2007-06-13 19:24:46 +02:00
df@pippilotta.erinye.com
35413f161a fix. 2007-06-13 19:23:13 +02:00
df@pippilotta.erinye.com
c8ea368b80 Merge pippilotta.erinye.com:/shared/home/df/mysql/build/mysql-5.0-build
into  pippilotta.erinye.com:/shared/home/df/mysql/build/mysql-5.1-build
2007-06-13 19:20:14 +02:00
df@pippilotta.erinye.com
6db1887a5c fix make_win_bin_dist typo 2007-06-13 19:19:11 +02:00
igor@olga.mysql.com
20ad515003 Fixed bug #28980: the result of ROUND(<decimal expr>,<int column>)
was erroneously converted to double, while the result of
ROUND(<decimal expr>, <int literal>) was preserved as decimal.
As a result of such a conversion the value of ROUND(D,A) could
differ from the value of ROUND(D,val(A)) if D was a decimal expression.

Now the result of the ROUND function is never converted to 
double if the first argument is decimal.
2007-06-13 09:32:36 -07:00
jmiller/ndbdev@ndb08.mysql.com
8b44b6f593 Merge jmiller@bk-internal.mysql.com:/home/bk/mysql-5.1-maint
into  mysql.com:/data2/mysql-5.1-maint
2007-06-13 17:44:21 +02:00
jmiller/ndbdev@mysql.com/ndb08.mysql.com
61873b6765 rpl_known_bugs_detection.test:
Updated to use new tool(s)
2007-06-13 17:43:31 +02:00
mhansson@dl145s.mysql.com
b87dbfe949 Merge mhansson@bk-internal.mysql.com:/home/bk/mysql-5.1-opt
into  dl145s.mysql.com:/users/mhansson/mysql/autopush/5.1o-bug27634
2007-06-13 16:01:16 +02:00
stewart@flamingspork.com[stewart]
13c4d317bb [PATCH] add knielsen as MAINTAINER of NDBAPI NdbRecord examples
Index: ndb-merge/storage/ndb/MAINTAINERS
===================================================================
2007-06-13 23:53:01 +10:00
stewart@flamingspork.com[stewart]
1518abe7f9 [PATCH] Add MAINTAINERS file for NDB
Index: ndb-merge/storage/ndb/MAINTAINERS
===================================================================
2007-06-13 23:52:47 +10:00
df@pippilotta.erinye.com
990ac2cc3f Merge pippilotta.erinye.com:/shared/home/df/mysql/build/mysql-5.0-build
into  pippilotta.erinye.com:/shared/home/df/mysql/build/mysql-5.1-build
2007-06-13 15:39:04 +02:00
df@pippilotta.erinye.com
40f8aa1fd6 Merge pippilotta.erinye.com:/shared/home/df/mysql/build/mysql-4.1-build
into  pippilotta.erinye.com:/shared/home/df/mysql/build/mysql-5.0-build
2007-06-13 15:36:47 +02:00
stewart@flamingspork.com[stewart]
155390c3a7 [PATCH] BUG#29074 preserve file timestamps in ndb_error_reporter
Index: ndb-work/storage/ndb/tools/ndb_error_reporter
===================================================================
2007-06-13 23:34:36 +10:00
df@pippilotta.erinye.com
23ce2ec53c Merge pippilotta.erinye.com:/shared/home/df/mysql/build/mysql-5.0-build
into  pippilotta.erinye.com:/shared/home/df/mysql/build/mysql-5.1-build
2007-06-13 15:34:30 +02:00
stewart@flamingspork.com[stewart]
85eba85b40 [PATCH] Enable test for (Closed) bug 16445
Bug was updated on May 30th by Tomas to say that hasn't been seen in PB
since global dict cache rewrite. This test should probably be enabled then.

Index: ndb-work/mysql-test/t/ndb_basic.test
===================================================================
2007-06-13 23:34:22 +10:00
stewart@flamingspork.com[stewart]
7a8961fca3 [PATCH] BUG#29073 Store history for ndb_mgm
Index: ndb-work/storage/ndb/src/mgmclient/main.cpp
===================================================================
2007-06-13 23:34:09 +10:00
stewart@flamingspork.com[stewart]
367076371e [PATCH] Add tests for ndb variables (related to BUG#26675)
This is somewhat related to BUG#26675 (ndb_connectstring not reported
in show global variables)

Index: ndb-work/mysql-test/r/ndb_basic.result
===================================================================
2007-06-13 23:33:51 +10:00
stewart@flamingspork.com[stewart]
35006868d1 [PATCH] Disable mysql_upgrade test (Bug#28560)
Index: ndb-work/mysql-test/t/disabled.def
===================================================================
2007-06-13 23:33:37 +10:00
malff/marcsql@weblab.(none)
daf0b9274f Fixed valgrind error, caused by incorrect pointer arithetic 2007-06-13 07:31:41 -06:00
mats@kindahl-laptop.dnsalias.net
4ecdd55b49 Merge kindahl-laptop.dnsalias.net:/home/bkroot/mysql-5.1-rpl
into  kindahl-laptop.dnsalias.net:/home/bk/b24954-mysql-5.1-new-rpl
2007-06-13 15:18:39 +02:00
mats@kindahl-laptop.dnsalias.net
c6bfb5b4ef Fixing some trivial test problems. 2007-06-13 15:16:33 +02:00
df@pippilotta.erinye.com
9dc622e540 Merge dfischer@bk-internal.mysql.com:/home/bk/mysql-4.1-build
into  pippilotta.erinye.com:/shared/home/df/mysql/build/mysql-4.1-build
2007-06-13 15:13:54 +02:00
df@pippilotta.erinye.com
fb3a572ff8 Merge pippilotta.erinye.com:/shared/home/df/mysql/build/mysql-5.0-build
into  pippilotta.erinye.com:/shared/home/df/mysql/build/mysql-5.0-build-work
2007-06-13 15:13:08 +02:00
df@pippilotta.erinye.com
1eae867a4f Merge dfischer@bk-internal.mysql.com:/home/bk/mysql-5.0-build
into  pippilotta.erinye.com:/shared/home/df/mysql/build/mysql-5.0-build
2007-06-13 15:11:58 +02:00
df@pippilotta.erinye.com
e84571f742 Merge pippilotta.erinye.com:/shared/home/df/mysql/build/mysql-5.1-build
into  pippilotta.erinye.com:/shared/home/df/mysql/build/mysql-5.1-build-work
2007-06-13 15:10:45 +02:00
df@pippilotta.erinye.com
a98dca4c87 Merge dfischer@bk-internal.mysql.com:/home/bk/mysql-5.1-build
into  pippilotta.erinye.com:/shared/home/df/mysql/build/mysql-5.1-build
2007-06-13 15:09:49 +02:00
joerg@trift2.
b3917e94fa Merge trift2.:/MySQL/M50/push-5.0
into  trift2.:/MySQL/M51/push-5.1
2007-06-13 15:04:21 +02:00
joerg@trift2.
a4494a1b81 Merge trift2.:/MySQL/M41/push-4.1
into  trift2.:/MySQL/M50/push-5.0
2007-06-13 14:57:31 +02:00
stewart@flamingspork.com[stewart]
23eb8698dc [PATCH] BUG#29063 mgmapi: connect timeout set incorrectly
correctly divide timeout by 1000 to convert to seconds for SocketClient

Index: ndb-work/storage/ndb/src/mgmapi/mgmapi.cpp
===================================================================
2007-06-13 22:54:14 +10:00
stewart@flamingspork.com[stewart]
17fc7a8161 [PATCH] BUG#29063 TESTCASE mgmapi: connect timeout set incorrectly
Add test to testMgm for Connect timeout. add to autotest.

Index: ndb-work/storage/ndb/test/ndbapi/testMgm.cpp
===================================================================
2007-06-13 22:54:00 +10:00
joerg@trift2.
f004ab37ef Merge trift2.:/MySQL/M50/merge-5.0
into  trift2.:/MySQL/M50/push-5.0
2007-06-13 14:52:45 +02:00
joerg@trift2.
4d8632f2e0 Merge trift2.:/MySQL/M51/merge-5.1
into  trift2.:/MySQL/M51/push-5.1
2007-06-13 14:43:57 +02:00
joerg@trift2.
536ea333d8 Merge trift2.:/MySQL/M50/push-5.0
into  trift2.:/MySQL/M51/push-5.1
2007-06-13 14:36:18 +02:00
df@pippilotta.erinye.com
5ce49c284f Merge pippilotta.erinye.com:/shared/home/df/mysql/build/mysql-5.0-build
into  pippilotta.erinye.com:/shared/home/df/mysql/build/mysql-5.1-build
2007-06-13 14:24:31 +02:00
joerg@trift2.
4ed489d66b Merge trift2.:/MySQL/M50/merge-5.0
into  trift2.:/MySQL/M51/merge-5.1
2007-06-13 14:23:09 +02:00
joerg@trift2.
36adff6d0d Merge trift2.:/MySQL/M41/tmp-4.1
into  trift2.:/MySQL/M50/merge-5.0
2007-06-13 13:55:42 +02:00
joerg@trift2.
a4a2c7202c Merge trift2.:/MySQL/M41/tmp-4.1
into  trift2.:/MySQL/M41/push-4.1
2007-06-13 13:35:04 +02:00
joerg@trift2.
018a5d403b sql/item_func.cc
Improved check for thread identity in the "embedded" case,
    provided by Monty.
    
    This finishes the fixes for bug#27078.
2007-06-13 13:33:00 +02:00
df@pippilotta.erinye.com
6de0de60cf Merge pippilotta.erinye.com:/shared/home/df/mysql/build/mysql-5.1-post-commit
into  pippilotta.erinye.com:/shared/home/df/mysql/build/mysql-5.1-build
2007-06-13 13:19:43 +02:00