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
cdea05a7
Commit
cdea05a7
authored
Jul 04, 2007
by
sergefp@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Backport from 5.2: Fix valgrind failure: Don't access item_func->arguments()
if item_func->argument_count()==0
parent
79622efe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
sql/sql_show.cc
sql/sql_show.cc
+2
-4
No files found.
sql/sql_show.cc
View file @
cdea05a7
...
@@ -1909,11 +1909,9 @@ bool uses_only_table_name_fields(Item *item, TABLE_LIST *table)
...
@@ -1909,11 +1909,9 @@ bool uses_only_table_name_fields(Item *item, TABLE_LIST *table)
if
(
item
->
type
()
==
Item
::
FUNC_ITEM
)
if
(
item
->
type
()
==
Item
::
FUNC_ITEM
)
{
{
Item_func
*
item_func
=
(
Item_func
*
)
item
;
Item_func
*
item_func
=
(
Item_func
*
)
item
;
Item
**
child
;
for
(
uint
i
=
0
;
i
<
item_func
->
argument_count
();
i
++
)
Item
**
item_end
=
(
item_func
->
arguments
())
+
item_func
->
argument_count
();
for
(
child
=
item_func
->
arguments
();
child
!=
item_end
;
child
++
)
{
{
if
(
!
uses_only_table_name_fields
(
*
child
,
table
))
if
(
!
uses_only_table_name_fields
(
item_func
->
arguments
()[
i
]
,
table
))
return
0
;
return
0
;
}
}
}
}
...
...
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