Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
203debc6
Commit
203debc6
authored
Aug 30, 2004
by
acurtis@pcgem.rdg.cyberkinetica.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix column name where it starts with a backtick
parent
072d4e0c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
2 deletions
+17
-2
mysql-test/r/sp.result
mysql-test/r/sp.result
+5
-0
mysql-test/t/sp.test
mysql-test/t/sp.test
+6
-0
sql/sql_yacc.yy
sql/sql_yacc.yy
+6
-2
No files found.
mysql-test/r/sp.result
View file @
203debc6
...
@@ -1649,3 +1649,8 @@ call p1();
...
@@ -1649,3 +1649,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`;
mysql-test/t/sp.test
View file @
203debc6
...
@@ -1853,3 +1853,9 @@ call p1();
...
@@ -1853,3 +1853,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
`
;
sql/sql_yacc.yy
View file @
203debc6
...
@@ -3609,8 +3609,12 @@ select_item:
...
@@ -3609,8 +3609,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:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment