summaryrefslogtreecommitdiff
path: root/sql/sql_string.cc
Commit message (Collapse)AuthorAgeFilesLines
* fix call of string::copy() if HAVE_FCONVERT is settomas@poseidon.ndb.mysql.com2004-11-011-1/+2
|
* A fix according to Monty's request:bar@mysql.com2004-10-291-11/+14
| | | | | "uint *errors" is now a non-optional parameter in String:copy() and copy_and_convert().
* Produce a "truncated" warning if a value cannot be convertedbar@mysql.com2004-10-281-4/+17
| | | | into the column character set on INSERT/UPDATE.
* Review of all code pushed since last reviewmonty@mishka.local2004-10-201-1/+2
| | | | | | | Simple optimzations and cleanups Removed compiler warnings and fixed portability issues Added client functions 'mysql_embedded()' to allow client to check if we are using embedded server Fixes for purify
* Critical fixes after review:bar@mysql.com2004-06-161-1/+1
| | | | | | | - mutex was unlocked before the end of the critical sesion, - Portability issue: It's better to use (*alloc)(x) instead of alloc(x), if alloc is a function passed as an argument. - Use {} around if() block, to avoid possible problems with some Windows compilers.
* Allocate memory when a character set is requested:bar@mysql.com2004-06-111-1/+1
| | | | | | - For simple character sets: from_uni convertion table. - For UCA: alternative weight arrays. Use mbminlen instead of MY_CS_NONTEXT
* assert.h needed for my_dbug.h now is included in my_dbug.h, where it for konstantin@mysql.com2004-06-101-1/+0
| | | | | some reason wasn't included before. A lot of files cleaned up from #include <assert.h>
* sql_string.h:bar@bar.intranet.mysql.r18.ru2004-05-251-34/+0
| | | | | | | Not used code. , sql_string.cc: Not used code.
* 1. Some optimization when conversion is not needed.bar@bar.intranet.mysql.r18.ru2004-05-251-15/+28
| | | | | 2. One now must pass length argument into append(const char *str, uint length), length is not calculated internally anymore.
* Support for character set conversion in binary protocol: another gokonstantin@mysql.com2004-05-251-11/+34
| | | | | | | | | | after Monty's review. - Item_param was rewritten. - it turns out that we can't convert string data to character set of connection on the fly, because they first should be written to the binary log. To support efficient conversion we need to rewrite prepared statements binlogging code first.
* Formatting changes requested by Montymagnus@neptunus.(none)2004-04-151-1/+1
|
* Disable INSERT DELAYED for embedded librarymonty@mysql.com2004-03-291-2/+7
|
* Optimized GIS functionsmonty@mashka.mysql.fi2004-03-041-12/+4
|
* Merge with public treemonty@mysql.com2004-02-161-4/+49
|\
| * After merge fixesmonty@mysql.com2004-02-161-3/+48
| | | | | | | | | | | | | | Added more DBUG statements Ensure that we are comparing end space with BINARY strings Use 'any_db' instead of '' to mean any database. (For HANDLER command) Only strip ' ' when comparing CHAR, not other space-like characters (like \t)
| * Merge with 4.0.18monty@mysql.com2004-02-111-3/+3
| |\
| | * a proper fix for the bug #2298 Trailing whitespace inconsistently handled in ↵ram@gw.mysql.r18.ru2004-01-221-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | WHERE clause. <monty> ramil, in MySQL/MyISAM we should only strip end space, not 'space-like' characters. <monty> This is according to SQL; When doing a comparision end space and only end space are ignored.
* | | Merge bk-internal:/home/bk/mysql-4.1/serg@serg.mylan2004-02-131-1/+1
|\ \ \ | |/ / |/| | | | | into serg.mylan:/usr/home/serg/Abk/mysql-4.1
| * | small optimizationserg@serg.mylan2004-02-131-1/+1
| | |
* | | An include was missing.jani@ua141d10.elisa.omakaista.fi2004-02-101-0/+1
| | |
* | | Added --compact to mysqlbinlogmonty@mysql.com2004-02-091-51/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixed output from mysqlbinlog when using --skip-comments Fixed warnings from valgrind Fixed ref_length when used with HEAP tables More efficent need_conversion() Fixed error handling in UPDATE with not updateable tables Fixed bug in null handling in CAST to signed/unsigned
* | | just tried to find all 'skipp' and replace it with 'skip'.ram@gw.mysql.r18.ru2004-02-021-6/+6
|/ /
* | sql_string.cc:bar@bar.intranet.mysql.r18.ru2004-01-211-10/+5
| | | | | | | | Rewrote to comply the coding style
* | Further fixes for 2390: ucs2 alignmentbar@bar.intranet.mysql.r18.ru2004-01-211-4/+50
| |
* | UCS-2 aligning 0xAA -> 0x00AAbar@bar.intranet.mysql.r18.ru2004-01-191-0/+46
| |
* | Bug 2202: CAST from binary to char still returns a binary stringbar@bar.intranet.mysql.r18.ru2003-12-251-1/+1
| |
* | after review fixbell@sanja.is.com.ua2003-11-031-0/+32
| |
* | Remove 'extern' references from .cc filesmonty@mashka.mysql.fi2003-09-131-0/+5
| |
* | SAPDB date/time finctionsgluh@gluh.mysql.r18.ru2003-07-081-0/+17
| |
* | merge with public treemonty@narttu.mysql.fi2003-06-051-4/+0
|\ \
| * | Added SQLSTATE to client/server protocolmonty@narttu.mysql.fi2003-06-041-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bmove_allign -> bmove_align Added OLAP function ROLLUP Split mysql_fix_privilege_tables to a script and a .sql data file Added new (MEMROOT*) functions to avoid calling current_thd() when creating some common objects. Added table_alias_charset, for easier --lower-case-table-name handling Better SQL_MODE handling (Setting complex options also sets sub options) New (faster) assembler string functions for x86
* | | MY_CS_NONTEXT flag for sprintf() incompatible charsets (ucs2 if the only one ↵bar@bar.mysql.r18.ru2003-06-031-2/+2
|/ / | | | | | | | | | | now) Some default_charset_info were removed
* | CHARSET_INFO structure reorganization for easier maintainancebar@bar.mysql.r18.ru2003-05-231-7/+7
| |
* | Variables were rename, binary collation names were addedbar@bar.mysql.r18.ru2003-05-221-3/+3
| | | | | | | | Fixed that SHOW CHARACTER SET displayed non-dynamic charsets even if they were not really compiled
* | After merge fixesmonty@mashka.mysql.fi2003-05-211-4/+1
| | | | | | | | Added initialization of all important global variables
* | Fix to support update + bianry logs with prepared statements (Dynamic query)venu@myvenu.com2003-04-041-6/+13
| |
* | sql_string.cc:bar@bar.mysql.r18.ru2003-04-011-1/+1
| | | | | | | | We finally decided that national character set is utf8 :)
* | sql_string.cc:bar@bar.mysql.r18.ru2003-03-251-1/+1
| | | | | | | | | | | | | | | | | | | | NATIONAL CHARACTER() has latin1 charset now. Reasons are (by Monty): I think we should keepy having latin1 (default configure option) as the national character set. The reason for this is simple that: - This is ok for a large part of the world. - It's faster and takes less space than utf8.
* | A separate variable national_charset_info bar@bar.mysql.r18.ru2003-03-211-0/+3
| | | | | | | | Fixes according coercibility tables, p162, SQL Complete
* | SHOW CREATE TABLE didn't display field names in the proper charsetbar@bar.mysql.r18.ru2003-03-181-0/+28
| |
* | (no commit message)bar@bar.mysql.r18.ru2003-03-171-1/+1
| |
* | sql_string.cc:bar@bar.mysql.r18.ru2003-03-171-0/+4
| | | | | | | | Copy as is if src or dst are binary
* | system_charset_info has been moved to /sql directoryroot@home.(none)2003-03-161-0/+1
| | | | | | | | and isn't used in libraries any longer
* | stringcmp() and sortcmp() have been unifiedbar@bar.mysql.r18.ru2003-03-041-17/+1
| | | | | | | | | | into the only one sortcmp() with additional CHARSET_INFO *cmp_charset argument.
* | More use of new CHARSET_INFO functions and two bug fixesbar@bar.mysql.r18.ru2003-01-311-36/+3
| |
* | sql_string.cc:bar@bar.mysql.r18.ru2003-01-311-60/+4
| | | | | | | | Use of new CHARSET_INFO function
* | Always use USE_STRCOLL codebar@bar.mysql.r18.ru2003-01-301-4/+0
| |
* | Move latin1 into a separarte filebar@bar.mysql.r18.ru2003-01-291-6/+6
| |
* | wb_wc and wc_mb now checks length insidebar@bar.mysql.r18.ru2003-01-271-1/+1
| |
* | Portability fixes (for windows)monty@mashka.mysql.fi2003-01-211-2/+2
| | | | | | | | Some changes to the prepared statement protocol to make it easier to use and faster.