Commit graph

770 commits

Author SHA1 Message Date
serg@serg.mylan
d09626d9d6 post-merge fixes 2003-08-28 13:14:54 +02:00
monty@narttu.mysql.fi
cd25e1691c ixed overflow bug in MyISAM and ISAM when using packed tables with a lot of fields and blobs 2003-08-28 12:27:35 +03:00
monty@narttu.mysql.fi
8a77f97079 Add detection of in_addr_t
Add pack_bits to pack_reclength for dynamic rows.  This solves buffer a possible buffer overflow on update.
(This will probably solve bug #563)
Fix test for available file descriptors in mysqltest
Fixed core dump bug in replication tests when running without transactional table support
2003-08-28 06:08:17 +03:00
serg@serg.mylan
cb82f06dfb do not try to "analyze" or "sort index" in the table that has no indexes or no records if --check-only-changed option is used.
It's because such a table is never marked as "analyzed" or "sorted", so --check-only-changed doesn't work
2003-08-27 00:58:42 +02:00
serg@serg.mylan
1fb8c31e07 Merge bk-internal:/home/bk/mysql-4.0/
into serg.mylan:/usr/home/serg/Abk/mysql-4.0
2003-08-26 23:57:14 +02:00
serg@serg.mylan
f7f48719f8 fix ANALYZE TBALE to never generate rec_per_key_part < 1, as it prevent the table from being marked as analyzed (and the value is meaningless anyway) 2003-08-26 23:52:15 +02:00
Sinisa@sinisa.nasamreza.org
ff6bc0965b Fixed a very rarge memory overrun bug in the myisamlog program. 2003-08-26 22:02:58 +03:00
igor@rurik.mysql.com
40193a7fa5 Manual merge 2003-08-26 00:13:22 -07:00
monty@narttu.mysql.fi
2c1f1206c3 Better fix for myisamchk --sort-index on windows
Fixed deadlock bug when doing resize of key buffer while key buffer was in active use
2003-08-25 17:19:44 +03:00
monty@narttu.mysql.fi
f83e876065 Update of VC++ project files (to remove link warnings)
Fix unlock error in myisamchk on windows when doing --sort-index
Use SetFilePointer instead of SetFilePointerEx
2003-08-25 14:27:32 +03:00
monty@narttu.mysql.fi
359846f052 Fixed some varnings from valgrind
Set min value of max_allowed_packet to 1024
Fixed problem with UNION's without braces and SQL_CALC_FOUND_ROWS, LIMIT #,#
and ORDER BY...LIMIT
2003-08-20 16:25:44 +03:00
serg@serg.mylan
e5fd812d51 FT-NL bugfix - ignore words that appear more than in 2mio rows to avoid tree overflow.
optimization: abort search for common (>50% rows) words earlier.
2003-08-19 20:53:45 +02:00
monty@narttu.mysql.fi
d79cbc3b99 Fix mutex handling in SHOW_VARIABLES (key_buffer_size was not properly protected)
Changed some non fatal myisamchk error messages to warnings
2003-08-17 14:10:15 +03:00
serg@serg.mylan
ba28624c26 myisamchk - don't mark table as crashed if --sort-records=<key> failed because of unappropriate key or read-only table 2003-08-12 15:56:55 +02:00
serg@serg.mylan
bc9f6cde50 Merge bk-internal:/home/bk/mysql-4.0/
into serg.mylan:/usr/home/serg/Abk/mysql-4.0
2003-08-12 15:30:47 +02:00
serg@serg.mylan
06e5657993 MyISAM was erroneously using max_ref_length when estimating min_pack_length. 2003-08-12 15:30:20 +02:00
serg@serg.mylan
147b34e2f4 snprintf compatibility fix 2003-08-12 15:28:36 +02:00
monty@mashka.mysql.fi
2263e3e51f Merge with 4.0.14 2003-08-11 22:44:43 +03:00
igor@rurik.mysql.com
2813cd1f0b set_var.cc, mysqld.cc, handler.cc, set_var.h, handler.h:
Added key cache parameters for midpoint insertion strategy
Many files:
  Added midpoint insertion strategy for key cache
mi_test2.c:
  Added a parameter to resize_key_cache
2003-08-09 11:12:22 -07:00
monty@mashka.mysql.fi
8f08c511ee Review of changesets since last pull.
(Mostly code cleanups)
2003-08-07 20:16:37 +03:00
serg@serg.mylan
79922d946a table checksum background:
my_checksum() mysys function
   NISAM checksum code moved from mysys to isam/ - it's obsolete
   MyISAM checksum code moved to mysys
   table's checksum accessible from sql layer
   SHOW TABLE STATUS shows checksum (WL#646)
code cleanup
2003-08-05 21:14:15 +02:00
igor@rurik.mysql.com
9306f55d8e Many files:
Added key cache assignment
mi_locking.c:
  Added key cache assignment: correction
my_sys.h:
  Added key cache variable structure
2003-08-02 02:43:18 -07:00
serg@serg.mylan
fb5a1da621 bug #942. docid == ftb->lastpos in join on looping over nested table 2003-07-31 13:45:35 +02:00
serg@serg.mylan
c8c7aab6a0 Bug#937
myisamchk.c:
  help text clarified
mi_check.c:
  allow one to "analyze" empty table :)
2003-07-30 16:15:10 +02:00
serg@serg.mylan
7a646f305c myisamchk --sort-records crash on compressed tables fixed. 2003-07-21 22:21:07 +02:00
hf@deer.(none)
cb310f763a Fix for #712 with Serg's suggestions 2003-07-19 18:17:29 +05:00
hf@deer.(none)
a71c5c390b Merge abotchkov@bk-internal.mysql.com:/home/bk/mysql-4.0
into deer.(none):/home/hf/work/mysql-4.0
2003-07-19 13:51:15 +05:00
monty@narttu.mysql.fi
7b8a54b512 Fixed memory overrun when doing REPAIR on table with multi-part auto_increment key where one part was a packed CHAR 2003-07-18 04:04:24 +03:00
igor@rurik.mysql.com
f0ca5d545d Makefile.am:
Added mi_keycache.c
2003-07-16 13:57:04 -07:00
igor@rurik.mysql.com
42e1296e9d mi_keycache.c:
new file
Many files:
  Added CACHE INDEX command
2003-07-16 12:30:49 -07:00
hf@deer.(none)
9b4ebf3d29 Proposed bugfix for #712
Monty revoked any locks for temporary tables in
ha_myisam::external_lock()
But further code bans using write cache on nonlocked tables
this makes operations much slower
2003-07-14 12:40:58 +05: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
igor@rurik.mysql.com
236560e8b3 Merge rurik.mysql.com:/home/igor/mysql-4.1
into rurik.mysql.com:/home/igor/dev/mysql-4.1-0
2003-06-30 09:53:04 -07:00
igor@rurik.mysql.com
10a8adc1b5 Many files:
Added multiple key cache
2003-06-30 09:41:41 -07:00
serg@serg.mylan
d5fbeee71f fixed a bug that made 4.0 MYI+FT files unreadable in 4.1 2003-06-28 23:54:33 +02:00
monty@mashka.mysql.fi
5f556f11e0 Fixed memory allocation in Unique to not allocate too much memory 2003-06-26 07:56:55 +03:00
monty@narttu.mysql.fi
1bd306ccd4 Fixed some new memory leaks
Updated VC++ files
2003-06-24 12:10:35 +03:00
igor@rurik.mysql.com
5425591503 Merge 2003-06-18 07:31:23 -07:00
serg@serg.mylan
9b3dccd662 reverting Monty's "fix" that turned a warning into an error. 2003-06-16 19:07:48 +02:00
serg@serg.mylan
9f67e10d0d consistency fix - all help texts for command-line options should end with a dot. 2003-06-13 10:59:02 +02:00
igor@rurik.mysql.com
a0f3dcc3c8 Merge rurik.mysql.com:/home/igor/mysql-4.1
into rurik.mysql.com:/home/igor/dev/mysql-4.1-0
2003-06-12 06:22:35 -07:00
igor@rurik.mysql.com
f547f2769f Many files:
New feature: preload indexes into key cache.
mi_preload.c:
  new file
Many files:
  Added preload statement.
2003-06-12 04:29:02 -07:00
serg@serg.mylan
c317269dac Merge bk-internal:/home/bk/mysql-4.1/
into serg.mylan:/usr/home/serg/Abk/mysql-4.1
2003-06-12 12:42:01 +02:00
serg@serg.mylan
1d679dbee8 FT2 bug in mi_delete fixed 2003-06-12 12:41:29 +02:00
paul@ice.snake.net
38268be444 ft_update.c:
Fix parse error per serg instructions.
2003-06-11 16:27:26 -05:00
serg@serg.mylan
e88e650d5e Merge bk-internal:/home/bk/mysql-4.1/
into serg.mylan:/usr/home/serg/Abk/mysql-4.1
2003-06-09 22:28:15 +02:00
serg@serg.mylan
a2b53947e0 more DBUG_xxx tags 2003-06-09 22:26:22 +02:00
bar@bar.mysql.r18.ru
759214fa41 MY_CS_NONTEXT flag for sprintf() incompatible charsets (ucs2 if the only one now)
Some default_charset_info were removed
2003-06-03 14:59:17 +05:00
bar@bar.mysql.r18.ru
8192d169a2 CHARSET_INFO structure reorganization for easier maintainance 2003-05-23 17:45:52 +05:00
monty@mashka.mysql.fi
6aa8929cf3 After merge fixes
Added initialization of all important global variables
2003-05-21 21:39:58 +03:00
monty@narttu.mysql.fi
dd2b7918cd Merge with 4.0.13 2003-05-19 16:35:49 +03:00
monty@narttu.mysql.fi
c01678bc3d Added option --read-only (Thanks to Markus Benning) 2003-05-19 12:01:38 +03:00
monty@narttu.mysql.fi
3e72b423e3 Fix for MacOSX and symlinks
Fix for USE_FRM and crashed index file
2003-05-14 01:27:26 +03:00
monty@mashka.mysql.fi
4bde719df7 Safety fix to enable RAID in max binaries
Better fix for format('nan')
Fix for HAVING COUNT(DISTINCT...)
2003-05-13 10:54:07 +03:00
monty@narttu.mysql.fi
51f9879008 Removed compiler warnings
Fixed memory leak in new filesort code
Optimzed sub selects to use keys with outer references.
Increased max tables in join to 62
2003-05-06 01:38:38 +03:00
serg@serg.mylan
12e53eb9e1 parallel-repair available in mysqld 2003-05-04 18:43:37 +02:00
serg@serg.mylan
40435e8554 mising reset_tree() in ft_reinit_search() added 2003-05-03 14:48:51 +02:00
monty@narttu.mysql.fi
9e4f394e59 Fix reference to not initialized memory
Changed handing of priv_host to fix bug in FLUSH PRIVILEGES
2003-04-30 10:15:09 +03:00
monty@mashka.mysql.fi
e741c893ea Fix to remove compiler warnings 2003-04-28 19:05:57 +03:00
monty@mashka.mysql.fi
dd377bfba6 Fixed problem when comparing a key for a multi-byte-character set. (bug 152)
Use 0x.... as strings if 'new' mode. (bug 152)
Don't report -max on windows when InnoDB is enabled. (bug 332)
Reset current_linfo;  This could cause a hang when doing PURGE LOGS.
Fix for row numbers in EXPLAIN (bug 322)
 Fix that USE_FRM works for all table types (bug 97)
2003-04-27 22:12:08 +03:00
monty@mashka.mysql.fi
bf6cfd2948 Fix for -fbranch-probabilites (bug 268)
Fix for LEFT/RIGHT/MID with multi-byte-character sets (bug 314)
Fix for new bison 1.875
max_insert_delayed_threads and delayed_insert_timeout now works as documented (bug 211)
Don't show port in SHOW PROCESSLIST for system threads
Fix problem with ORDER BY being discarded for some DISTINCT queries (bug 275)
Fixed bug with NATURAL LEFT JOIN, NATURAL RIGHT JOIN and RIGHT JOIN when
using many joined tables (Bug 212)
2003-04-26 20:43:28 +03:00
serg@sergbook.mysql.com
4c749f6f3e Merge bk-internal:/home/bk/mysql-4.0
into sergbook.mysql.com:/usr/home/serg/Abk/mysql-4.0
2003-04-25 15:45:45 +04:00
monty@narttu.mysql.fi
f6a43bd567 Fixes for valgrind
Added optimzation for clustered index
Fixed bug in UPDATE ... ORDER BY
Fixed handling of UPDATE ... LIMIT
2003-04-23 21:52:16 +03:00
serg@sergbook.mysql.com
b6ca95a7f4 warning when a 4.1 MYI file is opened in 4.0 2003-04-23 14:03:21 +04:00
serg@sergbook.mysql.com
ae51f04564 do not mark the table as analyzed unless all the key parts are REALLY analyzed. 2003-04-23 00:53:07 +04:00
serg@sergbook.mysql.com
2381be2084 Merge bk-internal:/home/bk/mysql-4.1
into sergbook.mysql.com:/usr/home/serg/Abk/mysql-4.1
2003-04-09 07:31:29 -07:00
monty@narttu.mysql.fi
a7708c7904 Merge with 4.0 2003-04-03 21:19:12 +03:00
monty@narttu.mysql.fi
618857b6eb Merge with 3.23 to get fixes for:
mysqldump --delete-master-logs
Portability fix for hammer
Memory overrun for MyISAM
LOAD DATA LOCAL replication bug fix.
2003-04-03 12:33:13 +03:00
monty@narttu.mysql.fi
ec70bac3b9 Fixed problem with const table named with crashed test suite on MacOSX 2003-04-02 13:06:33 +03:00
ram@mysql.r18.ru
d5030a0541 Bug fix: should use my_free() instead of my_afree() after my_multi_malloc(). 2003-04-01 15:33:09 +05:00
ram@mysql.r18.ru
446f6331e2 Bug fix: should use my_multi_malloc() here!!! 2003-03-31 13:32:34 +05:00
serg@sergbook.mysql.com
e9492a1d83 ft benchmark suite: initial checkin 2003-03-29 20:40:03 +03:00
ram@mysql.r18.ru
df7c02d8d0 Free allocated memory even in case of error. 2003-03-28 18:18:25 +04:00
ram@mysql.r18.ru
aa19b26c7b Bug fix: should check _mi_new() return value. 2003-03-28 18:18:24 +04:00
ram@mysql.r18.ru
475d288e8f Bug fix: should check _mi_write_keypage() return value. 2003-03-28 18:18:23 +04:00
monty@mashka.mysql.fi
3bed7a6131 Merge with 4.0.13 2003-03-26 18:37:38 +02:00
Sinisa@sinisa.nasamreza.org
a496daf777 A fix for a bug in MyISAM with large number of NULL columns and at
least one BLOB column.
2003-03-25 14:49:43 +02:00
monty@narttu.mysql.fi
5f5c367361 Fixed bug in allocation memory in key cache. (Memory was not properly aligned which cased core dumps on sparc CPU's)
Changed keycache variables to start with my_ instead of _my_
2003-03-25 02:37:41 +02:00
serg@sergbook.mysql.com
6c033b9854 make myisam usable without threads (and even w/o pthread_t) 2003-03-24 11:19:28 +01:00
ram@mysql.r18.ru
982c49dc19 Merge rkalimullin@bk-internal.mysql.com:/home/bk/mysql-4.1
into mysql.r18.ru:/usr/home/ram/work/mysql-4.1.sp
2003-03-20 20:57:07 +04:00
ram@mysql.r18.ru
396438a83b R-tree bug fixes. 2003-03-20 20:55:53 +04:00
monty@narttu.mysql.fi
9f200ede0d Merge bk-internal.mysql.com:/home/bk/mysql-4.1
into narttu.mysql.fi:/my/mysql-4.1
2003-03-20 02:06:08 +02:00
ram@mysql.r18.ru
031ac2a7b2 SRID support.
GeomertyFromWKB() function.
SRID() function.
::store() methods for Field_geom.
Code cleanup.
2003-03-18 15:30:32 +04:00
monty@narttu.mysql.fi
e7288f279e After merge fixes
Don't create temporary objects with no table name
2003-03-17 15:05:04 +02:00
monty@narttu.mysql.fi
a434bca704 Merge with 4.0 2003-03-16 19:17:54 +02:00
hf@genie.(none)
5e66c7635a ALTER TABLE ADD SPATIAL KEY bug fix 2003-03-12 15:37:39 +04:00
monty@mashka.mysql.fi
7fdf7a4101 merge with 3.23 to get:
- Better detection of crashed .MYI file
- Ignore writeable config files
2003-03-11 21:45:39 +02:00
monty@mashka.mysql.fi
c38125c5db Cleaned up disk_pos_assert() to be more general. 2003-03-11 21:25:17 +02:00
serg@serg.mysql.com
2a3003e99b more propection in mi_open against badly corrupted MYI headers 2003-03-10 16:48:13 +01:00
ram@mysql.r18.ru
008b9361bb Bug fix: we should set proper my_errno 2003-03-05 16:07:12 +04:00
serg@serg.mysql.com
be580475be fix auto-increment in sub-key and insert ... select 2003-03-02 01:48:57 +01:00
ram@mysql.r18.ru
368347685d Merge rkalimullin@work.mysql.com:/home/bk/mysql-4.1
into mysql.r18.ru:/usr/home/ram/work/mysql-4.1
2003-02-26 19:23:11 +04:00
monty@narttu.mysql.fi
9a46698e1e Merge with 4.0.11 2003-02-26 01:03:47 +02:00
ram@mysql.r18.ru
569675f7c5 rtree_find_X functions speed-up: we don't need to store whole key buffer for next search.
Code clean-up.
2003-02-25 19:07:59 +04:00
serg@serg.mysql.com
55ae7d26f6 make myisamchk -R to work, if the table contains fulltext indexes 2003-02-22 15:51:21 +01:00
serg@serg.mysql.com
f43600cdd6 do not accept -R (sort by index) for FULLTEXT indexes 2003-02-22 11:44:26 +01:00
ram@mysql.r18.ru
c0d7208413 Bug fix: we should not use info->buff for searching after we found last key in page 2003-02-20 16:44:34 +04:00
ram@mysql.r18.ru
0177b8bba9 Code cleanup 2003-02-19 21:28:19 +04:00
ram@mysql.r18.ru
e5418e04c6 Bug fix: we should set have_rtree value in case of table reopen.
Code cleanup.
2003-02-19 21:14:50 +04:00
serg@serg.mysql.com
096555ff6a Merge work:/home/bk/mysql-4.1
into serg.mysql.com:/usr/home/serg/Abk/mysql-4.1
2003-02-18 18:14:25 +01:00
serg@serg.mysql.com
eced8a1df9 bug in ft2 repair-by-sort fixed (sort_key_cmp() using ft2_keydef for ft keys) 2003-02-18 18:06:28 +01:00
ram@mysql.r18.ru
907a81afb2 bug fixes 2003-02-18 11:49:05 +04:00
ram@mysql.r18.ru
6adf0c115b bug fixes 2003-02-17 19:29:09 +04:00
monty@mashka.mysql.fi
3695c64111 Merge work:/home/bk/mysql-4.1 into mashka.mysql.fi:/home/my/mysql-4.1 2003-02-12 23:18:00 +02:00
bar@bar.mysql.r18.ru
f38ea69774 rt_index.c:
Bug fix
2003-02-12 19:50:49 +04: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
023d6dd39b Merge with 4.0.11 2003-02-04 21:52:14 +02:00
serg@serg.mysql.com
00db3c391b fixed crash with blobs in compressed table 2003-01-30 19:34:19 +01:00
venu@myvenu.com
8673530904 Merge work.mysql.com:/home/bk/mysql-4.1
into myvenu.com:/home/venu/bk/src-4.1
2003-01-28 21:08:42 -08:00
venu@myvenu.com
b312b97aa0 Fix for windows specific errors 2003-01-28 21:02:20 -08:00
serg@serg.mysql.com
1ced5948f0 low-level error messages cleanup 2003-01-28 17:42:08 +01:00
monty@mashka.mysql.fi
6b71279382 merge 2003-01-28 09:02:51 +02:00
monty@mashka.mysql.fi
689578a099 Fixes for Netware
Call pthread_mutex_destroy() on not used mutex.
Changed comments in .h and .c files from // -> /* */
Added detection of mutex on which one didn't call pthread_mutex_destroy()
Fixed bug in create_tmp_field() which causes a memory overrun in queries that uses "ORDER BY constant_expression"
Added optimisation for ORDER BY NULL
2003-01-28 08:38:28 +02:00
serg@serg.mysql.com
30eb9c5755 remove warnings 2003-01-27 17:52:55 +01:00
serg@serg.mysql.com
e1dc02b975 protection agains badly charsed indexfile 2003-01-27 17:27:21 +01:00
serg@serg.mysql.com
5f6b6fa3b3 fixes for SHOW VARIABLES and --ft-stopword-list 2003-01-27 12:12:12 +01:00
serg@serg.mysql.com
2e03648a0f enadling out-of-cache reads for shared IO_CACHE 2003-01-26 14:20:43 +01:00
serg@serg.mysql.com
f29224c6fe fixed bug in parallel repair 2003-01-26 12:27:29 +01:00
serg@serg.mysql.com
274df58118 --ft_stopword_file command-line option 2003-01-23 13:20:37 +01:00
serg@serg.mysql.com
3f55032c12 merged 2003-01-21 19:37:38 +01:00
serg@serg.mysql.com
0dff67cba2 Two-level index structure for FULLTEXT indexes 2003-01-21 19:24:34 +01:00
venu@myvenu.com
e0a79dc112 Windows build fix 2003-01-18 14:04:34 -08:00
monty@mashka.mysql.fi
8acc22296c Change client_flag to unsigned long (16 -> 32 bits) to handle more options.
Don't use new password format if mysql.user has old format
tables_priv was not reset on FLUSH PRIVILEGES if tables_priv was empty
Portability fixes for Windows
2003-01-18 16:39:21 +02:00
monty@mashka.mysql.fi
76f146a175 Merge with 4.0.9 2003-01-18 03:13:37 +02:00
monty@mashka.mysql.fi
5c7d102043 After merge fix 2003-01-17 13:57:15 +02:00
monty@mashka.mysql.fi
00be3292b3 Fixed typo 2003-01-17 13:52:23 +02:00
monty@mashka.mysql.fi
f4b950df96 Merge with 3.23 2003-01-16 20:47:46 +02:00
arjen@george.bitbike.com
7297dbc75f Text fixes: ISAM -> MyISAM for myisamchk (found by Jocelyn Fournier). 2003-01-14 12:21:18 +10:00
monty@mashka.mysql.fi
f8e660d88c merge with 4.0.9
To get bug fixes for TCP/IP connections, FORCE INDEX and OPTIMIZE TABLE with NULL keys
2003-01-09 03:55:26 +02:00
monty@mashka.mysql.fi
2ea43f3c53 Merge work:/my/mysql-4.0 into mashka.mysql.fi:/home/my/mysql-4.0 2003-01-09 02:20:29 +02:00
monty@mashka.mysql.fi
3c08da957e Don't count NULL values in cardinalty for MyISAM tables.
Free row buffer cache after each query for MyISAM tables.
Added table join option FORCE INDEX
Fixed core dump bug when connecting with hostname that could not be resolved.
2003-01-09 02:19:14 +02:00
serg@sergbook.mysql.com
27cb1e8c3c Merge work:/home/bk/mysql-4.0
into sergbook.mysql.com:/usr/home/serg/Abk/mysql-4.0
2003-01-08 19:44:09 +01:00
serg@sergbook.mysql.com
e98e810664 ft_nlq_search.c:
no _mi_search_next() bug fixed
2003-01-08 19:40:35 +01: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
monty@mashka.mysql.fi
07daf3169e Merge with 4.0.8 2003-01-03 00:04:33 +02:00
monty@mashka.mysql.fi
f22fde21c0 Fixed max_key_length when using UNIQUE keys.
This fixed a bug in GROUP BY on a BLOB column with NULL values.
2002-12-27 21:39:35 +02:00
monty@mashka.mysql.fi
9c509fcb52 Transactions in AUTOCOMMIT=0 mode didn't rotate binary log
Don't enable any bulk insert or record caching code if inserting less than MIN_ROWS_TO_USE_BULK_INSERT rows (100)
2002-12-14 12:45:31 +02:00
serg@serg.mysql.com
b42eff16cb bulk insert code optimized 2002-12-07 22:40:20 +01:00
monty@mashka.mysql.fi
859b688476 Merge with 4.0.6 2002-12-05 19:38:42 +02:00
serg@serg.mysql.com
edb671e270 post-merge fix 2002-12-04 10:47:51 +01:00
monty@mashka.mysql.fi
6603d75213 New multi-table-update code
New (simpler) internal timestamp handling.
More debuging to heap tables.
Small cleanups to multi-table-delete
false -> 0 and true -> 1  (We should use TRUE and FALSE)
2002-11-29 16:40:18 +02:00
wax@mysql.com
ff368e9590 Merge mysql.com:/home/wax/mysql-4n into mysql.com:/home/wax/mysql-4mi 2002-11-28 15:24:55 +05:00
wax@mysql.com
add98cd188 Correct view of sort.c and mi_too_big_key_for_sort() 2002-11-28 15:16:56 +05:00
serg@serg.mysql.com
045a5f0ead typo fixed 2002-11-26 14:19:39 +01:00
serg@serg.mysql.com
b385eb4a05 removed redundant -I include-dirs 2002-11-26 14:01:08 +01:00
serg@serg.mysql.com
5b57077778 myisammrg::index_next_same 2002-11-25 22:18:44 +01:00
monty@mashka.mysql.fi
dac6498f9b Merge with 4.0 2002-11-21 15:56:48 +02:00
monty@mashka.mysql.fi
dd1b7e0c84 Merge work:/my/mysql-4.0 into mashka.mysql.fi:/home/my/mysql-4.0 2002-11-20 22:57:42 +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
serg@serg.mysql.com
35282f8967 bug in _ftb_strstr fixed :) 2002-11-20 15:17:17 +01:00
lenz@mysql.com
996255648b - Applied required modifications for automake 1.5
- "make distcheck" needs to be fixed
2002-11-17 16:45:21 +01:00
wax@mysql.com
625b57b556 Move MI_SORT_PARAM and BUFFPEK to myisamdef.h, delete KEY_STORE, change functions
of store keys to temp. file
2002-11-17 05:41:42 +05:00
wax@mysql.com
ffb82f1c95 Merge mysql.com:/home/wax/mysql-4n into mysql.com:/home/wax/mysql-4mi 2002-11-17 04:15:00 +05:00
monty@mashka.mysql.fi
1a96948e81 Small improvement to alloc_root
Add support for LIMIT # OFFSET #
Changed lock handling:  Now all locks should be stored in TABLE_LIST instead of passed to functions.
Don't call query_cache_invalidate() twice in some cases
mysql_change_user() now clears states to be equal to close + connect.
Fixed a bug with multi-table-update and multi-table-delete when used with LOCK TABLES
Fixed a bug with replicate-do and UPDATE
2002-11-16 20:19:10 +02:00
wax@mysql.com
f19fa1762c add functions for store keys to temporary file with variable length 2002-11-13 03:53:45 +05:00
serg@serg.mysql.com
73e79efde9 memory leak closed 2002-11-12 14:23:55 +01:00
serg@serg.mysql.com
acbf1c6c21 typo fixed 2002-11-09 15:09:24 +01:00
serg@sergbook.mysql.com
cd6bf73f20 manually merged 2002-11-07 21:56:24 +01:00
monty@butch.
a2bdf9265f Portability fixes for Fortre C++ 5.0 (on Sun) in 32 and 64 bit modes. 2002-11-07 03:54:00 +02:00
serg@sergbook.mysql.com
7ad5882da5 BETWEEN fixed 2002-11-06 16:21:41 +01:00
serg@serg.mysql.com
2d8358bc2e fixed "huge number of packed rows in MyISAM" bug in 4.0 tree 2002-10-28 23:24:32 +01:00
serg@serg.mysql.com
ebd9fced0b fixed MyISAM crash on dynamic-row tables with huge number of to-be-packed fields 2002-10-28 22:52:02 +01:00
serg@serg.mysql.com
1a1cafce63 merged 2002-10-25 22:07:04 +00:00
serg@serg.mysql.com
d552ba7d8a support for HA_READ_PREFIX_LAST_OR_PREV in headres
full support for HA_READ_PREFIX_LAST_OR_PREV in MyISAM
protected by #if NOT_IMPLEMENTED_YET in opt_range.cc as not all table handlers support it
2002-10-25 14:09:47 +00:00
serg@serg.mysql.com
17f975b8df less restrictive test for max key length in mi_create 2002-10-23 22:14:59 +00:00
serg@serg.mysql.com
77102d8dac truncate both MYI and MYD files on DELETE FROM table; to avoid warnings on CHECK TABLE 2002-10-22 15:16:16 +00:00
serg@serg.mysql.com
31d702dd68 Merge work:/home/bk/mysql-4.1
into serg.mysql.com:/usr/home/serg/Abk/mysql-4.1
2002-10-22 00:30:17 +00:00
serg@serg.mysql.com
43599856b2 make REPAIR killable 2002-10-22 00:25:36 +00:00
serg@serg.mysql.com
2d573f5852 ftb wasn't able to re-initialize index search (oops! in joins) 2002-10-19 20:39:35 +00:00
serg@serg.mysql.com
dca6c608eb some DBUG_ENTER/RETURN macro added
safer GWS_PROB, avoid log(0)
2002-10-18 14:53:46 +00:00
monty@hundin.mysql.fi
3476dc8f9e Merge hundin.mysql.fi:/my/mysql-4.0 into hundin.mysql.fi:/my/mysql-4.1 2002-10-16 19:31:22 +03:00
monty@hundin.mysql.fi
fbf6ab4465 merge with 4.0.5 2002-10-16 19:30:24 +03:00
monty@hundin.mysql.fi
a54df74af0 Fixes after last merge.
Ignore changed keyblocks when on does DELETE FROM table_name;
2002-10-16 19:05:10 +03:00
monty@hundin.mysql.fi
67d3cd643b Merge with 3.23.54 2002-10-16 13:11:25 +03:00
serg@serg.mysql.com
fcb8bc061d merged 2002-10-14 11:36:48 +00:00
serg@serg.mysql.com
68cd8c47fc --tmpdir=dir1:dir2... uses (is_windows ? ";" : ":") as a delimiter 2002-10-12 17:43:40 +00:00
serg@serg.mysql.com
f7ca3212ea Merge work:/home/bk/mysql-4.1
into serg.mysql.com:/usr/home/serg/Abk/mysql-4.1
2002-10-12 17:40:57 +00:00
bar@bar.mysql.r18.ru
de434ff8ab Don't use sort_order directly 2002-10-10 17:32:24 +05:00
bar@bar.mysql.r18.ru
69dc5ef8f6 Don't use sort_order directly 2002-10-10 17:14:56 +05:00
lenz@mysql.com
5c0d195a5b Merge 2002-10-09 21:03:59 +02:00
serg@serg.mysql.com
32dff16a72 fixed repair_by_sort FULLTEXT bug 2002-10-09 18:57:13 +00:00
bar@bar.mysql.r18.ru
954a47b95a Simple charsets now have strncoll() field too 2002-10-09 15:40:57 +05:00
monty@mashka.mysql.fi
bae4af8a4f Fixed missing table_list->name -> table_list->alias convert 2002-10-08 17:58:43 +03:00
serg@serg.mysql.com
e65536b147 --tmpdir=dir1:dir2:... support in myisamchk 2002-10-08 14:34:04 +00:00
lenz@mysql.com
727e3056d9 Merge mysql.com:/my/mysql-4.0
into mysql.com:/space/my/mysql-4.0-automake
2002-10-08 16:22:35 +02:00
jani@rhols221.adsl.netsonic.fi
d4fc18bf5f Small fixes in mysql and myisampack 2002-10-04 17:18:41 +03:00
monty@mashka.mysql.fi
0f39457613 Merge with 4.0.4 2002-10-02 17:55:12 +03:00
monty@mashka.mysql.fi
4d705988d5 Update libmysqld to use 4.1 protocol. 2002-10-02 14:14:36 +03:00
monty@mashka.mysql.fi
a748b35ddd merge with work 2002-10-02 13:45:16 +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
lenz@mysql.com
3cf7acb756 - Applied required modifications for automake 1.5
- some additional small fixes
 - added "depcomp" for automake 1.5
2002-10-01 21:57:10 +02:00
serg@serg.mysql.com
fdc42017d2 fixed bug in myisamchk -R mode 2002-09-25 14:29:38 +00:00
monty@mashka.mysql.fi
f638ee6df9 Added code to flush a bulk_insert index.
This fixes a bug when doing multi-row inserts on table with an auto_increment key that is not in the first key segment.
2002-09-18 21:04:49 +03:00
serg@sergbook.mysql.com
7118d006b4 ft-boolean + ORDER BY (ftb tree reusing) bug 2002-09-17 21:04:10 +02:00
serg@sergbook.mysql.com
888d3cf757 max_key_length MyISAM bugfix 2002-09-10 21:40:01 +02:00
bar@bar.mysql.r18.ru
14938669af Some warning fixes 2002-09-06 18:15:40 +05:00
serg@serg.mysql.com
2697582cfb merged 2002-09-04 16:00:57 +00:00
serg@sergbook.mysql.com
2a6b91bc32 wrong test for -q/-qq (T_QUICK/T_FORCE_UNIQUENESS) in myisamchk corrected 2002-09-04 08:05:29 +02:00
monty@mashka.mysql.fi
a01a0840dc Some trivial optimzations
Check if AND/OR expression can be NULL; Fixed bug in GROUP BY and-or-expression where expression could be NULL
Bug fix for SHOW OPEN TABLES when user didn't have privilege to access all open tables.
Better fix for ALTER TABLE on BDB tables.
2002-09-03 15:44:25 +03:00
serg@serg.mysql.com
2e15d13fd8 LOCK+change+OPTIMIZE MyISAM bug 2002-08-31 20:42:41 +00:00
Sinisa@sinisa.nasamreza.org
f883e5eb27 A nasty fix when all rows are deleted with a write lock 2002-08-30 22:17:24 +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@hundin.mysql.fi
a5edb20042 Fixed timing problem with rpl000001 replication test.
Fixed configure problems with HPUX and openbsd
SHOW SLAVE STATUS returns empty set if slave is not initialized
SHOW MASTER STATUS returns empty set if binary logging is not enabled.
Fixed shutdown problem on Solaris.
2002-08-18 16:04:26 +03:00
monty@hundin.mysql.fi
f7c8bd0e47 Portability fixes for 4.0.3 build.
Don't update MyISAM index file on UPDATE if index is not changed
2002-08-17 18:02:56 +03:00
monty@hundin.mysql.fi
c99c1fd384 Changed IF(expr, column, NULL) to take type from column
Fixed some windows portability problems and removed some compiler warnings
 Cleaned up QUOTE() function and fixed bug in \0 and \Z handling.
2002-08-12 03:33:46 +03:00
serg@sergbook.mysql.com
d981ccf90c fixed mi_comp_unique to use _mi_compare_text() 2002-08-09 13:22:23 +02:00
serg@serg.mysql.com
680c9778f5 Merge serg.mysql.com:/usr/home/serg/Abk/mysql-4.0
into serg.mysql.com:/usr/home/serg/Abk/mysql-4.00
2002-08-08 21:05:17 +00:00
serg@sergbook.mysql.com
a196e7efc3 "words" of length 1 are removed from stopword list 2002-08-08 13:14:58 +02:00
monty@mashka.mysql.fi
1bb7665a9c merge 2002-08-08 03:29:36 +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
serg@sergbook.mysql.com
0e0137b588 one more "suboptimal memory usage during REPAIR for FULLTEXT keys" bug fixed 2002-08-07 23:11:26 +02:00
serg@sergbook.mysql.com
3a2f57745d Merge work:/home/bk/mysql-4.0
into sergbook.mysql.com:/usr/home/serg/Abk/mysql-4.0
2002-08-06 13:10:39 +02:00
serg@sergbook.mysql.com
9621e36238 fixed bug, that caused suboptimal memory usage during REPAIR when ft_max_word_len was decreased by user 2002-08-06 13:09:16 +02:00
monty@mashka.mysql.fi
621b5da80e Fixed bug with GROUP BY on NULL fields.
(Merge of code from 4.0)
2002-08-05 18:10:53 +03:00
jani@hynda.(none)
9bc030f68a Small fixes in mysql and myisamchk. 2002-08-05 17:08:27 +03:00
serg@sergbook.mysql.com
9fae3956c9 make SEARCH_PREFIX to work with complex (use_coll) charsets, namely latin1_de 2002-08-05 00:14:21 +02:00
serg@serg.mysql.com
1b29ee50fc yet another "trunc*" bug fixed - and the fundamental one! (now, when next trunc* word is less than curdoc it doesn't led to wrong results) 2002-08-04 19:20:02 +00:00
serg@sergbook.mysql.com
aa1edc610e rec_buff should be initialized 2002-07-26 20:52:13 +02:00
serg@sergbook.mysql.com
9961a57e90 mi_repair* functions need a separate rec_buff :( 2002-07-26 16:01:04 +02:00
serg@sergbook.mysql.com
43ef1198e9 MyISAM: always store alloced_rec_buff_length with the buffer itself 2002-07-26 14:42:51 +02:00
monty@mashka.mysql.fi
bc035c71f1 Merge with 3.23.51
Fixed wrong usage of sprintf() in ha_innodb.cc
2002-07-25 22:46:28 +03:00
serg@sergbook.mysql.com
0a270d6562 bugfix: uniques did not contributed to MYI tot_length estimation, which resulted in "Index file full" error on huge SELECT DISTINCT's 2002-07-25 12:30:41 +02:00
serg@sergbook.mysql.com
51d940bb46 Merge work:/home/bk/mysql-4.0
into sergbook.mysql.com:/usr/home/serg/Abk/mysql-4.0
2002-07-24 21:57:37 +02:00
serg@sergbook.mysql.com
e74ba054ec bugfix: uniques did not contributed to MYI tot_length estimation, which resulted in "Index file full" error on huge SELECT DISTINCT's 2002-07-24 21:56:33 +02:00
monty@mashka.mysql.fi
c702a1f8fd Removed wrong implementation of CUBE/ROLLUP
Fixed bugfix of INSERT ... SET db_name.table_name.column_name
Changed locking to external-locking
Fix client hangup for some invalid SQL queries.
2002-07-24 19:55:08 +03:00
monty@mashka.mysql.fi
4233d3a3d4 merge 2002-07-23 20:39:36 +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
serg@sergbook.mysql.com
0642d54a37 parallel repair: style fixups 2002-07-21 21:01:05 +02:00
serg@sergbook.mysql.com
2fe3fec4e4 parallel repair needs rec_buff local for thread !!! 2002-07-14 21:47:46 +02:00
serg@sergbook.mysql.com
3f6491e3eb yet another generalization for rec_buff handling, MI_INFO doesn't need rec_alloc anymore 2002-07-14 13:51:03 +02:00
serg@sergbook.mysql.com
0ae810ae85 mi_fix_rec_buff_for_blob() generalized a bit 2002-07-09 22:42:44 +02:00
serg@sergbook.mysql.com
ffe18e48e5 Merge work:/home/bk/mysql-4.0
into sergbook.mysql.com:/usr/home/serg/Abk/mysql-4.0
2002-07-01 12:58:56 +02:00
serg@sergbook.mysql.com
f72f6467a2 added missing options to help text (myisamchk --help) 2002-07-01 12:58:30 +02:00
monty@hundin.mysql.fi
daaf9b1a31 Merge work:/home/bk/mysql-4.0 into hundin.mysql.fi:/my/bk/mysql-4.0 2002-07-01 02:55:57 +03:00
monty@hundin.mysql.fi
4d4d6d34a2 Removed purify warning 2002-07-01 02:50:30 +03:00
serg@serg.mysql.com
f3e1fb4d4c post-merge fix 2002-06-30 23:29:25 +00:00
serg@sergbook.mysql.com
ac26ba181e Merge serg:/usr/home/serg/Abk/mysql-4.0
into sergbook.mysql.com:/usr/home/serg/Abk/mysql-4.0
2002-06-30 18:14:49 +02:00
serg@serg.mysql.com
0a1de562a7 merged 2002-06-30 16:14:48 +00:00
serg@serg.mysql.com
a90ad0a0d0 added -H (--HELP) to myisamchk to get a list of all the options it accepts (including debug and internal ones). 2002-06-30 15:05:29 +00:00
serg@serg.mysql.com
53ac59b913 "myisamchk -p" for parallel recover works (no extensive testing though) 2002-06-30 14:17:29 +00:00
serg@sergbook.mysql.com
dc8d7e03c3 Merge work:/home/bk/mysql-4.0
into sergbook.mysql.com:/usr/home/serg/Abk/mysql-4.0
2002-06-29 13:33:46 +02:00
monty@hundin.mysql.fi
3615272269 Fixed copyright in pack_isam.c 2002-06-29 01:06:14 +03:00
monty@hundin.mysql.fi
578a9d9901 Updated windows files (VC++ files and winmysqladmin).
Portability fixes.
Removed compiler warnings.
2002-06-28 17:26:11 +03:00
serg@sergbook.mysql.com
e0381217a6 Merge work:/home/bk/mysql-4.0
into sergbook.mysql.com:/usr/home/serg/Abk/mysql-4.0
2002-06-28 15:19:43 +02:00
serg@sergbook.mysql.com
84103d36d7 parser bug of "phrase search" fixed 2002-06-28 15:18:45 +02:00
monty@hundin.mysql.fi
33f84cf8fe Fixed bug in REPAIR table.
Portability fix in safemalloc.c
2002-06-28 15:06:04 +03:00
monty@hundin.mysql.fi
ade20c5b19 Indentation cleanup & new comments 2002-06-28 09:18:23 +03:00
monty@hundin.mysql.fi
5fa5172b64 merge 2002-06-27 11:35:50 +03:00
monty@hundin.mysql.fi
8a2daeac77 Removed mysql_ssl_clear()
Added statistics information for alarms (for bug tracking)
Don't store "incomplete" in the xxx.cfg file if we are not using --restart. (Crash-me)
Enlarged STACK_BUF_ALLOC becasue of failed crash-me test
Aded new script mysql_tableinfo to make a system directory.
2002-06-27 11:27:04 +03:00