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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
ac21d029
Commit
ac21d029
authored
Feb 02, 2006
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes after manual merge
parent
83001499
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
117 deletions
+7
-117
mysql-test/r/having.result
mysql-test/r/having.result
+0
-17
sql/sql_prepare.cc
sql/sql_prepare.cc
+5
-98
sql/sql_select.cc
sql/sql_select.cc
+2
-2
No files found.
mysql-test/r/having.result
View file @
ac21d029
...
...
@@ -141,23 +141,6 @@ SUM(a)
6
4
DROP TABLE t1;
CREATE TABLE t1 (a int);
INSERT INTO t1 VALUES (1), (2), (1), (3), (2), (1);
SELECT a FROM t1 GROUP BY a HAVING a > 1;
...
...
sql/sql_prepare.cc
View file @
ac21d029
...
...
@@ -1862,96 +1862,6 @@ void mysql_stmt_prepare(THD *thd, const char *packet, uint packet_length)
{
/* Statement map deletes statement on erase */
thd
->
stmt_map
.
erase
(
stmt
);
}
else
mysql_log
.
write
(
thd
,
COM_STMT_PREPARE
,
"[%lu] %s"
,
stmt
->
id
,
packet
);
...
...
@@ -2045,14 +1955,11 @@ static const char *get_dynamic_sql_string(LEX *lex, uint *query_len)
}
else
{
stmt
->
setup_set_params
();
SELECT_LEX
*
sl
=
stmt
->
lex
->
all_selects_list
;
for
(;
sl
;
sl
=
sl
->
next_select_in_list
())
{
/*
during query optimisation.
*/
sl
->
prep_where
=
sl
->
where
;
query_str
=
lex
->
prepared_stmt_code
.
str
;
*
query_len
=
lex
->
prepared_stmt_code
.
length
;
}
end:
return
query_str
;
}
...
...
sql/sql_select.cc
View file @
ac21d029
...
...
@@ -628,7 +628,7 @@ JOIN::optimize()
{
Item
::
cond_result
having_value
;
having
=
optimize_cond
(
th
d
,
having
,
&
having_value
);
having
=
optimize_cond
(
th
is
,
having
,
join_list
,
&
having_value
);
if
(
thd
->
net
.
report_error
)
{
error
=
1
;
...
...
@@ -641,7 +641,7 @@ JOIN::optimize()
{
/* Impossible cond */
DBUG_PRINT
(
"info"
,
(
having_value
==
Item
::
COND_FALSE
?
"Impossible HAVING"
:
"Impossible WHERE"
));
zero_result_cause
=
?
zero_result_cause
=
having_value
==
Item
::
COND_FALSE
?
"Impossible HAVING"
:
"Impossible WHERE"
;
error
=
0
;
DBUG_RETURN
(
0
);
...
...
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