summaryrefslogtreecommitdiff
path: root/sql/sql_locale.cc
Commit message (Collapse)AuthorAgeFilesLines
* Updated/added copyright headersKent Boortz2011-06-301-2/+2
|\
| * Updated/added copyright headersKent Boortz2011-06-301-2/+5
| |\
| | * Updated/added copyright headersKent Boortz2011-06-301-2/+3
| | |
* | | Bug#34043: Server loops excessively in _checkchunk() when safemalloc is enabledDavi Arnaut2010-07-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Essentially, the problem is that safemalloc is excruciatingly slow as it checks all allocated blocks for overrun at each memory management primitive, yielding a almost exponential slowdown for the memory management functions (malloc, realloc, free). The overrun check basically consists of verifying some bytes of a block for certain magic keys, which catches some simple forms of overrun. Another minor problem is violation of aliasing rules and that its own internal list of blocks is prone to corruption. Another issue with safemalloc is rather the maintenance cost as the tool has a significant impact on the server code. Given the magnitude of memory debuggers available nowadays, especially those that are provided with the platform malloc implementation, maintenance of a in-house and largely obsolete memory debugger becomes a burden that is not worth the effort due to its slowness and lack of support for detecting more common forms of heap corruption. Since there are third-party tools that can provide the same functionality at a lower or comparable performance cost, the solution is to simply remove safemalloc. Third-party tools can provide the same functionality at a lower or comparable performance cost. The removal of safemalloc also allows a simplification of the malloc wrappers, removing quite a bit of kludge: redefinition of my_malloc, my_free and the removal of the unused second argument of my_free. Since free() always check whether the supplied pointer is null, redudant checks are also removed. Also, this patch adds unit testing for my_malloc and moves my_realloc implementation into the same file as the other memory allocation primitives.
* | | WL#5030: Split and remove mysql_priv.hMats Kindahl2010-03-311-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch: - Moves all definitions from the mysql_priv.h file into header files for the component where the variable is defined - Creates header files if the component lacks one - Eliminates all include directives from mysql_priv.h - Eliminates all circular include cycles - Rename time.cc to sql_time.cc - Rename mysql_priv.h to sql_priv.h
* | | Manual-merge from mysql-trunk-merge.Alexander Nozdrin2009-11-061-2/+2
|\ \ \ | |/ /
| * | Bug#43207 wrong LC_TIME names for romanian localeAlexander Barkov2009-10-191-2/+2
| |/ | | | | | | | | | | A contributed patch by Andrei Boros (SCA signed). - Fixing locale definition file - Adding tests
* | A postfix for Bug#46633 Obsolete Serbian locale nameAlexander Barkov2009-10-291-6/+65
| | | | | | | | Re-Allowing sr_YU with a "deprecated" warning.
* | Bug#46633 Obsolete Serbian locale nameAlexander Barkov2009-10-191-27/+27
| | | | | | | | | | - Renaming sr_YU to sr_RS - Adding test case
* | WL#751 Error message construction, backportSergey Glukhov2009-10-151-112/+266
| |
* | Backporting WL#4642 Greek locale for DAYNAME, MONTHNAME, DATE_FORMATAlexander Barkov2009-10-061-0/+72
| | | | | | | | | | | | | | | | | | | | added: mysql-test/r/locale.result mysql-test/t/locale.test modified: mysql-test/r/variables.result mysql-test/t/variables.test sql/sql_locale.cc
* | WL#4584 Internationalized number formatAlexander Barkov2009-10-051-109/+438
|/ | | | | | | | | | | | | | | | | | | | | | | @ mysql-test/r/func_str.result Adding tests @ mysql-test/t/func_str.test Adding tests @ mysql-test/t/variables.test Fixing error number @ sql/item_create.cc Allowing 2 and 3 arguments to format() @ sql/item_strfunc.cc Adding new formatting code. @ sql/item_strfunc.h Adding new contructors and "locale" member @ sql/mysql_priv.h Adding number formatting members into MY_LOCALE @ sql/sql_locale.cc Adding number formatting data into locale constants @ sql/set_var.cc Using new error message @ sql/share/errmgs.txt Adding new error message
* Bug#37575 UCASE fails on monthnameSergey Glukhov2008-12-231-109/+327
| | | | | | | | The MONTHNAME/DAYNAME functions returns binary string, so the LOWER/UPPER functions are not effective on the result of MONTHNAME/DAYNAME call. Character set of the MONTHNAME/DAYNAME function result has been changed to connection character set.
* Merge mysql.com:/nfsdisk1/lars/bkroot/mysql-5.0-rpllars/lthalmann@mysql.com/dl145j.mysql.com2007-01-121-120/+1234
|\ | | | | | | into mysql.com:/nfsdisk1/lars/MERGE/mysql-5.0-merge
| * Merging bug#22645 "LC_TIME_NAMES: Statement not replicated" from 4.1.bar@mysql.com/bar.intranet.mysql.r18.ru2006-12-051-327/+327
| |
| * Bug#22645 LC_TIME_NAMES: Statement not replicatedbar@mysql.com/bar.intranet.mysql.r18.ru2006-12-051-120/+1125
| | | | | | | | | | | | | | Problem: replication of LC_TIME_NAMES didn't work. Thus, INSERTS or UPDATES using date_format() always worked with en_US on the slave side. Fix: adding ONE_SHOT implementation for LC_TIME_NAMES.
| * Backporting Kostja's changes made for 5.0 into 4.1.bar@mysql.com/bar.intranet.mysql.r18.ru2006-07-181-109/+109
| | | | | | | | Please use "ul" when merging this changeset to 5.0.
* | Many files:kent@mysql.com/kent-amd64.(none)2006-12-231-2/+1
| | | | | | | | Changed header to GPL version 2 only
* | Fix compile errors in VC++ 7.0sergefp@mysql.com2006-08-211-218/+109
| |
* | Fix yet another Windows build failure: "true" -> TRUEkostja@bodhi.local2006-07-111-14/+14
| |
* | Fix a Windows build failure. kostja@bodhi.local2006-07-101-95/+95
|/
* WL#2928 Date Translation NREbar@mysql.com2006-07-041-0/+1607
(implemented by by Josh Chamas)