bell@sanja.is.com.ua
b63f230346
row IN subselects (SCRUM)
2002-12-19 21:15:09 +02:00
bell@sanja.is.com.ua
54c7afd2a5
Item_in_optimizer is changed to be used with row IN subselect (SCRUM)
...
removed unused items
2002-12-19 13:35:12 +02:00
bell@sanja.is.com.ua
4cfb6d97b5
support of simple row subselects (SCRUM)
2002-12-19 07:38:33 +02:00
bell@sanja.is.com.ua
b785e980bd
optimized single value subselect (to be used as row) (SCRUM)
2002-12-19 07:38:32 +02:00
hf@deer.mysql.r18.ru
c1e69d2cca
Merging
2002-12-16 18:58:55 +04:00
bell@sanja.is.com.ua
e82b91e1c8
fixed subselect null test
...
fixed method definition (overloading instead of redefinition)
fixed time expression type definition
2002-12-15 11:14:53 +02:00
monty@mashka.mysql.fi
64ed35700e
Fix after merge
2002-12-14 18:30:28 +02:00
monty@mashka.mysql.fi
d783e18436
merge
2002-12-14 17:49:01 +02:00
monty@mashka.mysql.fi
d49167bae5
Fixes for binary protocol (complement to last push)
...
Changed timestamp to return string in YYYY-MM-DD HH:MM:SS format.
DATE_ADD() and related functions now returns correct DATE/DATETIME type depending on argument types.
Now all tests passes, still some work left to remove warnings in log files from mysql-test-run
2002-12-14 17:43:01 +02:00
vva@eagle.mysql.r18.ru
8eddd4d411
Merge vvagin@work.mysql.com:/home/bk/mysql-4.1
...
into eagle.mysql.r18.ru:/home/vva/work/VARIANCE/4.1.clone
2002-12-14 03:38:38 +04:00
vva@eagle.mysql.r18.ru
b624df724b
add VARIANCE function
2002-12-14 03:36:59 +04:00
pem@mysql.com
113b9240d1
Added collection of called procedures in a list.
...
Fixed eval bug; now conditions with local variables work in WHILE et al.
Made mysql_install_db.sh create proc table.
2002-12-13 18:25:36 +01:00
pem@mysql.com
77b671f594
Moved create/find/drop functions to a separate files (sp.cc,sp.h).
...
Fixed backpatching of forward jumps.
Implemented LOOP, WHILE, REPEAT (temporarily known as SPREPEAT).
Known bug: Expression evaluation still not quite ok (e.g. "x > 0"),
which is why IF and CASE is not yet implemented.
2002-12-12 13:14:23 +01:00
hf@deer.mysql.r18.ru
3517febe97
Resolving merge conflicts
2002-12-12 12:49:56 +04:00
monty@mashka.mysql.fi
a241d9a0f7
Merge work:/home/bk/mysql-4.1 into mashka.mysql.fi:/home/my/mysql-4.1
2002-12-11 09:18:43 +02:00
monty@mashka.mysql.fi
d3eb993a27
rename of net_pkg.cc to protocol.cc
...
Class for sending data from server to client (Protocol)
This handles both the old ( <= 4.0 ) protocol and then new binary protocol that is used for prepared statements.
2002-12-11 09:17:51 +02:00
bell@sanja.is.com.ua
5fc21bc187
postreview fix (SCRUM)
...
NULL fixed
max_length fixed
layout fixed
2002-12-10 18:10:00 +02:00
bell@sanja.is.com.ua
6db77efb75
merging
2002-12-10 11:41:47 +02:00
bar@bar.mysql.r18.ru
43786feed1
More use of new str->number routines
2002-12-09 14:58:24 +04:00
pem@mysql.com
aae07a4d45
Simplistic, experimental framework for Stored Procedures (SPs).
...
Implements creation and dropping of PROCEDUREs, IN, OUT, and INOUT parameters,
single-statement procedures, rudimentary multi-statement (begin-end) prodedures
(when the client can handle it), and local variables.
Missing most of the embedded SQL language, all attributes, FUNCTIONs, error handling,
reparses procedures at each call (no caching), etc, etc.
Certainly buggy too, but procedures can actually be created and called....
2002-12-08 19:59:22 +01:00
venu@myvenu.com
9100688c17
item.cc:
...
Fix for save_in_field to take extra bool argumnet (4.0 merge compatibility)
2002-12-06 23:39:11 -08:00
bell@sanja.is.com.ua
4506ab9ef1
_NEW_ IN/ALL/ANY/SOME behaviour with NULL (SCRUM related)
...
optimization of left expression evaluation
more descriptive method name
2002-12-06 21:55:53 +02:00
monty@mashka.mysql.fi
f1d35b29bc
merge fix
2002-12-06 21:15:05 +02:00
serg@serg.mysql.com
09ed694094
current_user() to return priv_user
2002-12-05 21:38:27 +01:00
monty@mashka.mysql.fi
859b688476
Merge with 4.0.6
2002-12-05 19:38:42 +02:00
bell@sanja.is.com.ua
ed8cc2a844
changing in Item_row according last review (SCRUM)
2002-12-04 11:01:48 +02:00
monty@hundin.mysql.fi
8830eb4aa9
Change of internal key_field=NULL handling to avoid error messages.
...
Optimized SELECT DISTINCT ... ORDER BY ... LIMIT
Fixed reference to uninitalized variable
2002-12-03 13:08:25 +02:00
bell@sanja.is.com.ua
39ddd2dcb4
checking columns of top items
2002-11-29 12:30:04 +02:00
hf@genie.(none)
5e8b27c0d3
Pull conflicts resolutions
2002-11-29 12:35:48 +04:00
bell@sanja.is.com.ua
c1527b6f4c
Merge sanja.is.com.ua:/home/bell/mysql/mysql-4.1
...
into sanja.is.com.ua:/home/bell/mysql/work-row-4.1
2002-11-28 20:04:09 +02:00
bar@bar.mysql.r18.ru
847ea719b6
New functions
2002-11-28 11:04:26 +04:00
bell@sanja.is.com.ua
4be2cfd62d
merging
2002-11-27 19:31:11 +02:00
bell@sanja.is.com.ua
f8ff8fc6de
after review changes in IN/ALL/ANY/SOME (SCRUM)
2002-11-27 17:04:43 +02:00
bell@sanja.is.com.ua
32df7cacac
merging
2002-11-27 11:32:09 +02:00
monty@mashka.mysql.fi
3d1af24f0f
Merge work:/home/bk/mysql-4.1 into mashka.mysql.fi:/home/my/mysql-4.1
2002-11-25 17:34:51 +02:00
monty@mashka.mysql.fi
4cefc97f65
Fixed CAST( xxx as CHAR)
2002-11-25 17:33:51 +02:00
bell@sanja.is.com.ua
39c7302140
fix of selfreference bug
2002-11-24 11:18:32 +02:00
bell@sanja.is.com.ua
1b62dc0223
Merge sanja.is.com.ua:/home/bell/mysql/mysql-4.1
...
into sanja.is.com.ua:/home/bell/mysql/work-crash-4.1
2002-11-23 20:32:02 +02:00
venu@myvenu.com
a9aebd433d
protocol merge
2002-11-22 10:20:14 -08:00
venu@myvenu.com
b74c43f475
protocol fixups
2002-11-22 10:04:42 -08:00
monty@mashka.mysql.fi
dac6498f9b
Merge with 4.0
2002-11-21 15:56:48 +02:00
bell@sanja.is.com.ua
2eb623a4f0
prevent using references on sum function (except HAVING clouse of current select) and forward references
2002-11-21 11:01:33 +02:00
bell@sanja.is.com.ua
7a9f47759e
basic row Items (SCRUM)
2002-11-15 20:32:09 +02:00
bell@sanja.is.com.ua
41d9311621
fixed cyclic reference bug
2002-11-14 00:26:18 +02:00
monty@mashka.mysql.fi
876f3f4d30
Fixed that NULL and 0 returns 0 instead of NULL
...
This is coded to not cause a speed impact on top level AND expressions where we don't care if an AND expression returns 0 or NULL
2002-11-11 15:57:35 +02:00
hf@genie.(none)
25bd1e9a37
Merged by hands
2002-11-07 12:20:08 +04:00
bell@sanja.is.com.ua
c0932c7bea
Merge sanja.is.com.ua:/home/bell/mysql/mysql-4.1
...
into sanja.is.com.ua:/home/bell/mysql/work-in-4.1
2002-11-06 22:35:17 +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
9a9e7ce0f4
Item->thd_charset() - returns a default charset which should be used
...
to compose strings appeared without charset context, for example,
in convertion from numer into string type.
2002-11-06 15:49:53 +04:00
hf@genie.(none)
3a7c12b22a
Libmysqld improvements
2002-11-06 14:42:44 +04:00
bell@sanja.is.com.ua
3e8a5e1d34
IN subselect with ORDER BY, HAVING & sum functions
2002-10-31 02:11:59 +02:00
bell@sanja.is.com.ua
07727576b8
IN subselect
2002-10-27 23:27:00 +02:00
bar@bar.mysql.r18.ru
95aef91521
BINARY charset is now used instead of binary_flag
2002-10-25 13:58:32 +05:00
bell@sanja.is.com.ua
c2da10ae18
fixed DISTINCT in subselect bug
...
small Item_ref fix
2002-10-23 23:36:11 +03:00
monty@hundin.mysql.fi
9ecc5783d6
Fix after merge
2002-10-16 22:48:51 +03: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
b4343ba939
Fixed bug in LEFT JOIN ... WHERE not_null_key_column=NULL;
2002-10-16 10:32:45 +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
Sinisa@sinisa.nasamreza.org
22bcce253e
Adding a necessary functionality to ::store and ::save_in_field
...
that will take place properly after pull from 4.0, in order to
handle conversions from quoted constants to bigint's.
2002-08-24 14:49:04 +03:00
monty@mashka.mysql.fi
e701333bbf
INSERT ... VALUES(DEFAULT)
2002-07-25 01:00:56 +03: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
Sinisa@sinisa.nasamreza.org
2e8fb546dc
OLAP functionality plus some small bug fixes
2002-07-20 14:51:52 +03:00
bell@sanja.is.com.ua
2cf620004e
subselect in having clause
...
fixed bug in sum function in subselect
2002-07-01 14:14:51 +03:00
venu@myvenu.com
5a33842a16
sql_error.cc, sql_prepare.cc:
...
new file
Client-server protocol 4.1 changes - Server side:
* Enhanced metadata information:
- SHOW [COUNT(*)] ERRORS [LIMIT [offset,] rows]
- SHOW [COUNT(*)] WARNING [LIMIT [offset,] rows]
- SHOW TABLE TYPES
- SHOW PRIVILEGES
- SHOW COLUMN TYPES (Not fully implemented)
* Prepared execution
* Long data handling in pieces
* And other misc changes
2002-06-12 14:13:12 -07: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
bell@sanja.is.com.ua
289ac250af
merged
2002-06-05 21:32:22 +03:00
monty@hundin.mysql.fi
f0b28da6f9
merge with 4.0
2002-06-03 12:59:31 +03:00
bell@sanja.is.com.ua
59602212d2
merge
2002-05-26 22:57:08 +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
monty@hundin.mysql.fi
f5ed8784a2
merge with 3.23.51
2002-05-16 18:20:49 +03:00
monty@hundin.mysql.fi
14b55bcc72
Fixed bug in datetime range optimization
2002-05-15 01:01:26 +03:00
bell@sanja.is.com.ua
e077890b04
simple subselects ported to new select_lex structures
2002-05-12 23:46:42 +03:00
monty@hundin.mysql.fi
b5a145d872
merge
2002-04-13 15:34:39 +03:00
monty@hundin.mysql.fi
727e507bca
merge with 3.23.50
2002-03-27 01:56:10 +02:00
monty@hundin.mysql.fi
ed040fe21e
Fix for bug in WHERE key='j' or key='J'
2002-03-22 14:03:42 +02:00
monty@tik.mysql.fi
9d9bcf25e7
Fix sorting of NULL values (Should always be first)
...
Fix problem with HAVING and MAX() IS NOT NULL
2002-03-02 09:51:24 +02:00
bar@gw.udmsearch.izhnet.ru
735b27d578
Added GIS extension
2002-02-22 15:24:42 +04:00
Sinisa@sinisa.nasamreza.org
d82830c591
Code that had to be changed so that CREATE ... SELECT ... always
...
creates proper column types, out of any function, expression or from
other tables.
2001-12-29 15:15:51 +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
fd0780493d
merge with 3.23.44
2001-11-04 16:14:09 +02:00
monty@hundin.mysql.fi
d89690e606
Portability fixes
...
Fix for consistent 0000-00-00 date handling
Close + open binary logs on flush tables
Fix for AVG() in HAVING.
2001-10-31 18:27:49 +02:00
monty@hundin.mysql.fi
0bfec316ce
Don't do signal() on windows (Causes instability problems)
...
Safer, a bit faster filesort.
Code changes to avoid calls to current_thd() (faster code).
Removed all compiler warnings from readline.
2001-10-17 19:39:39 +03:00
monty@hundin.mysql.fi
62c8014171
Fixed some build problems.
...
Fix that compressed packets and normal packets looks indentical before calling net_real_write()
(Needed for query cache)
Optimize IS NULL handling
2001-10-04 02:44:18 +03:00
monty@tik.mysql.fi
e05bf277d6
Final fixes for INSERT into MERGE tables.
...
Move MAX_BLOB_WIDTH to be global
Added full support for unsigned BIGINT
Fixed spelling errors
2001-09-27 21:45:48 +03:00
monty@hundin.mysql.fi
7cadc6e711
Changed to use my_global.h
...
Fixed problem with LIKE with latin1_de
Added parsing support of UNSIGNED LONG LONG
2001-09-14 02:54:33 +03:00
serg@serg.mysql.com
389a7c0286
bugfix: HAVING MATCH
2001-04-17 14:17:22 +02: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
d564acf14e
Fixes for Ia64
2000-08-23 15:02:27 +03:00
bk@work.mysql.com
f4c589ff6c
Import changeset
2000-07-31 21:29:14 +02:00