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
7e9944d3
Commit
7e9944d3
authored
Feb 03, 2004
by
konstantin@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup: #ifdef DELETE_ITEMS removed
parent
8f1b5b48
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
29 deletions
+0
-29
sql/item.cc
sql/item.cc
+0
-14
sql/item_cmpfunc.cc
sql/item_cmpfunc.cc
+0
-3
sql/sql_parse.cc
sql/sql_parse.cc
+0
-4
sql/sql_select.cc
sql/sql_select.cc
+0
-8
No files found.
sql/item.cc
View file @
7e9944d3
...
...
@@ -1779,17 +1779,9 @@ Item *resolve_const_item(Item *item,Item *comp_item)
String
tmp
(
buff
,
sizeof
(
buff
),
&
my_charset_bin
),
*
result
;
result
=
item
->
val_str
(
&
tmp
);
if
(
item
->
null_value
)
{
#ifdef DELETE_ITEMS
delete
item
;
#endif
return
new
Item_null
(
name
);
}
uint
length
=
result
->
length
();
char
*
tmp_str
=
sql_strmake
(
result
->
ptr
(),
length
);
#ifdef DELETE_ITEMS
delete
item
;
#endif
return
new
Item_string
(
name
,
tmp_str
,
length
,
result
->
charset
());
}
if
(
res_type
==
INT_RESULT
)
...
...
@@ -1797,9 +1789,6 @@ Item *resolve_const_item(Item *item,Item *comp_item)
longlong
result
=
item
->
val_int
();
uint
length
=
item
->
max_length
;
bool
null_value
=
item
->
null_value
;
#ifdef DELETE_ITEMS
delete
item
;
#endif
return
(
null_value
?
(
Item
*
)
new
Item_null
(
name
)
:
(
Item
*
)
new
Item_int
(
name
,
result
,
length
));
}
...
...
@@ -1808,9 +1797,6 @@ Item *resolve_const_item(Item *item,Item *comp_item)
double
result
=
item
->
val
();
uint
length
=
item
->
max_length
,
decimals
=
item
->
decimals
;
bool
null_value
=
item
->
null_value
;
#ifdef DELETE_ITEMS
delete
item
;
#endif
return
(
null_value
?
(
Item
*
)
new
Item_null
(
name
)
:
(
Item
*
)
new
Item_real
(
name
,
result
,
decimals
,
length
));
}
...
...
sql/item_cmpfunc.cc
View file @
7e9944d3
...
...
@@ -1703,9 +1703,6 @@ Item_cond::fix_fields(THD *thd, TABLE_LIST *tables, Item **ref)
{
// Identical function
li
.
replace
(((
Item_cond
*
)
item
)
->
list
);
((
Item_cond
*
)
item
)
->
list
.
empty
();
#ifdef DELETE_ITEMS
delete
(
Item_cond
*
)
item
;
#endif
item
=
*
li
.
ref
();
// new current item
}
if
(
abort_on_null
)
...
...
sql/sql_parse.cc
View file @
7e9944d3
...
...
@@ -1899,10 +1899,6 @@ mysql_execute_command(THD *thd)
if
(
!
(
result
=
new
select_send
()))
{
res
=
-
1
;
#ifdef DELETE_ITEMS
delete
select_lex
->
having
;
delete
select_lex
->
where
;
#endif
break
;
}
}
...
...
sql/sql_select.cc
View file @
7e9944d3
...
...
@@ -4395,17 +4395,9 @@ remove_eq_conds(COND *cond,Item::cond_result *cond_value)
{
Item
*
new_item
=
remove_eq_conds
(
item
,
&
tmp_cond_value
);
if
(
!
new_item
)
{
#ifdef DELETE_ITEMS
delete
item
;
// This may be shared
#endif
li
.
remove
();
}
else
if
(
item
!=
new_item
)
{
#ifdef DELETE_ITEMS
delete
item
;
// This may be shared
#endif
VOID
(
li
.
replace
(
new_item
));
should_fix_fields
=
1
;
}
...
...
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