Alterações na distribuição 3.21.12
Fixed ftruncate() call in MIT-pthreads. This made isamchk destroy the .ISM files on (Free)BSD 2.x systems.
- Fixed broken
__P_patch in MIT-pthreads. - Many memory overrun checks. All string functions now return
NULLif the returned string should be longer thanmax_allowed_packetbytes. - Changed the name of the
INTERVALtype toENUM, becauseINTERVALis used in SQL-99. - In some cases, doing a
JOIN+GROUP+INTO OUTFILE, the result wasn't grouped. LIKEwith'_'as last character didn't work. Fixed.- Added extended SQL-99
TRIM()function. - Added
CURTIME(). - Added
ENCRYPT()function by Zeev Suraski. - Fixed better
FOREIGN KEYsyntax skipping. New reserved words:MATCH,FULL,PARTIAL. mysqldnow allows IP number and hostname for the--bind-addressoption.- Added
SET CHARACTER SET cp1251_koi8to enable conversions of data to and from thecp1251_koi8character set. - Lots of changes for Windows 95 port. In theory, this version should now be easily portable to Windows 95.
- Changed the
CREATE COLUMNsyntax ofNOT NULLcolumns to be after theDEFAULTvalue, as specified in the SQL-99 standard. This will makemysqldumpwithNOT NULLand default values incompatible with MariaDB Version 3.20. - Added many function name aliases so the functions can be used with ODBC or SQL-92 syntax.
- Fixed syntax of
ALTER TABLE tbl_name ALTER COLUMN col_name SET DEFAULT NULL. - Added
CHARandBITas synonyms forCHAR(1). - Fixed core dump when updating as a user who has only
SELECTprivilege. INSERT ... SELECT ... GROUP BYdidn't work in some cases. AnInvalid use of group functionerror occurred.- When using
LIMIT,SELECTnow always uses keys instead of record scan. This will give better performance onSELECTand aWHEREthat matches many rows. - Added Russian error messages.