Alterações na distribuição 4.0.2 (01 Jul 2002)
Cleaned up NULL handling for default values in DESCRIBE table_name.
- Fixed
truncate()to round up negative values to the nearest integer. - Changed
--chroot=pathoption to executechroot()immediately after all options have been parsed. - Don't allow database names that contain '
\'. lower_case_table_namesnow also affects database names.- Added
XORoperator (logical and bitwiseXOR) with^as a synonym for bitwiseXOR. - Added function
IS_FREE_LOCK('lock_name'). Based on code contributed by Hartmut Holzgraefe<hartmut@six.de>. - Removed
mysql_ssl_clear()from C API, as it was not needed. DECIMALandNUMERICtypes can now read exponential numbers.- Added
SHA1()function to calculate 160 bit hash value as described in RFC 3174 (Secure Hash Algorithm). This function can be considered a cryptographically more secure equivalent ofMD5(). See "Funções Diversas". - Added
AES_ENCRYPT()andAES_DECRYPT()functions to perform encryption according to AES standard (Rijndael). Leia "Funções Diversas". - Added
--single-transactionoption tomysqldump, allowing a consistent dump ofInnoDBtables. Leia "mysqldump, Descarregando a Estrutura de Tabelas e Dados". - Fixed bug in
innodb_log_group_home_dirinSHOW VARIABLES. - Fixed a bug in optimiser with merge tables when non-unique values are used in summing up (causing crashes).
- Fixed a bug in optimiser when a range specified makes index grouping impossible (causing crashes).
- Fixed a rare bug when
FULLTEXTindex is present and no tables are used. - Added privileges
CREATE TEMPORARY TABLES,EXECUTE,LOCK TABLES,REPLICATION CLIENT,REPLICATION SLAVE,SHOW DATABASESandSUPER. To use these, you must have run themysql_fix_privilege_tablesscript after upgrading. - Fixed query cache align data bug.
- Fixed mutex bug in replication when reading from master fails.
- Added missing mutex in
TRUNCATE TABLE; This fixes some core dump/hangup problems when usingTRUNCATE TABLE. - Fixed bug in multiple-table
DELETEwhen optimiser uses only indexes. - Fixed that
ALTER TABLE table_name RENAME new_table_nameis as fast asRENAME TABLE. - Fixed bug in
GROUP BYwith two or more fields, where at least one field can containNULLvalues. - Use
Turbo Boyer-Moorealgorithm to speed upLIKE '%keyword%'searches. - Fixed bug in
DROP DATABASEwith symlink. - Fixed crash in
REPAIR ... USE_FRM. - Fixed bug in
EXPLAINwithLIMIT offset != 0. - Fixed bug in phrase operator
'...'in boolean full-text search. - Fixed bug that caused duplicated rows when using truncation operator
*in boolean full-text search. - Fixed bug in truncation operator of boolean full-text search (incorrect results when there are only
+word*s in the query). - Fixed bug in boolean full-text search that caused a crash when an identical
MATCHexpression that did not use an index appeared twice. - Query cache is now automatically disabled in
mysqldump. - Fixed problem on Windows 98 that made sending of results very slow.
- Boolean full-text search weighting scheme changed to something more reasonable.
- Fixed bug in boolean full-text search that caused MariaDB to ignore queries of
ft_min_word_lencharacters. - Boolean full-text search now supports
phrase searches
. - New configure option
--without-query-cache. - Memory allocation strategy for
root memory
changed. Block size now grows with number of allocated blocks. INET_NTOA()now returnsNULLif you give it an argument that is too large (greater than the value corresponding to255.255.255.255).- Fix
SQL_CALC_FOUND_ROWSto work withUNIONs. It will work only if the firstSELECThas this option and if there is globalLIMITfor the entire statement. For the moment, this requires using parentheses for individualSELECTqueries within the statement. - Fixed bug in
SQL_CALC_FOUND_ROWSandLIMIT. - Don't give an error for
CREATE TABLE ...(... VARCHAR(0)). - Fixed
SIGINTandSIGQUITproblems inmysql.ccon Linux with someglibcversions. - Fixed bug in
convert.cc, which is caused by having an incorrectnet_store_length()linked in theCONVERT::store()method. DOUBLEandFLOATcolumns now honor theUNSIGNEDflag on storage.InnoDBnow retains foreign key constraints throughALTER TABLEandCREATE/DROP INDEX.InnoDBnow allows foreign key constraints to be added through theALTER TABLEsyntax.InnoDBtables can now be set to automatically grow in size (autoextend).- Added
--ignore-lines=noption tomysqlimport. This has the same effect as theIGNORE n LINESclause forLOAD DATA. - Fixed bug in
UNIONwith last offset being transposed to total result set. REPAIR ... USE_FRMadded.- Fixed that
DEFAULT_SELECT_LIMITis always imposed onUNIONresult set. - Fixed that some
SELECToptions can appear only in the firstSELECT. - Fixed bug with
LIMITwithUNION, where last select is in the braces. - Fixed that full-text works fine with
UNIONoperations. - Fixed bug with indexless boolean full-text search.
- Fixed bug that sometimes appeared when full-text search was used with
consttables. - Fixed incorrect error value when doing a
SELECTwith an emptyHEAPtable. - Use
ORDER BY column DESCnow sortsNULLvalues first. (In other words,NULLvalues sort first in all cases, whether or notDESCis specified.) This is changed back in 4.0.10. - Fixed bug in
WHERE key_name='constant' ORDER BY key_name DESC. - Fixed bug in
SELECT DISTINCT ... ORDER BY DESCoptimization. - Fixed bug in
... HAVING 'GROUP_FUNCTION'(xxx) IS [NOT] NULL. - Fixed bug in truncation operator for boolean full-text search.
- Allow value of
--user=#option formysqldto be specified as a numeric user ID. - Fixed a bug where
SQL_CALC_ROWSreturned an incorrect value when used with one table andORDER BYand withInnoDBtables. - Fixed that
SELECT 0 LIMIT 0doesn't hang thread. - Fixed some problems with
USE/IGNORE INDEXwhen using many keys with the same start column. - Don't use table scan with
BerkeleyDBandInnoDBtables when we can use an index that covers the whole row. - Optimized
InnoDBsort-buffer handling to take less memory. - Fixed bug in multi-table
DELETEandInnoDBtables. - Fixed problem with
TRUNCATEandInnoDBtables that produced the errorCan't execute the given command because you have active locked tables or an active transaction. - Added
NO_UNSIGNED_SUBTRACTIONto the set of flags that may be specified with the--sql-modeoption formysqld. It disables unsigned arithmetic rules when it comes to subtraction. (This will make MariaDB behave more like 3.23 withUNSIGNEDcolumns). - The result returned for all bit functions (
|,<<, ...) is now of typeunsigned integer. - Added detection of
nanvalues inMyISAMto make it possible to repair tables withnanin float or double columns. - Fixed new bug in
myisamchkwhere it didn't correctly update number ofparts
in theMyISAMindex file. - Changed to use
autoconf2.52 (fromautoconf2.13). - Fixed optimization problem where the MariaDB Server was in
preparing
state for a long time when selecting from an empty table which had contained a lot of rows. - Fixed bug in complicated join with
consttables. This fix also improves performance a bit when referring to another table from aconsttable. - First pre-version of multi-table
UPDATEstatement. - Fixed bug in multi-table
DELETE. - Fixed bug in
SELECT CONCAT(argument_list) ... GROUP BY 1. INSERT ... SELECTdid a full rollback in case of an error. Fixed so that we only roll back the last statement in the current transaction.- Fixed bug with empty expression for boolean full-text search.
- Fixed core dump bug in updating full-text key from/to
NULL. - ODBC compatibility: Added
BIT_LENGTH()function. - Fixed core dump bug in
GROUP BY BINARY column. - Added support for
NULLkeys inHEAPtables. - Use index for
ORDER BYin queries of type:SELECT * FROM t WHERE key_part1=1 ORDER BY key_part1 DESC,key_part2 DESC - Fixed bug in
FLUSH QUERY CACHE. - Added
CAST()andCONVERT()functions. TheCASTandCONVERTfunctions are nearly identical and mainly useful when you want to create a column with a specific type in aCREATE ... SELECTstatement. For more information, read "Funções de Conversão". CREATE ... SELECTonDATEandTIMEfunctions now create columns of the expected type.- Changed order in which keys are created in tables.
- Added new columns
NullandIndex_typetoSHOW INDEXoutput. - Added
--no-beepand--promptoptions toMariaDBcommand-line client. - New feature: management of user resources.
GRANT ... WITH MAX_QUERIES_PER_HOUR N1 MAX_UPDATES_PER_HOUR N2 MAX_CONNECTIONS_PER_HOUR N3;
- Added
mysql_secure_installationto thescripts/directory.