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
96131759
Commit
96131759
authored
Nov 08, 2002
by
peter@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/home/pz/mysql/mysql-4.1-root
into mysql.com:/home/pz/mysql/mysql-4.1
parents
04d14053
bd6f8e0b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
7 deletions
+5
-7
sql/sql_select.cc
sql/sql_select.cc
+4
-6
sql/sql_test.cc
sql/sql_test.cc
+1
-1
No files found.
sql/sql_select.cc
View file @
96131759
...
@@ -444,7 +444,7 @@ JOIN::optimize()
...
@@ -444,7 +444,7 @@ JOIN::optimize()
best_read
>
(
double
)
thd
->
variables
.
max_join_size
&&
best_read
>
(
double
)
thd
->
variables
.
max_join_size
&&
!
(
select_options
&
SELECT_DESCRIBE
))
!
(
select_options
&
SELECT_DESCRIBE
))
{
/* purecov: inspected */
{
/* purecov: inspected */
result
->
send_error
(
ER_TOO_BIG_SELECT
,
ER
(
ER_TOO_BIG_SELECT
));
/* purecov: inspected */
my_message
(
ER_TOO_BIG_SELECT
,
ER
(
ER_TOO_BIG_SELECT
),
MYF
(
0
));
error
=
1
;
/* purecov: inspected */
error
=
1
;
/* purecov: inspected */
DBUG_RETURN
(
-
1
);
DBUG_RETURN
(
-
1
);
}
}
...
@@ -670,10 +670,7 @@ JOIN::exec()
...
@@ -670,10 +670,7 @@ JOIN::exec()
if
(
!
having
||
having
->
val_int
())
if
(
!
having
||
having
->
val_int
())
{
{
if
(
do_send_rows
&&
result
->
send_data
(
fields_list
))
if
(
do_send_rows
&&
result
->
send_data
(
fields_list
))
{
result
->
send_error
(
0
,
NullS
);
/* purecov: inspected */
error
=
1
;
error
=
1
;
}
else
else
error
=
(
int
)
result
->
send_eof
();
error
=
(
int
)
result
->
send_eof
();
}
}
...
@@ -1092,12 +1089,13 @@ mysql_select(THD *thd, TABLE_LIST *tables, List<Item> &fields, COND *conds,
...
@@ -1092,12 +1089,13 @@ mysql_select(THD *thd, TABLE_LIST *tables, List<Item> &fields, COND *conds,
thd
->
limit_found_rows
=
join
->
send_records
;
thd
->
limit_found_rows
=
join
->
send_records
;
thd
->
examined_row_count
=
join
->
examined_rows
;
thd
->
examined_row_count
=
join
->
examined_rows
;
thd
->
proc_info
=
"end"
;
thd
->
proc_info
=
"end"
;
int
error
=
(
fake_select_lex
?
0
:
join
->
cleanup
(
thd
))
||
thd
->
net
.
report_error
;
int
error
=
(
fake_select_lex
?
join
->
error
:
join
->
cleanup
(
thd
))
||
thd
->
net
.
report_error
;
delete
join
;
delete
join
;
DBUG_RETURN
(
error
);
DBUG_RETURN
(
error
);
}
}
else
else
DBUG_RETURN
(
0
);
DBUG_RETURN
(
join
->
error
);
}
}
/*****************************************************************************
/*****************************************************************************
...
...
sql/sql_test.cc
View file @
96131759
...
@@ -41,6 +41,7 @@ static const char *lock_descriptions[] =
...
@@ -41,6 +41,7 @@ static const char *lock_descriptions[] =
"High priority write lock"
,
"High priority write lock"
,
"Highest priority write lock"
"Highest priority write lock"
};
};
extern
HASH
open_cache
;
#ifndef DBUG_OFF
#ifndef DBUG_OFF
...
@@ -64,7 +65,6 @@ print_where(COND *cond,const char *info)
...
@@ -64,7 +65,6 @@ print_where(COND *cond,const char *info)
}
}
/* This is for debugging purposes */
/* This is for debugging purposes */
extern
HASH
open_cache
;
extern
TABLE
*
unused_tables
;
extern
TABLE
*
unused_tables
;
void
print_cached_tables
(
void
)
void
print_cached_tables
(
void
)
...
...
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