diff options
Diffstat (limited to 'Docs/manual.texi')
-rw-r--r-- | Docs/manual.texi | 38 |
1 files changed, 33 insertions, 5 deletions
diff --git a/Docs/manual.texi b/Docs/manual.texi index 28219eabcaf..fb7fe288082 100644 --- a/Docs/manual.texi +++ b/Docs/manual.texi @@ -2433,7 +2433,7 @@ mysql> SHOW STATUS; If a bug or problem occurs while running @strong{mysqld}, try to provide an input script that will reproduce the anomaly. This script should include any necessary source files. The more closely the script can reproduce your -situation, the better. If you can make a repeatable test case, you should +situation, the better. If you can make a reproduceable test case, you should post this to @email{bugs@@lists.mysql.com} for a high priority treatment! If you can't provide a script, you should at least include the output @@ -3532,12 +3532,18 @@ an application when you delete records from a table that has a foreign key. In practice this is as quick (in some cases quicker) and much more portable than using foreign keys. +In MySQL 4.0 you can use multi-table delete to delete rows from many +tables with one command. @xref{DELETE}. + In the near future we will extend the @code{FOREIGN KEY} implementation so that at least the information will be saved in the table specification file and may be retrieved by @code{mysqldump} and ODBC. At a later stage we will implement the foreign key constraints for application that can't easily be coded to avoid them. +MySQL 3.23.44 and forwards, InnoDB tables supports checking of foreign +key constraints. @xref{InnoDB}. + @menu * Broken Foreign KEY:: Reasons NOT to use foreign keys constraints @end menu @@ -4033,8 +4039,13 @@ If the date is totally wrong, MySQL will store the special 0000-00-00 date value in the column. @item -If you set an @code{enum} to an unsupported value, it will be set to +If you set an @code{ENUM} column to an unsupported value, it will be set to the error value 'empty string', with numeric value 0. + +@item +If you set an @code{SET} column to an unsupported value, the value will +be ignored. @xref{Bugs}. + @end itemize @item @@ -4775,7 +4786,7 @@ Included in the MySQL distribution are two different testing suites, @file{mysql-test-run} and @uref{http://www.mysql.com/information/crash-me.php,crash-me}, as well as a benchmark suite. The test system is actively updated with code to -test each new feature and almost all repeatable bugs that have come to +test each new feature and almost all reproduceable bugs that have come to our attention. We test MySQL with these on a lot of platforms before every release. These tests are more sophisticated than anything we have seen from PostgreSQL, and they ensures that the MySQL is kept to a high @@ -4935,6 +4946,18 @@ Standard usage in PostgreSQL is closer to ANSI SQL in some cases. One can speed up PostgreSQL by coding things as stored procedures. @item +For geographical data, R-TREES makes PostgreSQL better than MySQL. + +@item +The PostgreSQL optimizer can do some optimization that the current MySQL +optimizer can't do. Most notable is doing joins when you don't have the +proper keys in place and doing a join where you are using different keys +combined with OR. The MySQL benchmark suite at +@uref{http://www.mysql.com/information/benchmarks.html} shows you what +kind of constructs you should watch out for when using different +databases. + +@item PostgreSQL has a bigger team of developers that contribute to the server. @end itemize @@ -29146,6 +29169,9 @@ specified at table creation time. For example, if a column is specified as @code{SET("a","b","c","d")}, then @code{"a,d"}, @code{"d,a"}, and @code{"d,a,a,d,d"} will all appear as @code{"a,d"} when retrieved. +If you set a @code{SET} column to an unsupported value, the value will +be ignored. + @code{SET} values are sorted numerically. @code{NULL} values sort before non-@code{NULL} @code{SET} values. @@ -33790,8 +33816,10 @@ column in a table, the default value is the current date and time. @xref{Date and time types}. @item -For string types other than @code{ENUM}, the default value is the empty string. -For @code{ENUM}, the default is the first enumeration value. +For string types other than @code{ENUM}, the default value is the empty +string. For @code{ENUM}, the default is the first enumeration value (if +you haven't explicitely specified another default value with the +@code{DEFAULT} directive). @end itemize Default values must be constants. This means, for example, that you cannot |