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
b430133b
Commit
b430133b
authored
May 23, 2017
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-12844 numerous issues in MASTER_GTID_WAIT()
parent
fc89f5fd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
sql/item_func.cc
sql/item_func.cc
+1
-1
sql/item_func.h
sql/item_func.h
+1
-1
No files found.
sql/item_func.cc
View file @
b430133b
...
...
@@ -3959,6 +3959,7 @@ longlong Item_master_gtid_wait::val_int()
{
DBUG_ASSERT
(
fixed
==
1
);
longlong
result
=
0
;
String
*
gtid_pos
=
args
[
0
]
->
val_str
(
&
value
);
if
(
args
[
0
]
->
null_value
)
{
...
...
@@ -3970,7 +3971,6 @@ longlong Item_master_gtid_wait::val_int()
#ifdef HAVE_REPLICATION
THD
*
thd
=
current_thd
;
longlong
timeout_us
;
String
*
gtid_pos
=
args
[
0
]
->
val_str
(
&
value
);
if
(
arg_count
==
2
&&
!
args
[
1
]
->
null_value
)
timeout_us
=
(
longlong
)(
1e6
*
args
[
1
]
->
val_real
());
...
...
sql/item_func.h
View file @
b430133b
...
...
@@ -1669,7 +1669,7 @@ class Item_master_gtid_wait :public Item_int_func
Item_master_gtid_wait
(
THD
*
thd
,
Item
*
a
,
Item
*
b
)
:
Item_int_func
(
thd
,
a
,
b
)
{}
longlong
val_int
();
const
char
*
func_name
()
const
{
return
"master_gtid_wait"
;
}
void
fix_length_and_dec
()
{
max_length
=
10
+
1
+
10
+
1
+
20
+
1
;
maybe_null
=
0
;
}
void
fix_length_and_dec
()
{
max_length
=
2
;
}
bool
check_vcol_func_processor
(
uchar
*
int_arg
)
{
return
trace_unsupported_by_check_vcol_func_processor
(
func_name
());
...
...
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