MariaDB server is a community developed fork of MySQL server. Started by core members of the original MySQL team, MariaDB actively works with outside developers to deliver the most featureful, stable, and sanely licensed open SQL server in the industry.
Find a file
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
BitKeeper Merge pilot.blaudden:/home/msvensson/mysql/mysql-5.0-maint 2007-05-15 18:23:36 +02:00
BUILD Merge pippilotta.erinye.com:/shared/home/df/mysql/build/mysql-5.1-build-work-17707 2007-05-30 17:21:07 +02:00
client Merge trift2.:/MySQL/M51/mysql-5.1 2007-06-06 19:59:18 +02:00
cmd-line-utils WL#2936 - Falcon & MySQL plugin interface: server variables 2007-04-30 18:49:38 +02:00
config/ac-macros sql_parse.cc, config-win.h, config-netware.h: 2007-05-27 23:21:03 +02:00
dbug WL#3817: Simplify string / memory area types and make things more consistent (first part) 2007-05-10 12:59:39 +03:00
debian Made changes to debian control files to support building 5.1 packages. 2007-04-20 16:15:30 -07:00
Docs Merge mysql.com:/home/kent/bk/tmp/mysql-5.0-build 2007-03-22 19:44:14 +01:00
extra Merge jamppa@bk-internal.mysql.com:/home/bk/mysql-5.1 2007-05-24 13:24:36 +03:00
include Merge trift2.:/MySQL/M51/mysql-5.1 2007-06-06 19:59:18 +02:00
libmysql Merge quadxeon.mysql.com:/benchmarks/ext3/TOSAVE/tsmith/bk/51 2007-06-05 17:51:30 +02:00
libmysql_r my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
libmysqld Merge jamppa@bk-internal.mysql.com:/home/bk/mysql-5.1 2007-05-24 13:24:36 +03:00
man my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
mysql-test Bug#27857 (Log tables supplies the wrong value for generating AUTO_INCREMENT 2007-06-13 22:05:22 -06:00
mysys Merge trift2.:/MySQL/M51/mysql-5.1 2007-06-06 19:59:18 +02:00
netware Merge trift2.:/MySQL/M50/mysql-5.0 2007-05-02 14:08:43 +02:00
plugin Merge jbruehe@bk-internal.mysql.com:/home/bk/mysql-5.1 2007-06-01 12:59:06 +02:00
pstack my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
regex WL#3817: Simplify string / memory area types and make things more consistent (first part) 2007-05-10 12:59:39 +03:00
scripts Merge tsmith.mysql.internal:m/bk/maint/b4858/51 2007-05-31 00:29:02 +02:00
server-tools Merge quadxeon.mysql.com:/benchmarks/ext3/TOSAVE/tsmith/bk/51 2007-06-05 17:51:30 +02:00
sql Bug#27857 (Log tables supplies the wrong value for generating AUTO_INCREMENT 2007-06-13 22:05:22 -06:00
sql-bench Fixed compiler warnings 2007-02-23 13:13:55 +02:00
sql-common Merge quadxeon.mysql.com:/benchmarks/ext3/TOSAVE/tsmith/bk/51 2007-06-05 17:51:30 +02:00
storage Merge whalegate.ndb.mysql.com:/home/tomas/mysql-5.1-new-ndb 2007-06-06 16:51:04 +02:00
strings ctype-bin.c: 2007-06-06 00:22:35 +02:00
support-files Added casts to avoid compiler warnings and fixed a wrong type. 2007-05-31 17:45:22 +03:00
tests Manual merge of Bug 27592 (5.0-runtime to 5.1-runtime) 2007-06-11 15:20:46 -06:00
unittest Makefile.am: 2007-05-28 22:18:51 +02:00
vio Merge quadxeon.mysql.com:/benchmarks/ext3/TOSAVE/tsmith/bk/51 2007-06-05 17:51:30 +02:00
win Merge quadxeon.mysql.com:/benchmarks/ext3/TOSAVE/tsmith/bk/51 2007-06-05 17:51:30 +02:00
zlib Merge mysql.com:/home/kent/bk/tmp3/mysql-5.0-build 2007-04-11 01:48:43 +02:00
.bzrignore Merge bodhi.(none):/opt/local/work/mysql-5.0-runtime 2007-06-01 18:11:21 +04:00
.cvsignore Import changeset 2000-07-31 21:29:14 +02:00
CMakeLists.txt Post Merge fixup. 2007-06-01 20:37:45 -04:00
configure.in Merge jbruehe@bk-internal.mysql.com:/home/bk/mysql-5.1 2007-06-01 12:59:06 +02:00
COPYING - manual.texi will be replaced with a manual written in DocBook/XML. This ChangeSet removes all 2005-04-13 11:51:38 +02:00
EXCEPTIONS-CLIENT EXCEPTIONS-CLIENT: 2007-03-14 18:28:16 +01:00
Makefile.am Makefile.am : Bypass bug#28685 and skip the "rowlock" suite in the release builds. 2007-05-25 23:08:31 +02:00
README make_binary_distribution.sh: 2006-11-07 22:26:37 +01:00

This is a release of MySQL, a dual-license SQL database server.
MySQL is brought to you by the MySQL team at MySQL AB.

License information can be found in these files:
- For GPL (free) distributions, see the COPYING file and
  the EXCEPTIONS-CLIENT file.
- For commercial distributions, see the LICENSE.mysql file.


For further information about MySQL or additional documentation, see:
- The latest information about MySQL: http://www.mysql.com
- The current MySQL documentation: http://dev.mysql.com/doc

Some manual sections of special interest:

- If you are migrating from an older version of MySQL, please read the
  "Upgrading from..." section first!
- To see what MySQL can do, take a look at the features section.
- For installation instructions, see the Installing and Upgrading chapter.
- For the new features/bugfix history, see the Change History appendix.
- For the currently known bugs/misfeatures (known errors) see the Problems
  and Common Errors appendix.
- For a list of developers and other contributors, see the Credits
  appendix.

A local copy of the MySQL Reference Manual can be found in the Docs
directory in GNU Info format.  You can also browse the manual online or
download it in any of several formats at the URL given earlier in this
file.

************************************************************

IMPORTANT:

Bug or error reports should be sent to http://bugs.mysql.com.