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
cb8a39e7
Commit
cb8a39e7
authored
Sep 18, 2008
by
Gleb Shchepa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Post-push fix for bug #26020: User-Defined Variables are not consistence with columns data types.
--ps-protocol problem has been fixed.
parent
db1d38c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
sql/item_func.cc
sql/item_func.cc
+2
-1
No files found.
sql/item_func.cc
View file @
cb8a39e7
...
...
@@ -3809,7 +3809,7 @@ static user_var_entry *get_variable(HASH *hash, LEX_STRING &name,
bool
Item_func_set_user_var
::
set_entry
(
THD
*
thd
,
bool
create_if_not_exists
)
{
if
(
thd
==
entry_thd
&&
entry
)
return
FALSE
;
goto
end
;
// update entry->update_query_id for PS
entry_thd
=
thd
;
if
(
!
(
entry
=
get_variable
(
&
thd
->
user_vars
,
name
,
create_if_not_exists
)))
return
TRUE
;
...
...
@@ -3818,6 +3818,7 @@ bool Item_func_set_user_var::set_entry(THD *thd, bool create_if_not_exists)
if this variable is a constant item in the query (it is if update_query_id
is different from query_id).
*/
end:
entry
->
update_query_id
=
thd
->
query_id
;
return
FALSE
;
}
...
...
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