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
0b89c614
Commit
0b89c614
authored
Apr 01, 2016
by
Igor Babaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a problem with --ps-protocol.
Window names has to be resolved only once.
parent
2e4bd440
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
sql/sql_window.cc
sql/sql_window.cc
+3
-0
sql/sql_window.h
sql/sql_window.h
+5
-2
No files found.
sql/sql_window.cc
View file @
0b89c614
...
...
@@ -9,6 +9,8 @@
bool
Window_spec
::
check_window_names
(
List_iterator_fast
<
Window_spec
>
&
it
)
{
if
(
window_names_are_checked
)
return
false
;
char
*
name
=
this
->
name
();
char
*
ref_name
=
window_reference
();
it
.
rewind
();
...
...
@@ -54,6 +56,7 @@ Window_spec::check_window_names(List_iterator_fast<Window_spec> &it)
my_error
(
ER_WRONG_WINDOW_SPEC_NAME
,
MYF
(
0
),
ref_name
);
return
true
;
}
window_names_are_checked
=
true
;
return
false
;
}
...
...
sql/sql_window.h
View file @
0b89c614
...
...
@@ -88,6 +88,8 @@ class Window_frame : public Sql_alloc
class
Window_spec
:
public
Sql_alloc
{
bool
window_names_are_checked
;
public:
LEX_STRING
*
window_ref
;
...
...
@@ -104,7 +106,8 @@ class Window_spec : public Sql_alloc
SQL_I_List
<
ORDER
>
*
part_list
,
SQL_I_List
<
ORDER
>
*
ord_list
,
Window_frame
*
win_frame
)
:
window_ref
(
win_ref
),
partition_list
(
part_list
),
order_list
(
ord_list
),
:
window_names_are_checked
(
false
),
window_ref
(
win_ref
),
partition_list
(
part_list
),
order_list
(
ord_list
),
window_frame
(
win_frame
),
referenced_win_spec
(
NULL
)
{}
virtual
char
*
name
()
{
return
NULL
;
}
...
...
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