mariadb/sql
unknown 69be8b9d64 (SCRUM)
It looks like samll revolution in SELECT_LEX tree, but it was only natural way to solve problem with name resolution of external fields inside subselect which belongs to global order of union
also it have following advantages:
 - removed mess with current_select type conversion
   - type checking/converting
   - a lot of virtual methods
 - fake select for union execution allocated only once (it was allocated for every subselect with union executing)

changes:
fixed bug with outer fields name resolution of subqueries which belong to global ORDER BY clause
remuved select_lex() function, now thd->lex.current_select always have type SELECT_LEX
new SELECT_LEX (fake_select_lex) will be allocated in case of UNION for using in UNION processing
fake_select_lex allocated for union hold global ORDER BY & LIMIT clauses and have linkage equal to GLOBAL_OPTIONS_TYPE 
new description of SELECT_LEX tree

(SCRUM)


sql/item.cc:
  global parameters moved to fake_select_lex
sql/item_subselect.cc:
  global parameters moved to fake_select_lex
sql/item_sum.cc:
  no need type checking & converion now
sql/sql_delete.cc:
  no need type checking & converion now
sql/sql_derived.cc:
  global parameters moved to fake_select_lex
sql/sql_lex.cc:
  not used fields/mrthods moved from st_select_lex_node to st_select_lex
  global parameters moved to fake_select_lex
sql/sql_lex.h:
  comments about new tree of select_lex s
  not used fields/mrthods moved from st_select_lex_node to st_select_lex
  global parameters moved to fake_select_lex
sql/sql_parse.cc:
  global parameters moved to fake_select_lex
  allocation of fake_select_lex on demand
sql/sql_select.cc:
  now fake_select_lex marked as GLOBAL_OPTIONS_TYPE
sql/sql_union.cc:
  global parameters moved to fake_select_lex
sql/sql_yacc.yy:
  global parameters moved to fake_select_lex
