summaryrefslogtreecommitdiff
path: root/sql/unireg.cc
Commit message (Collapse)AuthorAgeFilesLines
* Bug #29325: gkodinov/kgeorge@magare.gmz2007-07-111-0/+2
| | | | | | | | | | | | By default MyISAM overwrites .MYD and .MYI files no DATA DIRECTORY option is used. This can lead to two tables using the same .MYD and .MYI files (that can't be dropped). To prevent CREATE TABLE from overwriting a file a new option is introduced : keep_files_on_create When this is on the CREATE TABLE throws an error if either the .MYD or .MYI exists for a MyISAM table. The option is off by default (resulting in compatible behavior).
* Backport of TIME->MYSQL_TIME / Y2K fixsetmsvensson@pilot.blaudden2007-05-161-1/+3
| | | | | | | | | | | | | | | | Made year 2000 handling more uniform Removed year 2000 handling out from calc_days() The above removes some bugs in date/datetimes with year between 0 and 200 Now we get a note when we insert a datetime value into a date column For default values to CREATE, don't give errors for warning level NOTE Fixed some compiler failures Added library ws2_32 for windows compilation (needed if we want to compile with IOCP support) Removed duplicate typedef TIME and replaced it with MYSQL_TIME Better (more complete) fix for: Bug#21103 "DATE column not compared as DATE" Fixed properly Bug#18997 "DATE_ADD and DATE_SUB perform year2K autoconversion magic on 4-digit year value" Fixed Bug#23093 "Implicit conversion of 9912101 to date does not match cast(9912101 as date)"
* Fixed compiler warnings (for linux and win32 and win64)monty@mysql.com/narttu.mysql.fi2007-02-221-0/+3
| | | | Fixed a couple of usage of not initialized warnings (unlikely cases)
* Merge bk-internal.mysql.com:/home/bk/mysql-5.0monty@mysql.com/narttu.mysql.fi2007-02-211-7/+7
|\ | | | | | | into mysql.com:/home/my/mysql-5.0
| * Merge bk-internal.mysql.com:/home/bk/mysql-5.0monty@mysql.com/narttu.mysql.fi2007-01-221-7/+7
| |\ | | | | | | | | | into mysql.com:/home/my/mysql-5.0
| | * Fixed compiler warnings detected by option -Wshadow and -Wunused:monty@mysql.com/narttu.mysql.fi2006-12-151-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Removed not used variables and functions - Added #ifdef around code that is not used - Renamed variables and functions to avoid conflicts - Removed some not used arguments Fixed some class/struct warnings in ndb Added define IS_LONGDATA() to simplify code in libmysql.c I did run gcov on the changes and added 'purecov' comments on almost all lines that was not just variable name changes
* | | Merge tnurnberg@bk-internal.mysql.com:/home/bk/mysql-5.0-mainttnurnberg@mysql.com/sin.azundris.com2007-02-121-21/+40
|\ \ \ | |/ / |/| | | | | into mysql.com:/home/tnurnberg/24660/50-24660
| * | Merge mysql.com:/home/tnurnberg/24660/41-24660tnurnberg@mysql.com/sin.azundris.com2007-02-121-21/+40
| |\ \ | | |/ | |/| | | | into mysql.com:/home/tnurnberg/24660/50-24660
| | * Bug#24660: "enum" field type definition problemtnurnberg@mysql.com/sin.azundris.com2007-02-121-21/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ENUMs weren't allowed to have character 0xff, a perfectly good character in some locales. This was circumvented by mapping 0xff in ENUMs to ',', thereby prevent actual commas from being used. Now if 0xff makes an appearance, we find a character not used in the enum and use that as a separator. If no such character exists, we throw an error. Any solution would have broken some sort of existing behaviour. This solution should serve both fractions (those with 0xff and those with ',' in their enums), but WILL REQUIRE A DUMP/RESTORE CYCLE FROM THOSE WITH 0xff IN THEIR ENUMS. :-/ That is, mysqldump with their current server, and restore when upgrading to one with this patch.
* | | my_strtoll10-x86.s:kent@mysql.com/kent-amd64.(none)2006-12-311-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Corrected spelling in copyright text Makefile.am: Don't update the files from BitKeeper Many files: Removed "MySQL Finland AB & TCX DataKonsult AB" from copyright header Adjusted year(s) in copyright header Many files: Added GPL copyright text Removed files: Docs/Support/colspec-fix.pl Docs/Support/docbook-fixup.pl Docs/Support/docbook-prefix.pl Docs/Support/docbook-split Docs/Support/make-docbook Docs/Support/make-makefile Docs/Support/test-make-manual Docs/Support/test-make-manual-de Docs/Support/xwf
* | | Many files:kent@mysql.com/kent-amd64.(none)2006-12-231-2/+1
|/ / | | | | | | Changed header to GPL version 2 only
* | Remove compiler warningsmonty@mysql.com/nosik.monty.fi2006-11-201-4/+4
| | | | | | | | | | | | | | (Mostly in DBUG_PRINT() and unused arguments) Fixed bug in query cache when used with traceing (--with-debug) Fixed memory leak in mysqldump Removed warnings from mysqltest scripts (replaced -- with #)
* | Merge bk@192.168.21.1:mysql-4.1holyfoot/hf@mysql.com/deer.(none)2006-10-121-0/+15
|\ \ | |/ | | | | into mysql.com:/home/hf/mysql-5.0.mrg
| * Merge mysql.com:/home/gluh/MySQL/Merge/4.1gluh@mysql.com/gluh.(none)2006-10-051-7/+32
| |\ | | | | | | | | | into mysql.com:/home/gluh/MySQL/Merge/4.1-kt
| * | Bug#20922 mysql removes a name of first column in a tablegluh@mysql.com/gluh.(none)2006-09-111-0/+15
| | | | | | | | | | | | | | | | | | | | | 0xFF is internal separator for SET|ENUM names. If this symbol is present in SET|ENUM names then we replace it with ','(deprecated symbol for SET|ENUM names) during frm creation and restore to 0xFF during frm opening
* | | Merge rurik.mysql.com:/home/igor/mysql-4.1-optigor@rurik.mysql.com2006-09-201-7/+32
|\ \ \ | | |/ | |/| | | | into rurik.mysql.com:/home/igor/mysql-5.0-opt
| * | Fixed bug #20108.igor@rurik.mysql.com2006-09-201-7/+32
| |/ | | | | | | | | | | | | | | Any default value for a enum fields over UCS2 charsets was corrupted when we put it into the frm file, as it had been overwritten by its HEX representation. To fix it now we save a copy of structure that represents the enum type and when putting the default values we use this copy.
* | Fix for bug#13934 Silent truncation of table commentsgluh@eagle.intranet.mysql.r18.ru2006-06-291-4/+45
| | | | | | | | | | | | Table comment: issue a warning(error in traditional mode) if length of comment > 60 symbols Column comment: issue a warning(error in traditional mode) if length of comment > 255 symbols Table 'comment' is changed from char* to LEX_STRING
* | A fix and a test case for Bug#14210 "Simple query with > operator on konstantin@mysql.com2005-11-031-2/+2
| | | | | | | | | | | | large table gives server crash": make sure that when a MyISAM temporary table is created for a cursor, it's created in its memory root, not the memory root of the current query.
* | Fixes during review of new pushed codemonty@mysql.com2005-10-131-3/+3
| |
* | Merge bk-internal.mysql.com:/home/bk/mysql-5.0monty@mysql.com2005-10-121-7/+1
|\ \ | | | | | | | | | into mysql.com:/home/my/mysql-5.0
| * | Reviewing new pushed codemonty@mysql.com2005-10-121-7/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - CHAR() now returns binary string as default - CHAR(X*65536+Y*256+Z) is now equal to CHAR(X,Y,Z) independent of the character set for CHAR() - Test for both ETIMEDOUT and ETIME from pthread_cond_timedwait() (Some old systems returns ETIME and it's safer to test for both values than to try to write a wrapper for each old system) - Fixed new introduced bug in NOT BETWEEN X and X - Ensure we call commit_by_xid or rollback_by_xid for all engines, even if one engine has failed - Use octet2hex() for all conversion of string to hex - Simplify and optimize code
* | | Always save/restore connect string.svoj@mysql.com2005-10-101-9/+6
| | |
* | | Store and read engine type string in extra block of .frm.svoj@mysql.com2005-10-101-4/+18
|/ /
* | some last minute Windows compile fixes and makefile correctionsreggie@fedora.(none)2005-09-151-2/+2
| |
* | Merge bk-internal.mysql.com:/home/bk/mysql-5.0monty@mishka.mysql.fi2005-09-141-1/+1
|\ \ | | | | | | | | | into mishka.mysql.fi:/home/my/mysql-5.0
| * | Added option --valgrind-mysqltest to mysql-test-runmonty@mishka.mysql.fi2005-09-141-1/+1
| | | | | | | | | | | | | | | | | | | | | Added flag to Field::store(longlong) to specify if value is unsigned. This fixes bug #12750: Incorrect storage of 9999999999999999999 in DECIMAL(19, 0) Fixed warning from valgrind in CREATE ... SELECT Fixed double free of mysql.options if reconnect failed
* | | Made changes to add federated CONNECTION information to the .frm fileeric@mysql.com2005-09-121-0/+9
|/ / | | | | | | | | | | (per Monty's patch). Remove references to the "COMMENT" field. WL#2414
* | Merge mysql.com:/home/my/mysql-4.1monty@mysql.com2005-07-281-6/+6
|\ \ | |/ | | | | into mysql.com:/home/my/mysql-5.0
| * Review of new code:monty@mysql.com2005-07-271-6/+6
| | | | | | | | Change argument order to be database, tablename for some functions
* | Merge mysql.com:/home/jimw/my/mysql-4.1-cleanjimw@mysql.com2005-07-221-3/+9
|\ \ | |/ | | | | into mysql.com:/home/jimw/my/mysql-5.0-clean
| * Fix error message generated when trying to create a table in ajimw@mysql.com2005-07-211-3/+9
| | | | | | | | non-existent database. (Bug #10407)
* | Bug#6877 MySQL should give an error if the requested table type is not availableacurtis@xiphis.org2005-06-171-1/+1
| | | | | | | | Implement new SQL mode - NO_ENGINE_SUBSTITUTION
* | Some Windows compile improvements:lenz@mysql.com2005-06-061-1/+1
| | | | | | | | | | - removed some unreferenced variables - fixed the libmysql project file by removing a duplicate file reference (merge error)
* | Merge mysql.com:/Users/kent/mysql/bk/mysql-5.0-buildkent@mysql.com2005-05-261-2/+5
|\ \ | | | | | | | | | into mysql.com:/Users/kent/mysql/bk/mysql-5.0
| * | Bug #10838 CREATE TABLE produces strange DEFAULT valuetulin@mysql.com2005-05-251-2/+5
| | |
* | | Cleanup's during reviewmonty@mysql.com2005-05-251-3/+6
| | | | | | | | | | | | Added ASSERT() to detect wrongly packed fields
* | | mergedserg@serg.mylan2005-05-191-0/+1
|\ \ \ | |/ / |/| / | |/
| * mergedserg@serg.mylan2005-05-181-0/+1
| |\
| | * Fixed compiler failuremonty@mysql.com2005-05-141-0/+1
| | |
* | | After merge fixesmonty@mysql.com2005-05-161-7/+5
| | |
* | | Merge with 4.1monty@mysql.com2005-05-141-28/+47
|\ \ \ | |/ /
| * | Merge with 4.0monty@mysql.com2005-05-141-34/+51
| |\ \ | | |/
| | * Change create_field->offset to store offset from start of fields, ↵monty@mysql.com2005-05-131-33/+50
| | | | | | | | | | | | | | | | | | | | | | | | independent of null bits. Count null_bits separately from field offsets and adjust them in case of primary key parts. (Previously a CREATE TABLE with a lot of null fields that was part of a primary key caused MySQL to wrongly count the number of bytes needed to store null bits) This is a more complete bug fix for #6236
* | | mergemonty@mishka.local2005-05-061-0/+1
|\ \ \
| * | | Fixes while reviewing new codemonty@mishka.local2005-05-061-0/+1
| | | | | | | | | | | | | | | | | | | | Added option --count to mysqlshow (to show number of rows) Fixed possible core dump in information schema
* | | | A fix (bug #10179: error in default value setting).ramil@ram-book.(none)2005-05-051-9/+12
|/ / /
* | | Setting a variable to CAST(NULL as X) set the result type of the variable to ↵monty@mysql.com2005-04-301-2/+5
| | | | | | | | | | | | X. (Bug #6598)
* | | Fix for bug #9571: Primary key creation causes server crash.ramil@mysql.com2005-04-051-3/+2
| | |
* | | Invalid DEFAULT values for CREATE TABLE now generates errors. (Bug #5902)monty@mysql.com2005-04-011-5/+17
| | | | | | | | | | | | | | | | | | CAST() now produces warnings when casting a wrong INTEGER or CHAR values. This also applies to implicite string to number casts. (Bug #5912) ALTER TABLE now fails in STRICT mode if it generates warnings. Inserting a zero date in a DATE, DATETIME or TIMESTAMP column during TRADITIONAL mode now produces an error. (Bug #5933)