mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 21:12:26 +01:00
moved procedure list initialization (BUG#6517)
This commit is contained in:
parent
a2177a2f35
commit
77540c8996
4 changed files with 9 additions and 1 deletions
|
@ -1990,3 +1990,4 @@ ac
|
|||
700
|
||||
NULL
|
||||
drop tables t1,t2;
|
||||
set @got_val= (SELECT 1 FROM (SELECT 'A' as my_col) as T1 ) ;
|
||||
|
|
|
@ -1282,3 +1282,10 @@ INSERT INTO `t2` VALUES (6,5,12,7,'a'),(12,0,0,7,'a'),(12,1,0,7,'a'),(12,5,5,7,'
|
|||
SELECT b.sc FROM (SELECT (SELECT a.access FROM t1 a WHERE a.map = op.map AND a.slave = op.pid AND a.master = 1) ac FROM t2 op WHERE op.id = 12 AND op.map = 0) b;
|
||||
SELECT b.ac FROM (SELECT (SELECT a.access FROM t1 a WHERE a.map = op.map AND a.slave = op.pid AND a.master = 1) ac FROM t2 op WHERE op.id = 12 AND op.map = 0) b;
|
||||
drop tables t1,t2;
|
||||
|
||||
#
|
||||
# Subselect in non-select command just after connection
|
||||
#
|
||||
connect (root,localhost,root,,test,$MASTER_MYPORT,$MASTER_MYSOCK);
|
||||
connection root;
|
||||
set @got_val= (SELECT 1 FROM (SELECT 'A' as my_col) as T1 ) ;
|
||||
|
|
|
@ -157,6 +157,7 @@ void lex_start(THD *thd, uchar *buf,uint length)
|
|||
lex->ignore_space=test(thd->variables.sql_mode & MODE_IGNORE_SPACE);
|
||||
lex->sql_command=SQLCOM_END;
|
||||
lex->duplicates= DUP_ERROR;
|
||||
lex->proc_list.first= 0;
|
||||
}
|
||||
|
||||
void lex_end(LEX *lex)
|
||||
|
|
|
@ -3940,7 +3940,6 @@ mysql_init_select(LEX *lex)
|
|||
{
|
||||
DBUG_ASSERT(lex->result == 0);
|
||||
lex->exchange= 0;
|
||||
lex->proc_list.first= 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue