summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <pem@mysql.telia.com>2003-09-24 15:26:20 +0200
committerunknown <pem@mysql.telia.com>2003-09-24 15:26:20 +0200
commit03042c7db4be039b0088de24bd5b7b50f76c91b5 (patch)
treefdea976683e3ed29968154712c74254ba5b0aa07
parentcd8508d3716e78c06eea3585641ff2527ad463cb (diff)
downloadmariadb-git-03042c7db4be039b0088de24bd5b7b50f76c91b5.tar.gz
Post-merge fixes.
-rw-r--r--client/mysqltest.c3
-rw-r--r--libmysqld/lib_sql.cc4
-rw-r--r--mysql-test/r/distinct.result4
-rw-r--r--mysql-test/r/query_cache.result8
-rw-r--r--mysql-test/r/sp-error.result2
-rw-r--r--mysql-test/r/variables.result2
-rw-r--r--mysql-test/t/distinct.test4
-rw-r--r--mysql-test/t/sp-error.test46
-rw-r--r--sql/item.cc2
-rw-r--r--sql/lex.h1
-rw-r--r--sql/sp.cc4
-rw-r--r--sql/sp_cache.h2
-rw-r--r--sql/sql_cache.cc2
-rw-r--r--sql/sql_insert.cc2
-rw-r--r--sql/sql_prepare.cc2
-rw-r--r--sql/sql_repl.cc14
16 files changed, 51 insertions, 51 deletions
diff --git a/client/mysqltest.c b/client/mysqltest.c
index aed4c142ab8..0c3cded4218 100644
--- a/client/mysqltest.c
+++ b/client/mysqltest.c
@@ -206,8 +206,9 @@ Q_SERVER_START, Q_SERVER_STOP,Q_REQUIRE_MANAGER,
Q_WAIT_FOR_SLAVE_TO_STOP,
Q_REQUIRE_VERSION,
Q_ENABLE_WARNINGS, Q_DISABLE_WARNINGS,
-Q_ENABLE_INFO, Q_DISABLE_INFO, Q_DELIMITER,
+Q_ENABLE_INFO, Q_DISABLE_INFO,
Q_EXEC,
+Q_DELIMITER,
Q_UNKNOWN, /* Unknown command. */
Q_COMMENT, /* Comments, ignored. */
Q_COMMENT_WITH_COMMAND
diff --git a/libmysqld/lib_sql.cc b/libmysqld/lib_sql.cc
index 179bbaeec91..8e05e99261f 100644
--- a/libmysqld/lib_sql.cc
+++ b/libmysqld/lib_sql.cc
@@ -698,7 +698,7 @@ bool Protocol::convert_str(const char *from, uint length)
bool setup_params_data(st_prep_stmt *stmt)
{
THD *thd= stmt->thd;
- List<Item> &params= thd->lex.param_list;
+ List<Item> &params= thd->lex->param_list;
List_iterator<Item> param_iterator(params);
Item_param *param;
ulong param_no= 0;
@@ -728,7 +728,7 @@ bool setup_params_data(st_prep_stmt *stmt)
bool setup_params_data_withlog(st_prep_stmt *stmt)
{
THD *thd= stmt->thd;
- List<Item> &params= thd->lex.param_list;
+ List<Item> &params= thd->lex->param_list;
List_iterator<Item> param_iterator(params);
Item_param *param;
MYSQL_BIND *client_param= thd->client_params;
diff --git a/mysql-test/r/distinct.result b/mysql-test/r/distinct.result
index 5e713f59100..38df7674ed8 100644
--- a/mysql-test/r/distinct.result
+++ b/mysql-test/r/distinct.result
@@ -457,10 +457,10 @@ drop table t1,t2;
CREATE TABLE t1 (
html varchar(5) default NULL,
rin int(11) default '0',
-out int(11) default '0'
+rout int(11) default '0'
) TYPE=MyISAM;
INSERT INTO t1 VALUES ('1',1,0);
-SELECT DISTINCT html,SUM(out)/(SUM(rin)+1) as 'prod' FROM t1 GROUP BY rin;
+SELECT DISTINCT html,SUM(rout)/(SUM(rin)+1) as 'prod' FROM t1 GROUP BY rin;
html prod
1 0.00
drop table t1;
diff --git a/mysql-test/r/query_cache.result b/mysql-test/r/query_cache.result
index 3207443369b..611c8464626 100644
--- a/mysql-test/r/query_cache.result
+++ b/mysql-test/r/query_cache.result
@@ -715,10 +715,10 @@ Variable_name Value
Qcache_queries_in_cache 0
show status like "Qcache_inserts";
Variable_name Value
-Qcache_inserts 1
+Qcache_inserts 44
show status like "Qcache_hits";
Variable_name Value
-Qcache_hits 1
+Qcache_hits 12
/**/ select * from t1;
a
/**/ select * from t1;
@@ -728,8 +728,8 @@ Variable_name Value
Qcache_queries_in_cache 1
show status like "Qcache_inserts";
Variable_name Value
-Qcache_inserts 2
+Qcache_inserts 45
show status like "Qcache_hits";
Variable_name Value
-Qcache_hits 2
+Qcache_hits 13
drop table t1;
diff --git a/mysql-test/r/sp-error.result b/mysql-test/r/sp-error.result
index d839b8a3af8..109d84b2b8a 100644
--- a/mysql-test/r/sp-error.result
+++ b/mysql-test/r/sp-error.result
@@ -35,7 +35,7 @@ call foo();
ERROR HY000: PROCEDURE foo does not exist
drop procedure if exists foo;
Warnings:
-Warning 1275 PROCEDURE foo does not exist
+Warning 1281 PROCEDURE foo does not exist
create procedure foo()
foo: loop
leave bar;
diff --git a/mysql-test/r/variables.result b/mysql-test/r/variables.result
index 8bbe773ed01..55f49d49b87 100644
--- a/mysql-test/r/variables.result
+++ b/mysql-test/r/variables.result
@@ -311,7 +311,7 @@ set sql_log_bin=1;
set sql_log_off=1;
set sql_log_update=1;
Warnings:
-Note 1285 The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been ignored.
+Note 1291 The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been ignored.
set sql_low_priority_updates=1;
set sql_max_join_size=200;
select @@sql_max_join_size,@@max_join_size;
diff --git a/mysql-test/t/distinct.test b/mysql-test/t/distinct.test
index 56c00e7501c..54e50fc7147 100644
--- a/mysql-test/t/distinct.test
+++ b/mysql-test/t/distinct.test
@@ -326,9 +326,9 @@ drop table t1,t2;
CREATE TABLE t1 (
html varchar(5) default NULL,
rin int(11) default '0',
- out int(11) default '0'
+ rout int(11) default '0'
) TYPE=MyISAM;
INSERT INTO t1 VALUES ('1',1,0);
-SELECT DISTINCT html,SUM(out)/(SUM(rin)+1) as 'prod' FROM t1 GROUP BY rin;
+SELECT DISTINCT html,SUM(rout)/(SUM(rin)+1) as 'prod' FROM t1 GROUP BY rin;
drop table t1;
diff --git a/mysql-test/t/sp-error.test b/mysql-test/t/sp-error.test
index 5d46c39b601..ab3ee6a9ac6 100644
--- a/mysql-test/t/sp-error.test
+++ b/mysql-test/t/sp-error.test
@@ -32,18 +32,18 @@ create function func1() returns int
return 42|
# Can't create recursively
---error 1273
+--error 1279
create procedure foo()
create procedure bar() set @x=3|
---error 1273
+--error 1279
create procedure foo()
create function bar() returns double return 2.3|
# Already exists
---error 1274
+--error 1280
create procedure proc1()
set @x = 42|
---error 1274
+--error 1280
create function func1() returns int
return 42|
@@ -51,32 +51,32 @@ drop procedure proc1|
drop function func1|
# Does not exist
---error 1275
+--error 1281
alter procedure foo|
---error 1275
+--error 1281
alter function foo|
---error 1275
+--error 1281
drop procedure foo|
---error 1275
+--error 1281
drop function foo|
---error 1275
+--error 1281
call foo()|
drop procedure if exists foo|
# LEAVE/ITERATE with no match
---error 1278
+--error 1284
create procedure foo()
foo: loop
leave bar;
end loop|
---error 1278
+--error 1284
create procedure foo()
foo: loop
iterate bar;
end loop|
# Redefining label
---error 1279
+--error 1285
create procedure foo()
foo: loop
foo: loop
@@ -85,14 +85,14 @@ foo: loop
end loop foo|
# End label mismatch
---error 1280
+--error 1286
create procedure foo()
foo: loop
set @x=2;
end loop bar|
# Referring to undef variable
---error 1281
+--error 1287
create procedure foo(out x int)
begin
declare y int;
@@ -106,17 +106,17 @@ begin
select name from mysql.proc;
select type from mysql.proc;
end|
---error 1282
+--error 1288
call foo()|
drop procedure foo|
# RETURN in FUNCTION only
---error 1283
+--error 1289
create procedure foo()
return 42|
# Doesn't allow queries in FUNCTIONs (for now :-( )
---error 1284
+--error 1290
create function foo() returns int
begin
declare x int;
@@ -130,19 +130,19 @@ create procedure p(x int)
create function f(x int) returns int
return x+42|
---error 1288
+--error 1294
call p()|
---error 1288
+--error 1294
call p(1, 2)|
---error 1288
+--error 1294
select f()|
---error 1288
+--error 1294
select f(1, 2)|
drop procedure p|
drop function f|
---error 1289
+--error 1295
create procedure p(val int, out res int)
begin
declare x int default 0;
@@ -156,7 +156,7 @@ begin
end if;
end|
---error 1289
+--error 1295
create procedure p(val int, out res int)
begin
declare x int default 0;
diff --git a/sql/item.cc b/sql/item.cc
index 1dc0a6358c7..775dbd95ca0 100644
--- a/sql/item.cc
+++ b/sql/item.cc
@@ -793,7 +793,7 @@ static void mark_as_dependent(THD *thd, SELECT_LEX *last, SELECT_LEX *current,
// store pointer on SELECT_LEX from wich item is dependent
item->depended_from= last;
current->mark_as_dependent(last);
- if (thd->lex.describe)
+ if (thd->lex->describe)
{
char warn_buff[MYSQL_ERRMSG_SIZE];
sprintf(warn_buff, ER(ER_WARN_FIELD_RESOLVED),
diff --git a/sql/lex.h b/sql/lex.h
index e1223170b62..a5830ac8620 100644
--- a/sql/lex.h
+++ b/sql/lex.h
@@ -437,7 +437,6 @@ static SYMBOL symbols[] = {
{ "USE", SYM(USE_SYM),0,0},
{ "USE_FRM", SYM(USE_FRM),0,0},
{ "USER", SYM(USER),0,0},
- { "UNTIL", SYM(UNTIL_SYM),0,0},
{ "USING", SYM(USING),0,0},
{ "UTC_DATE", SYM(UTC_DATE_SYM),0,0},
{ "UTC_TIME", SYM(UTC_TIME_SYM),0,0},
diff --git a/sql/sp.cc b/sql/sp.cc
index 729a5f0d641..b4f9f85cd69 100644
--- a/sql/sp.cc
+++ b/sql/sp.cc
@@ -393,7 +393,7 @@ sp_add_fun_to_lex(LEX *lex, LEX_STRING fun)
ls->str= sql_strmake(fun.str, fun.length);
ls->length= fun.length;
- hash_insert(&lex->spfuns, (byte *)ls);
+ my_hash_insert(&lex->spfuns, (byte *)ls);
}
}
@@ -405,7 +405,7 @@ sp_merge_funs(LEX *dst, LEX *src)
LEX_STRING *ls= (LEX_STRING *)hash_element(&src->spfuns, i);
if (! hash_search(&dst->spfuns, (byte *)ls->str, ls->length))
- hash_insert(&dst->spfuns, (byte *)ls);
+ my_hash_insert(&dst->spfuns, (byte *)ls);
}
}
diff --git a/sql/sp_cache.h b/sql/sp_cache.h
index 68a97839ed8..5e7825d70fc 100644
--- a/sql/sp_cache.h
+++ b/sql/sp_cache.h
@@ -41,7 +41,7 @@ public:
inline void
insert(sp_head *sp)
{
- hash_insert(&m_hashtable, (const byte *)sp);
+ my_hash_insert(&m_hashtable, (const byte *)sp);
}
inline sp_head *
diff --git a/sql/sql_cache.cc b/sql/sql_cache.cc
index a062f1f6225..aa2af81fdee 100644
--- a/sql/sql_cache.cc
+++ b/sql/sql_cache.cc
@@ -2588,7 +2588,7 @@ my_bool Query_cache::ask_handler_allowance(THD *thd,
{
DBUG_PRINT("qcache", ("Handler does not allow caching for %s.%s",
tables_used->db, tables_used->alias));
- thd->lex.safe_to_cache_query= 0; // Don't try to cache this
+ thd->lex->safe_to_cache_query= 0; // Don't try to cache this
DBUG_RETURN(1);
}
}
diff --git a/sql/sql_insert.cc b/sql/sql_insert.cc
index 78189a2054d..3a71c16c7e2 100644
--- a/sql/sql_insert.cc
+++ b/sql/sql_insert.cc
@@ -616,7 +616,7 @@ public:
thd.current_tablenr=0;
thd.version=refresh_version;
thd.command=COM_DELAYED_INSERT;
- thd.lex.current_select= 0; /* for my_message_sql */
+ thd.lex->current_select= 0; /* for my_message_sql */
bzero((char*) &thd.net,sizeof(thd.net)); // Safety
thd.system_thread=1;
diff --git a/sql/sql_prepare.cc b/sql/sql_prepare.cc
index 971d8a2e592..d342f971a4b 100644
--- a/sql/sql_prepare.cc
+++ b/sql/sql_prepare.cc
@@ -901,7 +901,7 @@ bool mysql_stmt_prepare(THD *thd, char *packet, uint packet_length)
my_pthread_setprio(pthread_self(),WAIT_PRIOR);
// save WHERE clause pointers to avoid damaging they by optimisation
- for (SELECT_LEX *sl= thd->lex.all_selects_list;
+ for (SELECT_LEX *sl= thd->lex->all_selects_list;
sl;
sl= sl->next_select_in_list())
{
diff --git a/sql/sql_repl.cc b/sql/sql_repl.cc
index 59a616fc77c..2c79c1dbaf9 100644
--- a/sql/sql_repl.cc
+++ b/sql/sql_repl.cc
@@ -697,22 +697,22 @@ int start_slave(THD* thd , MASTER_INFO* mi, bool net_report)
{
pthread_mutex_lock(&mi->rli.data_lock);
- if (thd->lex.mi.pos)
+ if (thd->lex->mi.pos)
{
mi->rli.until_condition= RELAY_LOG_INFO::UNTIL_MASTER_POS;
- mi->rli.until_log_pos= thd->lex.mi.pos;
+ mi->rli.until_log_pos= thd->lex->mi.pos;
/*
We don't check thd->lex.mi.log_file_name for NULL here
since it is checked in sql_yacc.yy
*/
- strmake(mi->rli.until_log_name, thd->lex.mi.log_file_name,
+ strmake(mi->rli.until_log_name, thd->lex->mi.log_file_name,
sizeof(mi->rli.until_log_name)-1);
}
- else if (thd->lex.mi.relay_log_pos)
+ else if (thd->lex->mi.relay_log_pos)
{
mi->rli.until_condition= RELAY_LOG_INFO::UNTIL_RELAY_POS;
- mi->rli.until_log_pos= thd->lex.mi.relay_log_pos;
- strmake(mi->rli.until_log_name, thd->lex.mi.relay_log_name,
+ mi->rli.until_log_pos= thd->lex->mi.relay_log_pos;
+ strmake(mi->rli.until_log_name, thd->lex->mi.relay_log_name,
sizeof(mi->rli.until_log_name)-1);
}
else
@@ -750,7 +750,7 @@ int start_slave(THD* thd , MASTER_INFO* mi, bool net_report)
pthread_mutex_unlock(&mi->rli.data_lock);
}
- else if (thd->lex.mi.pos || thd->lex.mi.relay_log_pos)
+ else if (thd->lex->mi.pos || thd->lex->mi.relay_log_pos)
push_warning(thd, MYSQL_ERROR::WARN_LEVEL_NOTE, ER_UNTIL_COND_IGNORED,
ER(ER_UNTIL_COND_IGNORED));