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
d41cffc0
Commit
d41cffc0
authored
Mar 29, 2007
by
iggy@recycle.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug #23491 MySQLDump prefix function call in a view by database name
- 5.0 merged to 5.1 differences.
parent
4f498dec
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
6 deletions
+7
-6
sql/item_create.cc
sql/item_create.cc
+4
-4
sql/item_create.h
sql/item_create.h
+2
-1
sql/sql_yacc.yy
sql/sql_yacc.yy
+1
-1
No files found.
sql/item_create.cc
View file @
d41cffc0
...
@@ -167,7 +167,7 @@ class Create_sp_func : public Create_qfunc
...
@@ -167,7 +167,7 @@ class Create_sp_func : public Create_qfunc
{
{
public:
public:
virtual
Item
*
create
(
THD
*
thd
,
LEX_STRING
db
,
LEX_STRING
name
,
virtual
Item
*
create
(
THD
*
thd
,
LEX_STRING
db
,
LEX_STRING
name
,
List
<
Item
>
*
item_list
);
bool
use_explicit_name
,
List
<
Item
>
*
item_list
);
static
Create_sp_func
s_singleton
;
static
Create_sp_func
s_singleton
;
...
@@ -2316,7 +2316,7 @@ Create_qfunc::create(THD *thd, LEX_STRING name, List<Item> *item_list)
...
@@ -2316,7 +2316,7 @@ Create_qfunc::create(THD *thd, LEX_STRING name, List<Item> *item_list)
if
(
thd
->
copy_db_to
(
&
db
.
str
,
&
db
.
length
))
if
(
thd
->
copy_db_to
(
&
db
.
str
,
&
db
.
length
))
return
NULL
;
return
NULL
;
return
create
(
thd
,
db
,
name
,
item_list
);
return
create
(
thd
,
db
,
name
,
false
,
item_list
);
}
}
...
@@ -2433,7 +2433,7 @@ Create_sp_func Create_sp_func::s_singleton;
...
@@ -2433,7 +2433,7 @@ Create_sp_func Create_sp_func::s_singleton;
Item
*
Item
*
Create_sp_func
::
create
(
THD
*
thd
,
LEX_STRING
db
,
LEX_STRING
name
,
Create_sp_func
::
create
(
THD
*
thd
,
LEX_STRING
db
,
LEX_STRING
name
,
List
<
Item
>
*
item_list
)
bool
use_explicit_name
,
List
<
Item
>
*
item_list
)
{
{
int
arg_count
=
0
;
int
arg_count
=
0
;
Item
*
func
=
NULL
;
Item
*
func
=
NULL
;
...
@@ -2458,7 +2458,7 @@ Create_sp_func::create(THD *thd, LEX_STRING db, LEX_STRING name,
...
@@ -2458,7 +2458,7 @@ Create_sp_func::create(THD *thd, LEX_STRING db, LEX_STRING name,
if
(
item_list
!=
NULL
)
if
(
item_list
!=
NULL
)
arg_count
=
item_list
->
elements
;
arg_count
=
item_list
->
elements
;
qname
=
new
(
thd
->
mem_root
)
sp_name
(
db
,
name
);
qname
=
new
(
thd
->
mem_root
)
sp_name
(
db
,
name
,
use_explicit_name
);
qname
->
init_qname
(
thd
);
qname
->
init_qname
(
thd
);
sp_add_used_routine
(
lex
,
thd
,
qname
,
TYPE_ENUM_FUNCTION
);
sp_add_used_routine
(
lex
,
thd
,
qname
,
TYPE_ENUM_FUNCTION
);
...
...
sql/item_create.h
View file @
d41cffc0
...
@@ -87,11 +87,12 @@ public:
...
@@ -87,11 +87,12 @@ public:
@param thd The current thread
@param thd The current thread
@param db The database name
@param db The database name
@param name The function name
@param name The function name
@param use_explicit_name Should the function be represented as 'db.name'?
@param item_list The list of arguments to the function, can be NULL
@param item_list The list of arguments to the function, can be NULL
@return An item representing the parsed function call
@return An item representing the parsed function call
*/
*/
virtual
Item
*
create
(
THD
*
thd
,
LEX_STRING
db
,
LEX_STRING
name
,
virtual
Item
*
create
(
THD
*
thd
,
LEX_STRING
db
,
LEX_STRING
name
,
List
<
Item
>
*
item_list
)
=
0
;
bool
use_explicit_name
,
List
<
Item
>
*
item_list
)
=
0
;
protected:
protected:
/** Constructor. */
/** Constructor. */
...
...
sql/sql_yacc.yy
View file @
d41cffc0
...
@@ -6921,7 +6921,7 @@ function_call_generic:
...
@@ -6921,7 +6921,7 @@ function_call_generic:
builder= find_qualified_function_builder(thd);
builder= find_qualified_function_builder(thd);
DBUG_ASSERT(builder);
DBUG_ASSERT(builder);
item= builder->create(thd, $1, $3, $5);
item= builder->create(thd, $1, $3,
true,
$5);
if (! ($$= item))
if (! ($$= item))
{
{
...
...
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