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
924de893
Commit
924de893
authored
Jun 25, 2004
by
serg@serg.mylan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
release cursors in return_zero_rows
parent
3ba6fd97
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
sql/opt_range.cc
sql/opt_range.cc
+1
-4
sql/sql_select.cc
sql/sql_select.cc
+2
-0
No files found.
sql/opt_range.cc
View file @
924de893
...
...
@@ -629,7 +629,7 @@ int SQL_SELECT::test_quick_select(THD *thd, key_map keys_to_use,
if
(
!
records
)
records
++
;
/* purecov: inspected */
scan_time
=
(
double
)
records
/
TIME_FOR_COMPARE
+
1
;
read_time
=
(
double
)
head
->
file
->
scan_time
()
+
scan_time
+
1.0
;
read_time
=
(
double
)
head
->
file
->
scan_time
()
+
scan_time
+
1.0
1
;
if
(
head
->
force_index
)
scan_time
=
read_time
=
DBL_MAX
;
if
(
limit
<
records
)
...
...
@@ -716,9 +716,6 @@ int SQL_SELECT::test_quick_select(THD *thd, key_map keys_to_use,
key
++
,
idx
++
)
{
ha_rows
found_records
;
#if defined(__GNUC__) && (__GNUC__ == 2 && __GNUC_MINOR__ == 95) && defined(__OPTIMIZE__)
volatile
// gcc 2.95.3 bug in -O3 mode
#endif
double
found_read_time
;
if
(
*
key
)
{
...
...
sql/sql_select.cc
View file @
924de893
...
...
@@ -4128,6 +4128,8 @@ return_zero_rows(JOIN *join, select_result *result,TABLE_LIST *tables,
DBUG_RETURN
(
0
);
}
join
->
join_free
(
0
);
if
(
send_row
)
{
for
(
TABLE_LIST
*
table
=
tables
;
table
;
table
=
table
->
next
)
...
...
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