serg@serg.mylan
f944fd4a65
merged
2003-10-21 11:58:43 +02:00
serg@serg.mylan
58e9369511
>255 keys support in frm
2003-10-21 00:13:17 +02:00
serg@serg.mylan
50d9b95b77
merged
2003-10-15 12:25:44 +02:00
monty@mashka.mysql.fi
461d1627b3
merge with 4.0 for more memory allocation variables.
2003-10-13 15:50:30 +03:00
monty@mashka.mysql.fi
c95d142f8f
Add new user variables for tuning memory usage:
...
query_alloc_block_size, query_prealloc_size, range_alloc_block_size,transaction_alloc_block_size and transaction_prealloc_size
Add more checks for "out of memory" detection in range optimization
2003-10-11 22:00:24 +03:00
serg@serg.mylan
8cc3951c8f
key_map with more that 64 bits width
2003-10-11 13:06:55 +02:00
serg@serg.mylan
630eb4aec7
set table->charset to default for 3.22 .frm files (bug #1161 )
2003-09-28 18:47:22 +02:00
monty@mishka.mysql.fi
c22c1d8a4d
merge
2003-09-24 10:24:56 +03:00
hf@deer.(none)
a2dbfaefa3
SCRUM
...
embedded library
hash_insert renamed to my_hash_insert to avoid name intersection
with another libraries
is there better idea?
2003-09-19 14:44:31 +05:00
monty@mashka.mysql.fi
f300e3a164
Remove 'extern' references from .cc files
2003-09-13 11:35:29 +03:00
monty@narttu.mysql.fi
753cb8509c
Cleanups
...
BTREE, HASH and RTREE are not reserved symbols anymore
2003-08-26 17:52:54 +03:00
monty@mashka.mysql.fi
eb6458cb18
After merge fixes + bugs from last merge
2003-08-19 16:00:12 +03:00
monty@mashka.mysql.fi
2263e3e51f
Merge with 4.0.14
2003-08-11 22:44:43 +03:00
serg@serg.mylan
7336f9cdd2
bugs #701 and #783 - old .frm files were read in incorrectly in 4.1 (each field was assigned a charset, BLOBs were converted to TEXT)
2003-07-28 16:58:52 +02:00
monty@mashka.mysql.fi
b2cbd83913
Fixed bug in ALTER TABLE ... DISABLE/ENABLE KEYS
...
Removed double my_thread_end() which caused fatal error on windows if mysqld died on startup
2003-07-08 23:58:04 +03:00
monty@mashka.mysql.fi
dbebed97e4
Remove FORCE_INIT_OF_VARS when compiling for valgrind/purify to spot wrong LINT_INIT() options
...
Fixed bug in ALTER TABLE ... MODIFY integer-column
Added ref_or_null optimization (needed for subqueries)
2003-06-30 13:23:54 +03:00
vva@eagle.mysql.r18.ru
b4014b903b
new version of help
2003-05-29 17:47:31 -04:00
serg@serg.mylan
784fb81426
INSERT ... UPDATE ... VALUES()
2003-05-03 01:16:56 +02:00
bar@bar.mysql.r18.ru
5b50426f8f
Some optimization in CHARSET_INFO:
...
We don't need separate hash_sort() and hash_caseup()
We don't need tosort(). strnxfrm will do the same.
2003-04-01 12:45:16 +05:00
bar@bar.mysql.r18.ru
0989db3e90
More OpenGIS compatibility:
...
Point, MultiLine, Poligom, etc, are now not aliases
for Geometry, but separate field types.
2003-03-27 13:09:09 +04:00
monty@narttu.mysql.fi
f8cd1e7906
After merge fixes
...
Fixed bug in Item::set_name()
Fix for memory leak with geometry type
2003-03-20 21:35:03 +02:00
monty@narttu.mysql.fi
b883a9c01c
Merge with 4.0.12
2003-03-19 22:25:44 +02:00
monty@narttu.mysql.fi
3ec97824b7
Change dbug.h -> my_dbug.h (Portability fix)
...
Ensure that \ is not allowed in filenames, even on Unix
2003-03-17 19:06:14 +02:00
monty@narttu.mysql.fi
a434bca704
Merge with 4.0
2003-03-16 19:17:54 +02:00
monty@mashka.mysql.fi
968e9a73d4
merge with 3.23 to get:
...
- Fix for empty table/column names
2003-03-15 04:41:57 +02:00
monty@mashka.mysql.fi
5ee1dbbe58
Check for empty table/column names
2003-03-14 17:08:42 +02:00
bar@bar.mysql.r18.ru
391b3ec636
item_func.cc, item_cmpfunc.cc, unireg.cc, table.cc, sql_base.cc:
...
some default_charset_info were removed
2003-03-07 13:39:53 +04:00
monty@mashka.mysql.fi
e327393e9d
Fixed a lot of wrong memory references as reported by valgrind
...
Portability fixes
Added new client function: mysql_get_server_version()
New server help code (From Victor Vagin)
Fixed wrong usage of binary()
Disabled RTREE usage for now.
2003-02-12 21:55:37 +02:00
monty@mashka.mysql.fi
25de9c19b2
After merge fixes & remove compiler warnings
...
Added lengths for all MYSQL_FIELD string parameters
Changed field length to 2 byte in .frm files
2003-02-07 15:47:24 +02:00
monty@mashka.mysql.fi
564c447b27
Allow 4.0 to read new 4.1 .frm files
2003-02-07 10:35:08 +02:00
monty@mashka.mysql.fi
023d6dd39b
Merge with 4.0.11
2003-02-04 21:52:14 +02:00
monty@mashka.mysql.fi
9e3fd09305
merge with 3.23.56 to get patches for --lower-case-table-names and
...
proper handling of SUM() in some functions.
2003-01-29 19:22:22 +02:00
monty@mashka.mysql.fi
d88eb71f34
Fixed handling of lower_case_table_names in SHOW TABLE STATUS, mysql_list_fields() and mysql_table_dump().
...
This fixes some Errcode 13 errors on Windows when deleting tables.
2003-01-29 18:56:34 +02:00
hf@deer.mysql.r18.ru
87681bb85e
Merge abotchkov@work.mysql.com:/home/bk/mysql-4.1
...
into deer.mysql.r18.ru:/home/hf/work/mysql-default
2003-01-21 20:24:22 +04:00
hf@deer.mysql.r18.ru
9fb261e384
SCRUM
...
Default in UPDATE & SELECT
2003-01-21 20:20:46 +04:00
monty@mashka.mysql.fi
803dff1002
Merge with 4.0.8
2003-01-06 02:04:52 +02:00
monty@mashka.mysql.fi
9ecf9645eb
A lot of portability fixes.
...
Added rename table for BDB. This fixes a bug in ALTER TABLE with BDB tables.
2003-01-05 20:18:49 +02:00
hf@deer.mysql.r18.ru
f6e8e1f985
SCRUM
...
DEFAULT in UPDATE and SELECT
2003-01-05 14:07:24 +04:00
monty@mashka.mysql.fi
dac6498f9b
Merge with 4.0
2002-11-21 15:56:48 +02:00
monty@mashka.mysql.fi
e65ddf3fc3
Try to optimize the cache buffer size needed for bulk_insert
...
Fix for shutdown on Mac OS X
2002-11-20 22:56:57 +02:00
monty@hundin.mysql.fi
65badfff1a
Put temporary files in binlog cache when using BEGIN/COMMIT
...
Let MySQL 4.0 read 4.1 .frm files without 4.1 specific extensions
New variables @@rand_seed1 and @@rand_seed2 (used by replication)
DROP TEMPORARY TABLE
2002-11-07 04:02:37 +02:00
bar@bar.mysql.r18.ru
86b633379c
Some charset code clean-ups
2002-11-06 17:01:12 +04:00
bar@bar.mysql.r18.ru
95aef91521
BINARY charset is now used instead of binary_flag
2002-10-25 13:58:32 +05:00
monty@hundin.mysql.fi
fbf6ab4465
merge with 4.0.5
2002-10-16 19:30:24 +03:00
monty@hundin.mysql.fi
67d3cd643b
Merge with 3.23.54
2002-10-16 13:11:25 +03:00
monty@hundin.mysql.fi
68963e91b2
Fixed a bug in key optimizing handling where the expression
...
WHERE column_name = key_column_name was calculated as true
for NULL values.
2002-10-14 17:04:12 +03:00
monty@mashka.mysql.fi
d69250a969
Fixes and code cleanups after merge with 4.0.3
...
Warning handling and initial prepared statement handling (last not complete yet)
Changed a lot of functions that returned 0/1 to my_bool type.
GRANT handling now uses read/write locks instead of mutex
Change basic net functions to use THD instead of NET
(needed for 4.1 protocol)
Use my_sprintf instead of sprintf() + strlen()
Added alloc_query() to be able to chare query initialization code with
prepared statements.
Cleanup handling of SHOW COUNT(*) WARNINGS and SELECT LAST_INSERT_ID()
Note that the following test fails (will be fixed ASAP):
sub_select, union, rpl_rotate_logs and rpl_mystery22
2002-10-02 13:33:08 +03:00
monty@narttu.mysql.fi
7134ffec21
Merge with 4.0.3
...
Some simple optimzations, more comments and indentation changes.
Add ` around database in 'use database' in binary log.
Moved max_error_count and max_warning_count to variables struct.
Removed SHOW_WARNS_COUNT and SHOW_ERRORS_COUNT calls.
Changed string functions to use character set of first string argument as default return characterset
(Each string function can change the above assumption if needed)
2002-08-30 12:40:40 +03:00
monty@mashka.mysql.fi
2c4fa340cc
Lots of code fixes to the replication code (especially the binary logging and index log file handling)
...
Fixed bugs in my last changeset that made MySQL hard to compile.
Added mutex around some data that could cause table cache corruptions when using OPTIMIZE TABLE / REPAIR TABLE or automatic repair of MyISAM tables.
Added mutex around some data in the slave start/stop code that could cause THD linked list corruptions
Extended my_chsize() to allow one to specify a filler character.
Extend vio_blocking to return the old state (This made some usage of this function much simpler)
Added testing for some functions that they caller have got the required mutexes before calling the function.
Use setrlimit() to ensure that we can write core file if one specifies --core-file.
Added --slave-compressed-protocol
Made 2 the minimum length for ft_min_word_len
Added variables foreign_key_checks & unique_checks.
Less logging from replication code (if not started with --log-warnings)
Changed that SHOW INNODB STATUS requre the SUPER privilege
More DBUG statements and a lot of new code comments
2002-08-08 03:12:02 +03:00
monty@mashka.mysql.fi
dddc20d9d1
New SET syntax & system variables.
...
Made a some new buffers thread specific and changeable.
Resize of key_buffer.
AUTO_COMMIT -> AUTOCOMMIT
Fixed mutex bug in DROP DATABASE
Fixed bug when using auto_increment as second part of a key where first part could include NULL.
Split handler->extra() to extra() and extra_opt() to be able to support thread specific buffers.
Don't write message to error log when slave reconnects becasue of timeout.
Fixed possible update problem when using DELETE/UPDATE on small tables
(In some cases we used index even if table scanning would be better)
A lot of minior code cleanups
2002-07-23 18:31:22 +03:00
monty@mashka.mysql.fi
f93cb63202
Fixed problem with auto_increment key as not first key part
2002-07-23 02:08:48 +03:00
monty@hundin.mysql.fi
f87efa928b
Update for running gcc 3.x (mainly on HPUX)
...
Portability fixes for HPUX
Rename of CHECK_LOCK to IS_FREE_LOCK
Apply lower_case_table_names also to databases
Cleanup of describe code
Don't allow \ in database names
2002-06-30 18:57:21 +03:00
bar@gw.udmsearch.izhnet.ru
6f5f47855a
Default table character set has been added:
...
CREATE TABLE a (field,...) TYPE=type CHARSET=cset;
2002-06-19 21:21:30 +05:00
monty@hundin.mysql.fi
0d8e13979d
Made keyread (key scanning) a key specific attribute.
...
This avoids using fulltext keys for table scanning.
This also reverts Sinisa's original fix for this problem.
2002-06-19 00:22:30 +03:00
monty@mashka.mysql.fi
2aecdd1a91
Big code cleanup/review before 4.0.2 release.
...
(All commit emails since 4.0.1 checked)
This had to be done now, before the 4.1 tree changes to much, to make it easy to propagate bug fixes to the 4.1 tree.
2002-06-11 11:20:31 +03:00
monty@hundin.mysql.fi
ee6bd84880
Changes for new binary .frm format
...
Fixes after last merge from 4.0.
(Code not yet complete, need anoter merge from 4.0)
2002-06-04 08:23:57 +03:00
monty@hundin.mysql.fi
6e54cc492c
Extension of .frm file (not yet ready for push)
2002-06-02 21:22:20 +03:00
monty@hundin.mysql.fi
d1e13bec39
Fixed key algorithm handling
2002-05-22 20:09:03 +03:00
bar@gw.udmsearch.izhnet.ru
196aa19cf6
Now string values are created and filled with charset field
...
SELECT func(charset2) FROM t ORDER BY 1 works in correct charset
2002-05-17 16:29:52 +05:00
bar@gw.udmsearch.izhnet.ru
7fce07d52d
Now several character sets can live in the same table,
...
However some hacks were used while waiting for new FRM file
2002-05-14 20:58:38 +05:00
bar@gw.udmsearch.izhnet.ru
eab2893dac
RB-Tree indexes support in HEAP tables
...
Renamed _hp_func -> hp_func
mi_key_cmp moved to /mysys/my_handler.c
New tests for HEAP tables
2002-04-25 13:36:55 +05:00
bar@gw.udmsearch.izhnet.ru
cf5e0d3394
Fix to use Monty's changes in frm format
...
Enable latin1 by default
2002-04-18 14:08:38 +05:00
monty@hundin.mysql.fi
b5a145d872
merge
2002-04-13 15:34:39 +03:00
monty@tik.mysql.fi
056175a1ce
Update for BTREE keys in HEAP tables
...
Split handler->option_flag() to handler->table_flags() and handler->index_flags()
2002-04-12 21:35:46 +03:00
bar@gw.udmsearch.izhnet.ru
c60a29f0ee
Hash now supports several charsets
2002-03-14 21:44:42 +04:00
bar@gw.udmsearch.izhnet.ru
b37ce8e769
New ctype functions/macros to support many charsets at a time
2002-03-12 21:37:58 +04:00
monty@hundin.mysql.fi
e6b9734e0a
merge
2002-03-12 12:21:51 +02:00
monty@hundin.mysql.fi
a01775c5eb
Added help for --local-infile
...
Fix for bug on intel where (int32) 1 << 32 == 1, which gave problems when using 32 keys.
Allow SET PASSWORD for anonymous user
2002-03-12 11:38:22 +02:00
monty@hundin.mysql.fi
fa38c84be7
merge
2002-03-06 19:53:31 +02:00
monty@hundin.mysql.fi
668d09cc5c
Fixed bug in DATE_FORMAT when used with GROUP BY
2002-03-06 18:36:31 +02:00
monty@tik.mysql.fi
c1ab560c3d
Corrected fix for not freed memory when using corrupted tables
2002-03-05 17:38:16 +02:00
bar@gw.udmsearch.izhnet.ru
735b27d578
Added GIS extension
2002-02-22 15:24:42 +04:00
serg@serg.mysql.com
2cef9ef99d
memory leak with broken tables fixed
2002-02-20 13:06:54 +00:00
monty@hundin.mysql.fi
6aeb40bd3f
merge
2001-12-13 20:54:20 +02:00
monty@hundin.mysql.fi
70e053fba0
Fixed problem with default & InnoDB tables.
2001-12-13 19:06:14 +02:00
monty@hundin.mysql.fi
b658662ae4
Update copyright
...
Fixed memory leak on shutdown (Affects the embedded version & MyODBC)
2001-12-06 14:10:51 +02:00
monty@hundin.mysql.fi
1de4fff5ba
Update of query cache code.
...
Changed some sql_alloc() -> thd->alloc()
Removed a lot of compiler warnings on Linux Alpha (64 bit)
Fixed some core dumps on 64 bit systems (wrong type for packet_len)
2001-12-05 13:03:00 +02:00
monty@hundin.mysql.fi
4c60b41954
Portability fix
...
Cleanup typos (like SKIPP -> SKIP)
2001-11-07 00:13:29 +02:00
monty@hundin.mysql.fi
ac250625dc
portability fixes
2001-10-11 18:58:40 +03:00
monty@hundin.mysql.fi
2350609bce
Fixed that SHOW CREATE TABLE shows all attributes
2001-09-30 05:47:35 +03:00
monty@hundin.mysql.fi
5a14bb2a7e
Integrated table->ref_primary_key into table->part_of_key
...
Fixed bug in UNION
2001-09-21 03:38:35 +03:00
serg@serg.mysql.com
edba53f3b9
bug with mysql_change_db() fixed
2001-03-21 17:09:43 +01:00
monty@donna.mysql.fi
bda3e09935
Merged some functions and removed some unused client functions.
...
Remember UNION for ALTER TABLE
Added test for if we are supporting transactions.
Don't allow REPLACE to replace a row when we have generated an auto_increment key
Fixed bug when using BLOB keys
Fixed bug in SET @variable=user.
2001-03-06 15:24:08 +02:00
jcole@tetra.spaceapes.com
552561e27d
Fixed brain-o in sql/table.cc that broke build.
...
check_db_name() referenced a non-existant variable.
2001-01-29 23:27:33 -06:00
monty@donna.mysql.com
ce2260586d
Fixed ALTER TABLE on MERGE tables
...
Fixed bug in DISTINCT
2001-01-28 21:35:50 +02:00
monty@donna.mysql.com
0732f7475e
Fixed for bugs that was found when getting full code coverage of BDB
...
Fixed bug with HEAP tables on windows
Fixed bug with HAVING on empty tables
2001-01-17 03:15:20 +02:00
monty@donna.mysql.com
4f91d5b5fe
Fixed compilation in another dir
2000-11-21 19:01:29 +02:00
monty@donna.mysql.com
b65dbb6114
Fixed problem with auto-repair of MyISAM tables
...
Fixed bug in ISAM and MyISAM when updating from multiple-processes
2000-11-21 03:43:34 +02:00
monty@donna.mysql.com
b5ad31dffe
Give an error if you use a BLOB(X) where X > 255
...
Fixes for MIT pthreads
2000-10-22 01:19:05 +03:00
monty@donna.mysql.com
4229796946
Automatic primary key for BDB tables
2000-10-16 02:29:48 +03:00
monty@tik.mysql.com
09dce662e2
Automatic repair of MyISAM tables + portability fixes
2000-10-11 00:06:37 +03:00
monty@tramp.mysql.fi
9f7c4563f7
First part of automatic repair of MyISAM tables.
...
Error on full disk on repair.
SIGHUP signal handling.
Update with keys on timestamp
Portability fixes
2000-10-03 14:18:03 +03:00
monty@donna.mysql.com
a9e11f2378
Small fixes for release
2000-09-26 22:39:45 +03:00
monty@tramp.mysql.fi
e32799e4dd
RIGHT JOIN, part of automatic repair of MyISAM tables, backup on repair,
...
reading from FIFO, fixes for FULLTEXT, @@IDENTITY
2000-09-26 00:33:25 +03:00
monty@donna.mysql.com
dc4525636c
Small bug fixes + code for DELETE QUICK
2000-09-20 04:54:10 +03:00
monty@donna.mysql.com
2776500c22
Update to new root alloc, OPTIMIZE TABLE and some other changes
2000-09-12 03:02:33 +03:00
monty@donna.mysql.com
91033f872c
Update to get 3.23.23 to compile
2000-08-31 17:25:30 +03:00
monty@donna.mysql.com
f0952ce3e1
FLUSH TABLE table_list
...
Fixes for RENAME TABLE
Portability fixes
2000-08-22 00:18:32 +03:00
bk@work.mysql.com
f4c589ff6c
Import changeset
2000-07-31 21:29:14 +02:00