2003-07-03 02:30:52 +03:00
..
share Merge paul@bk-internal.mysql.com:/home/bk/mysql-4.1 2003-06-26 11:04:20 -05:00
.cvsignore
add_errmsg
client_settings.h Add missing defines 2003-06-16 01:13:24 +03:00
custom_conf.h
derror.cc
des_key_file.cc Merge with 4.0.11 2003-02-04 21:52:14 +02:00
field.cc timestamp MYD-4.0 format compatibility fix 2003-06-28 23:01:33 +02:00
field.h Merge kishkin.ru:/home/wax/mysql-4.1 into kishkin.ru:/home/wax/mysql-4g 2003-06-26 05:06:49 +06:00
field_conv.cc Support of warnings for all DML statements (Insert, Update and Alter) 2003-04-30 00:02:28 -07:00
filesort.cc After merge fixes 2003-05-21 21:39:58 +03:00
frm_crypt.cc
gen_lex_hash.cc merged 2003-03-13 13:44:03 +01:00
gstream.cc postreview fix (SCRUM) 2002-12-28 01:01:05 +02:00
gstream.h Portability fixes 2003-02-27 03:44:44 +02:00
ha_berkeley.cc Preparing to client<->server autoconvert 2003-03-17 13:14:04 +04:00
ha_berkeley.h Merge sanja.is.com.ua:/home/bell/mysql/mysql-4.1 2003-02-18 16:28:31 +02:00
ha_heap.cc
ha_heap.h Merge with 4.0.13 2003-05-19 16:35:49 +03:00
ha_innodb.cc Merge with 4.0.13 2003-06-05 17:33:38 +03:00
ha_innodb.h Merge with 4.0.13 2003-05-19 16:35:49 +03:00
ha_isam.cc Give warning if MySQL doesn't honor given storage engine 2003-05-13 11:15:11 +03:00
ha_isam.h Give warning if MySQL doesn't honor given storage engine 2003-05-13 11:15:11 +03:00
ha_isammrg.cc
ha_isammrg.h
ha_myisam.cc Merge rurik.mysql.com:/home/igor/mysql-4.1 2003-06-12 06:22:35 -07:00
ha_myisam.h Many files: 2003-06-12 04:29:02 -07:00
ha_myisammrg.cc Merge with 4.0.11 2003-02-04 21:52:14 +02:00
ha_myisammrg.h
handler.cc Merge rurik.mysql.com:/home/igor/mysql-4.1 2003-06-12 06:22:35 -07:00
handler.h Merge rurik.mysql.com:/home/igor/mysql-4.1 2003-06-12 06:22:35 -07:00
hash_filo.cc
hash_filo.h sql_acl.cc, item.h: 2003-03-07 12:21:32 +04:00
hostname.cc sql_acl.cc, item.h: 2003-03-07 12:21:32 +04:00
init.cc Merge with 4.0.13 2003-05-19 16:35:49 +03:00
item.cc (SCRUM) 2003-07-03 02:30:52 +03:00
item.h Item tree iterator 2003-07-02 13:12:18 +03:00
item_buff.cc stringcmp() and sortcmp() have been unified 2003-03-04 18:01:59 +04:00
item_cmpfunc.cc Item tree iterator 2003-07-02 13:12:18 +03:00
item_cmpfunc.h Item tree iterator 2003-07-02 13:12:18 +03:00
item_create.cc New class DTCollation (SQL:2003 calls it "declared type collation") 2003-06-24 15:11:07 +05:00
item_create.h Added AsWKT() alias for AsText(). 2003-06-20 14:31:47 +05:00
item_func.cc Item tree iterator 2003-07-02 13:12:18 +03:00
item_func.h Item tree iterator 2003-07-02 13:12:18 +03:00
item_geofunc.cc Renamed xxx_as_text() and xxx__from_text(). 2003-06-20 14:53:37 +05:00
item_geofunc.h Renamed xxx_as_text() and xxx__from_text(). 2003-06-20 14:53:37 +05:00
item_row.cc Item tree iterator 2003-07-02 13:12:18 +03:00
item_row.h Item tree iterator 2003-07-02 13:12:18 +03:00
item_strfunc.cc New messages for 3-adic and N-adic operations 2003-06-26 15:45:04 +05:00
item_strfunc.h Item tree iterator 2003-07-02 13:12:18 +03:00
item_subselect.cc (SCRUM) 2003-07-03 02:30:52 +03:00
item_subselect.h after review changes (SCRUM) 2003-07-02 01:45:22 +03:00
item_sum.cc (SCRUM) 2003-07-03 02:30:52 +03:00
item_sum.h Merge kishkin.ru:/home/wax/mysql-4.1 into kishkin.ru:/home/wax/mysql-4g 2003-06-07 02:28:11 +06:00
item_timefunc.cc CHARSET_INFO structure reorganization for easier maintainance 2003-05-23 17:45:52 +05:00
item_timefunc.h Fixing a bug #195 2003-03-27 16:11:01 +02:00
item_uniq.cc
item_uniq.h Added SQLSTATE to client/server protocol 2003-06-04 18:28:51 +03:00
key.cc Merge with 4.0.12 2003-03-19 22:25:44 +02:00
lex.h Added AsWKT() alias for AsText(). 2003-06-20 14:31:47 +05:00
lex_symbol.h
lock.cc Merge with 4.0 2003-03-16 19:17:54 +02:00
log.cc Merge bk-internal.mysql.com:/home/bk/mysql-4.1 2003-06-14 11:38:09 +03:00
log_event.cc New class DTCollation (SQL:2003 calls it "declared type collation") 2003-06-24 15:11:07 +05:00
log_event.h See each file's changeset for details. 2003-06-12 16:20:31 +02:00
Makefile.am Cleanup after split of libmysql.c to client.c and libmysql.c. A 4.1 master/slave will now use the 4.1 protocol 2003-06-14 11:37:42 +03:00
matherr.c
mf_iocache.cc Merge with 4.0 2003-03-16 19:17:54 +02:00
my_lock.c Fixes for Netware 2003-01-28 08:38:28 +02:00
mysql_priv.h after review changes (SCRUM) 2003-07-02 01:45:22 +03:00
mysqld.cc Added support for structured options (WL task ID 947). 2003-06-27 18:51:39 +03:00
net_serv.cc Merge with 4.0.13 2003-06-05 17:33:38 +03:00
nt_servc.cc Fix error msg. Bug #681 2003-06-19 12:17:23 -04:00
nt_servc.h
opt_ft.cc
opt_ft.h
opt_range.cc ORDER BY optimization 2003-05-27 18:40:37 +03:00
opt_range.h ORDER BY optimization 2003-05-27 18:40:37 +03:00
opt_sum.cc After merge fixes 2003-05-21 21:39:58 +03:00
password.c After merge fixes 2003-03-20 21:35:03 +02:00
procedure.cc
procedure.h Strings which appear without charset context, 2003-03-03 10:53:08 +04:00
protocol.cc Cleanup after split of libmysql.c to client.c and libmysql.c. A 4.1 master/slave will now use the 4.1 protocol 2003-06-14 11:37:42 +03:00
protocol.h new version of help 2003-05-29 17:47:31 -04:00
protocol_cursor.cc SCRUM 2003-04-23 19:37:33 +05:00
records.cc Merge with 4.0.13 2003-05-19 16:35:49 +03:00
repl_failsafe.cc Cleanup after split of libmysql.c to client.c and libmysql.c. A 4.1 master/slave will now use the 4.1 protocol 2003-06-14 11:37:42 +03:00
repl_failsafe.h Merge with 4.0 2003-03-16 19:17:54 +02:00
set_var.cc Merge 2003-06-18 07:31:23 -07:00
set_var.h We now require SUPER privilege for SET PSEUDO_THREAD_ID. 2003-06-11 17:07:33 +02:00
slave.cc Fixed some new memory leaks 2003-06-24 12:10:35 +03:00
slave.h See each file's changeset for details. 2003-06-12 16:20:31 +02:00
spatial.cc Renamed xxx_as_text() and xxx__from_text(). 2003-06-20 14:53:37 +05:00
spatial.h Renamed xxx_as_text() and xxx__from_text(). 2003-06-20 14:53:37 +05:00
sql_acl.cc Fixes for make_win_src_distributions 2003-06-15 23:24:37 +03:00
sql_acl.h REVOKE all privileges and delete user(244) 2003-06-06 17:43:23 +05:00
sql_analyse.cc Fixed problem when comparing a key for a multi-byte-character set. (bug 152) 2003-04-27 22:12:08 +03:00
sql_analyse.h sql_acl.cc, item.h: 2003-03-07 12:21:32 +04:00
sql_base.cc after review changes (SCRUM) 2003-07-02 01:45:22 +03:00
sql_cache.cc Merge with 4.0.13 2003-06-04 19:21:51 +03:00
sql_cache.h merging 2003-04-16 20:35:29 +03:00
sql_class.cc cond_count moved to SELECT_LEX_NODE 2003-06-26 11:09:11 +03:00
sql_class.h cond_count moved to SELECT_LEX_NODE 2003-06-26 11:09:11 +03:00
sql_client.cc Fixed some new memory leaks 2003-06-24 12:10:35 +03:00
sql_crypt.cc - renamed "rnd" to "my_rnd" as the name was too generic (and is an exported 2003-03-18 22:14:02 +01:00
sql_crypt.h
sql_db.cc character_set_server is now updatable 2003-05-30 13:03:56 +05:00
sql_delete.cc (SCRUM) 2003-07-03 02:30:52 +03:00
sql_derived.cc (SCRUM) 2003-07-03 02:30:52 +03:00
sql_do.cc fixed subselects with temporary tables (SCRUM) 2003-01-25 02:25:52 +02:00
sql_error.cc Support of warnings for all DML statements (Insert, Update and Alter) 2003-04-30 00:02:28 -07:00
sql_handler.cc Merge with 4.0.11 2003-02-26 01:03:47 +02:00
sql_help.cc Fixed some new memory leaks 2003-06-24 12:10:35 +03:00
sql_insert.cc LAST_INSERT_ID()}will now return 0 if the last INSERT didn't insert any rows. 2003-06-15 12:34:04 +03:00
sql_lex.cc (SCRUM) 2003-07-03 02:30:52 +03:00
sql_lex.h (SCRUM) 2003-07-03 02:30:52 +03:00
sql_list.cc
sql_list.h Added SQLSTATE to client/server protocol 2003-06-04 18:28:51 +03:00
sql_load.cc character_set_server is now updatable 2003-05-30 13:03:56 +05:00
sql_manager.cc
sql_manager.h
sql_map.cc
sql_map.h
sql_olap.cc subselect transformation moved in after-fix_field place 2003-05-14 21:51:33 +03:00
sql_parse.cc (SCRUM) 2003-07-03 02:30:52 +03:00
sql_prepare.cc Added SQLSTATE to client/server protocol 2003-06-04 18:28:51 +03:00
sql_rename.cc Merge with 4.0 2003-03-16 19:17:54 +02:00
sql_repl.cc Merge with 4.0.13 2003-06-05 17:33:38 +03:00
sql_repl.h Conflicts relsolving 2003-03-11 16:32:17 +04:00
sql_select.cc (SCRUM) 2003-07-03 02:30:52 +03:00
sql_select.h Added SQLSTATE to client/server protocol 2003-06-04 18:28:51 +03:00
sql_show.cc merge with public tree 2003-06-05 00:12:45 +03:00
sql_sort.h Many files: 2003-04-24 14:33:33 +03:00
sql_state.c Added SQLSTATE to client/server protocol 2003-06-04 18:28:51 +03:00
sql_string.cc merge with public tree 2003-06-05 00:12:45 +03:00
sql_string.h merge with public tree 2003-06-05 00:12:45 +03:00
sql_table.cc Merge rurik.mysql.com:/home/igor/mysql-4.1 2003-06-12 06:22:35 -07:00
sql_test.cc Fixed bug in allocation memory in key cache. (Memory was not properly aligned which cased core dumps on sparc CPU's) 2003-03-25 02:37:41 +02:00
sql_udf.cc INSERT ... UPDATE ... VALUES() 2003-05-03 01:16:56 +02:00
sql_udf.h change structure of udf_func and parameter of functions mysql_drop_func and add_func (SCRUM) 2003-01-09 18:09:21 +05:00
sql_union.cc (SCRUM) 2003-07-03 02:30:52 +03:00
sql_update.cc Merge with 4.0.13 2003-06-04 19:21:51 +03:00
sql_yacc.yy (SCRUM) 2003-07-03 02:30:52 +03:00
stacktrace.c Merge with 4.0 2003-03-16 19:17:54 +02:00
stacktrace.h
structs.h Many files: 2003-04-24 14:33:33 +03:00
table.cc new version of help 2003-05-29 17:47:31 -04:00
table.h merged 2003-06-25 23:52:15 +03:00
thr_malloc.cc After merge fixes 2003-05-21 21:39:58 +03:00
time.cc Merge with 4.0.13 2003-06-04 19:21:51 +03:00
udf_example.cc Fix for the bug #537 (UDF example broken on 4.1). 2003-05-30 13:03:00 +05:00
uniques.cc Many files: 2003-04-24 14:33:33 +03:00
unireg.cc More OpenGIS compatibility: 2003-03-27 13:09:09 +04:00
unireg.h Merge with 4.0.13 2003-06-05 17:33:38 +03:00
watchdog_mysqld