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
a6dbd490
Commit
a6dbd490
authored
Apr 16, 2003
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for a bug with InnoDB SQL handler, when previous query failed
and an attempt is made to read previous / next value.
parent
c4d9b9c6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
2 deletions
+19
-2
mysql-test/r/innodb_handler.result
mysql-test/r/innodb_handler.result
+9
-1
mysql-test/t/innodb_handler.test
mysql-test/t/innodb_handler.test
+7
-1
sql/ha_innodb.cc
sql/ha_innodb.cc
+3
-0
No files found.
mysql-test/r/innodb_handler.result
View file @
a6dbd490
...
...
@@ -139,4 +139,12 @@ a b
alter table t1 type=innodb;
handler t2 read first;
Unknown table 't2' in HANDLER
drop table if exists t1;
drop table t1;
CREATE TABLE t1 ( no1 smallint(5) NOT NULL default '0', no2 int(10) NOT NULL default '0', PRIMARY KEY (no1,no2)) TYPE=InnoDB;
INSERT INTO t1 VALUES (1,274),(1,275),(2,6),(2,8),(4,1),(4,2);
HANDLER t1 OPEN;
HANDLER t1 READ `primary` = (1, 1000);
no1 no2
HANDLER t1 READ `primary` PREV;
no1 no2
DROP TABLE t1;
mysql-test/t/innodb_handler.test
View file @
a6dbd490
...
...
@@ -72,5 +72,11 @@ alter table t1 type=innodb;
--
error
1109
handler
t2
read
first
;
drop
table
if
exists
t1
;
drop
table
t1
;
CREATE
TABLE
t1
(
no1
smallint
(
5
)
NOT
NULL
default
'0'
,
no2
int
(
10
)
NOT
NULL
default
'0'
,
PRIMARY
KEY
(
no1
,
no2
))
TYPE
=
InnoDB
;
INSERT
INTO
t1
VALUES
(
1
,
274
),(
1
,
275
),(
2
,
6
),(
2
,
8
),(
4
,
1
),(
4
,
2
);
HANDLER
t1
OPEN
;
HANDLER
t1
READ
`primary`
=
(
1
,
1000
);
HANDLER
t1
READ
`primary`
PREV
;
DROP
TABLE
t1
;
sql/ha_innodb.cc
View file @
a6dbd490
...
...
@@ -2579,6 +2579,9 @@ ha_innobase::general_fetch(
ut_a
(
prebuilt
->
trx
==
(
trx_t
*
)
current_thd
->
transaction
.
all
.
innobase_tid
);
if
(
table
->
status
==
STATUS_NOT_FOUND
)
DBUG_RETURN
(
HA_ERR_KEY_NOT_FOUND
);
srv_conc_enter_innodb
(
prebuilt
->
trx
);
ret
=
row_search_for_mysql
((
byte
*
)
buf
,
0
,
prebuilt
,
match_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