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
1b656d45
Commit
1b656d45
authored
Jan 13, 2003
by
heikki@hundin.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sql_handler.cc:
Backport the InnoDB HANDLER bug fix from 4.1
parent
7424bf2e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
sql/sql_handler.cc
sql/sql_handler.cc
+4
-2
No files found.
sql/sql_handler.cc
View file @
1b656d45
...
...
@@ -109,6 +109,8 @@ int mysql_ha_read(THD *thd, TABLE_LIST *tables,
if
(
cond
&&
cond
->
fix_fields
(
thd
,
tables
))
return
-
1
;
table
->
file
->
init_table_handle_for_HANDLER
();
// Only InnoDB requires it
if
(
keyname
)
{
if
((
keyno
=
find_type
(
keyname
,
&
table
->
keynames
,
1
+
2
)
-
1
)
<
0
)
...
...
@@ -128,8 +130,6 @@ int mysql_ha_read(THD *thd, TABLE_LIST *tables,
insert_fields
(
thd
,
tables
,
tables
->
db
,
tables
->
alias
,
&
it
);
table
->
file
->
init_table_handle_for_HANDLER
();
// Only InnoDB requires it
select_limit
+=
offset_limit
;
send_fields
(
thd
,
list
,
1
);
...
...
@@ -139,6 +139,8 @@ int mysql_ha_read(THD *thd, TABLE_LIST *tables,
if
(
!
lock
)
goto
err0
;
// mysql_lock_tables() printed error message already
table
->
file
->
init_table_handle_for_HANDLER
();
// Only InnoDB requires it
for
(
num_rows
=
0
;
num_rows
<
select_limit
;
)
{
switch
(
mode
)
{
...
...
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