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
c8fd62f3
Commit
c8fd62f3
authored
May 15, 2006
by
knielsen@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
After-merge fixes; some function signatures changed from Item * to Item **.
parent
bec4d0a1
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
13 deletions
+13
-13
sql/item.cc
sql/item.cc
+3
-3
sql/item.h
sql/item.h
+4
-4
sql/item_func.cc
sql/item_func.cc
+3
-3
sql/item_func.h
sql/item_func.h
+1
-1
sql/sp_head.cc
sql/sp_head.cc
+2
-2
No files found.
sql/item.cc
View file @
c8fd62f3
...
...
@@ -958,7 +958,7 @@ void Item_splocal::print(String *str)
}
bool
Item_splocal
::
set_value
(
THD
*
thd
,
sp_rcontext
*
ctx
,
Item
*
it
)
bool
Item_splocal
::
set_value
(
THD
*
thd
,
sp_rcontext
*
ctx
,
Item
*
*
it
)
{
return
ctx
->
set_variable
(
thd
,
get_var_idx
(),
it
);
}
...
...
@@ -5375,9 +5375,9 @@ void Item_trigger_field::set_required_privilege(const bool rw)
}
bool
Item_trigger_field
::
set_value
(
THD
*
thd
,
sp_rcontext
*/
*
ctx
*/
,
Item
*
it
)
bool
Item_trigger_field
::
set_value
(
THD
*
thd
,
sp_rcontext
*/
*
ctx
*/
,
Item
*
*
it
)
{
Item
*
item
=
sp_prepare_func_item
(
thd
,
&
it
);
Item
*
item
=
sp_prepare_func_item
(
thd
,
it
);
return
(
!
item
||
(
!
fixed
&&
fix_fields
(
thd
,
0
))
||
(
item
->
save_in_field
(
field
,
0
)
<
0
));
...
...
sql/item.h
View file @
c8fd62f3
...
...
@@ -404,7 +404,7 @@ class Settable_routine_parameter
FALSE if parameter value has been set,
TRUE if error has occured.
*/
virtual
bool
set_value
(
THD
*
thd
,
sp_rcontext
*
ctx
,
Item
*
it
)
=
0
;
virtual
bool
set_value
(
THD
*
thd
,
sp_rcontext
*
ctx
,
Item
*
*
it
)
=
0
;
};
...
...
@@ -928,7 +928,7 @@ class Item_splocal :public Item_sp_variable,
inline
Item_result
result_type
()
const
;
private:
bool
set_value
(
THD
*
thd
,
sp_rcontext
*
ctx
,
Item
*
it
);
bool
set_value
(
THD
*
thd
,
sp_rcontext
*
ctx
,
Item
*
*
it
);
public:
Settable_routine_parameter
*
get_settable_routine_parameter
()
...
...
@@ -2188,7 +2188,7 @@ class Item_trigger_field : public Item_field,
private:
void
set_required_privilege
(
const
bool
rw
);
bool
set_value
(
THD
*
thd
,
sp_rcontext
*
ctx
,
Item
*
it
);
bool
set_value
(
THD
*
thd
,
sp_rcontext
*
ctx
,
Item
*
*
it
);
public:
Settable_routine_parameter
*
get_settable_routine_parameter
()
...
...
@@ -2196,7 +2196,7 @@ class Item_trigger_field : public Item_field,
return
(
read_only
?
0
:
this
);
}
bool
set_value
(
THD
*
thd
,
Item
*
it
)
bool
set_value
(
THD
*
thd
,
Item
*
*
it
)
{
return
set_value
(
thd
,
NULL
,
it
);
}
...
...
sql/item_func.cc
View file @
c8fd62f3
...
...
@@ -4121,14 +4121,14 @@ bool Item_func_get_user_var::eq(const Item *item, bool binary_cmp) const
bool
Item_func_get_user_var
::
set_value
(
THD
*
thd
,
sp_rcontext
*/
*
ctx
*/
,
Item
*
it
)
sp_rcontext
*/
*
ctx
*/
,
Item
*
*
it
)
{
Item_func_set_user_var
*
suv
=
new
Item_func_set_user_var
(
get_name
(),
it
);
Item_func_set_user_var
*
suv
=
new
Item_func_set_user_var
(
get_name
(),
*
it
);
/*
Item_func_set_user_var is not fixed after construction, call
fix_fields().
*/
return
(
!
suv
||
suv
->
fix_fields
(
thd
,
&
it
)
||
suv
->
check
()
||
suv
->
update
());
return
(
!
suv
||
suv
->
fix_fields
(
thd
,
it
)
||
suv
->
check
()
||
suv
->
update
());
}
...
...
sql/item_func.h
View file @
c8fd62f3
...
...
@@ -1209,7 +1209,7 @@ class Item_func_get_user_var :public Item_func,
bool
eq
(
const
Item
*
item
,
bool
binary_cmp
)
const
;
private:
bool
set_value
(
THD
*
thd
,
sp_rcontext
*
ctx
,
Item
*
it
);
bool
set_value
(
THD
*
thd
,
sp_rcontext
*
ctx
,
Item
*
*
it
);
public:
Settable_routine_parameter
*
get_settable_routine_parameter
()
...
...
sql/sp_head.cc
View file @
c8fd62f3
...
...
@@ -1552,7 +1552,7 @@ sp_head::execute_procedure(THD *thd, List<Item> *args)
DBUG_ASSERT
(
srp
);
if
(
srp
->
set_value
(
thd
,
octx
,
nctx
->
get_item
(
i
)))
if
(
srp
->
set_value
(
thd
,
octx
,
nctx
->
get_item
_addr
(
i
)))
{
err_status
=
TRUE
;
break
;
...
...
@@ -2393,7 +2393,7 @@ sp_instr_set_trigger_field::execute(THD *thd, uint *nextp)
int
sp_instr_set_trigger_field
::
exec_core
(
THD
*
thd
,
uint
*
nextp
)
{
const
int
res
=
(
trigger_field
->
set_value
(
thd
,
value
)
?
-
1
:
0
);
const
int
res
=
(
trigger_field
->
set_value
(
thd
,
&
value
)
?
-
1
:
0
);
*
nextp
=
m_ip
+
1
;
return
res
;
}
...
...
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