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
8b97f200
Commit
8b97f200
authored
Jan 03, 2002
by
serg@serg.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
handler+alter table
parent
8759fc48
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
0 deletions
+8
-0
mysql-test/r/handler.result
mysql-test/r/handler.result
+1
-0
mysql-test/t/handler.test
mysql-test/t/handler.test
+2
-0
sql/sql_handler.cc
sql/sql_handler.cc
+5
-0
No files found.
mysql-test/r/handler.result
View file @
8b97f200
...
@@ -129,6 +129,7 @@ a b
...
@@ -129,6 +129,7 @@ a b
handler t2 read next;
handler t2 read next;
a b
a b
18 eee
18 eee
alter table t1 type=MyISAM;
handler t2 read next;
handler t2 read next;
a b
a b
19 fff
19 fff
...
...
mysql-test/t/handler.test
View file @
8b97f200
...
@@ -58,8 +58,10 @@ handler t2 read a=(19) where b="yyy";
...
@@ -58,8 +58,10 @@ handler t2 read a=(19) where b="yyy";
handler
t2
read
first
;
handler
t2
read
first
;
handler
t2
read
next
;
handler
t2
read
next
;
alter
table
t1
type
=
MyISAM
;
handler
t2
read
next
;
handler
t2
read
next
;
!
$
1064
handler
t2
read
last
;
!
$
1064
handler
t2
read
last
;
handler
t2
close
;
handler
t2
close
;
drop
table
if
exists
t1
;
drop
table
if
exists
t1
;
sql/sql_handler.cc
View file @
8b97f200
...
@@ -130,7 +130,11 @@ int mysql_ha_read(THD *thd, TABLE_LIST *tables,
...
@@ -130,7 +130,11 @@ int mysql_ha_read(THD *thd, TABLE_LIST *tables,
select_limit
+=
offset_limit
;
select_limit
+=
offset_limit
;
send_fields
(
thd
,
list
,
1
);
send_fields
(
thd
,
list
,
1
);
HANDLER_TABLES_HACK
(
thd
);
MYSQL_LOCK
*
lock
=
mysql_lock_tables
(
thd
,
&
tables
->
table
,
1
);
MYSQL_LOCK
*
lock
=
mysql_lock_tables
(
thd
,
&
tables
->
table
,
1
);
HANDLER_TABLES_HACK
(
thd
);
if
(
!
lock
)
goto
err0
;
// mysql_lock_tables() printed error message already
for
(
uint
num_rows
=
0
;
num_rows
<
select_limit
;
)
for
(
uint
num_rows
=
0
;
num_rows
<
select_limit
;
)
{
{
...
@@ -238,6 +242,7 @@ ok:
...
@@ -238,6 +242,7 @@ ok:
return
0
;
return
0
;
err:
err:
mysql_unlock_tables
(
thd
,
lock
);
mysql_unlock_tables
(
thd
,
lock
);
err0:
return
-
1
;
return
-
1
;
}
}
...
...
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