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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
5a07b871
Commit
5a07b871
authored
Nov 28, 2004
by
serg@serg.mylan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
don't cast LEX_STRING to char* :)
parent
b4600599
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
sql/item_func.cc
sql/item_func.cc
+4
-4
No files found.
sql/item_func.cc
View file @
5a07b871
...
@@ -3543,7 +3543,7 @@ Item_func_sp::execute(Item **itp)
...
@@ -3543,7 +3543,7 @@ Item_func_sp::execute(Item **itp)
m_sp
=
sp_find_function
(
thd
,
m_name
);
m_sp
=
sp_find_function
(
thd
,
m_name
);
if
(
!
m_sp
)
if
(
!
m_sp
)
{
{
my_error
(
ER_SP_DOES_NOT_EXIST
,
MYF
(
0
),
"FUNCTION"
,
m_name
->
m_qname
);
my_error
(
ER_SP_DOES_NOT_EXIST
,
MYF
(
0
),
"FUNCTION"
,
m_name
->
m_qname
.
str
);
DBUG_RETURN
(
-
1
);
DBUG_RETURN
(
-
1
);
}
}
...
@@ -3577,7 +3577,7 @@ Item_func_sp::field_type() const
...
@@ -3577,7 +3577,7 @@ Item_func_sp::field_type() const
DBUG_PRINT
(
"info"
,
(
"m_returns = %d"
,
m_sp
->
m_returns
));
DBUG_PRINT
(
"info"
,
(
"m_returns = %d"
,
m_sp
->
m_returns
));
DBUG_RETURN
(
m_sp
->
m_returns
);
DBUG_RETURN
(
m_sp
->
m_returns
);
}
}
my_error
(
ER_SP_DOES_NOT_EXIST
,
MYF
(
0
),
"FUNCTION"
,
m_name
->
m_qname
);
my_error
(
ER_SP_DOES_NOT_EXIST
,
MYF
(
0
),
"FUNCTION"
,
m_name
->
m_qname
.
str
);
DBUG_RETURN
(
MYSQL_TYPE_STRING
);
DBUG_RETURN
(
MYSQL_TYPE_STRING
);
}
}
...
@@ -3593,7 +3593,7 @@ Item_func_sp::result_type() const
...
@@ -3593,7 +3593,7 @@ Item_func_sp::result_type() const
{
{
DBUG_RETURN
(
m_sp
->
result
());
DBUG_RETURN
(
m_sp
->
result
());
}
}
my_error
(
ER_SP_DOES_NOT_EXIST
,
MYF
(
0
),
"FUNCTION"
,
m_name
->
m_qname
);
my_error
(
ER_SP_DOES_NOT_EXIST
,
MYF
(
0
),
"FUNCTION"
,
m_name
->
m_qname
.
str
);
DBUG_RETURN
(
STRING_RESULT
);
DBUG_RETURN
(
STRING_RESULT
);
}
}
...
@@ -3606,7 +3606,7 @@ Item_func_sp::fix_length_and_dec()
...
@@ -3606,7 +3606,7 @@ Item_func_sp::fix_length_and_dec()
m_sp
=
sp_find_function
(
current_thd
,
m_name
);
m_sp
=
sp_find_function
(
current_thd
,
m_name
);
if
(
!
m_sp
)
if
(
!
m_sp
)
{
{
my_error
(
ER_SP_DOES_NOT_EXIST
,
MYF
(
0
),
"FUNCTION"
,
m_name
->
m_qname
);
my_error
(
ER_SP_DOES_NOT_EXIST
,
MYF
(
0
),
"FUNCTION"
,
m_name
->
m_qname
.
str
);
}
}
else
else
{
{
...
...
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