Commit 711e8879 authored by unknown's avatar unknown

Merge bk-internal.mysql.com:/home/bk/mysql-5.0

into pcgem.rdg.cyberkinetica.com:/usr/home/acurtis/work/mysql-5.0


mysql-test/r/sp.result:
  Auto merged
mysql-test/t/sp.test:
  Auto merged
sql/sql_yacc.yy:
  Auto merged
parents 3170a8f9 45dd187e
...@@ -1986,3 +1986,8 @@ call p1(); ...@@ -1986,3 +1986,8 @@ call p1();
1 1
drop procedure p1; drop procedure p1;
drop table t1; drop table t1;
create function `foo` () returns int return 5;
select `foo` ();
`foo` ()
5
drop function `foo`;
...@@ -2124,3 +2124,9 @@ call p1(); ...@@ -2124,3 +2124,9 @@ call p1();
drop procedure p1; drop procedure p1;
drop table t1; drop table t1;
#
# backticks
#
create function `foo` () returns int return 5;
select `foo` ();
drop function `foo`;
...@@ -3730,8 +3730,12 @@ select_item: ...@@ -3730,8 +3730,12 @@ select_item:
YYABORT; YYABORT;
if ($4.str) if ($4.str)
$2->set_name($4.str,$4.length,system_charset_info); $2->set_name($4.str,$4.length,system_charset_info);
else if (!$2->name) else if (!$2->name) {
$2->set_name($1,(uint) ($3 - $1), YYTHD->charset()); char *str = $1;
if (str[-1] == '`')
str--;
$2->set_name(str,(uint) ($3 - str), YYTHD->charset());
}
}; };
remember_name: remember_name:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment