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
575dc079
Commit
575dc079
authored
Dec 10, 2008
by
Mattias Jonsson
Browse files
Options
Browse Files
Download
Plain Diff
merge
parents
7ce5c00c
2405e47d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
1 deletion
+8
-1
mysql-test/suite/parts/r/partition_special_innodb.result
mysql-test/suite/parts/r/partition_special_innodb.result
+5
-0
mysql-test/suite/parts/t/partition_special_innodb.test
mysql-test/suite/parts/t/partition_special_innodb.test
+2
-0
sql/ha_partition.cc
sql/ha_partition.cc
+1
-1
No files found.
mysql-test/suite/parts/r/partition_special_innodb.result
View file @
575dc079
...
@@ -213,5 +213,10 @@ START TRANSACTION;
...
@@ -213,5 +213,10 @@ START TRANSACTION;
INSERT INTO t1 VALUES (NULL, 'first row t2');
INSERT INTO t1 VALUES (NULL, 'first row t2');
SET autocommit=OFF;
SET autocommit=OFF;
ALTER TABLE t1 AUTO_INCREMENT = 10;
ALTER TABLE t1 AUTO_INCREMENT = 10;
ERROR HY000: Lock wait timeout exceeded; try restarting transaction
INSERT INTO t1 VALUES (NULL, 'second row t2');
INSERT INTO t1 VALUES (NULL, 'second row t2');
SELECT a,b FROM t1 ORDER BY a;
a b
1 first row t2
2 second row t2
DROP TABLE t1;
DROP TABLE t1;
mysql-test/suite/parts/t/partition_special_innodb.test
View file @
575dc079
...
@@ -68,10 +68,12 @@ INSERT INTO t1 VALUES (NULL, 'first row t2');
...
@@ -68,10 +68,12 @@ INSERT INTO t1 VALUES (NULL, 'first row t2');
--
connection
con2
--
connection
con2
SET
autocommit
=
OFF
;
SET
autocommit
=
OFF
;
--
error
ER_LOCK_WAIT_TIMEOUT
ALTER
TABLE
t1
AUTO_INCREMENT
=
10
;
ALTER
TABLE
t1
AUTO_INCREMENT
=
10
;
--
connection
con1
--
connection
con1
INSERT
INTO
t1
VALUES
(
NULL
,
'second row t2'
);
INSERT
INTO
t1
VALUES
(
NULL
,
'second row t2'
);
SELECT
a
,
b
FROM
t1
ORDER
BY
a
;
--
disconnect
con2
--
disconnect
con2
--
disconnect
con1
--
disconnect
con1
--
connection
default
--
connection
default
...
...
sql/ha_partition.cc
View file @
575dc079
...
@@ -3431,7 +3431,7 @@ int ha_partition::rnd_next(uchar *buf)
...
@@ -3431,7 +3431,7 @@ int ha_partition::rnd_next(uchar *buf)
while
(
TRUE
)
while
(
TRUE
)
{
{
int
result
=
file
->
rnd_next
(
buf
);
result
=
file
->
rnd_next
(
buf
);
if
(
!
result
)
if
(
!
result
)
{
{
m_last_part
=
part_id
;
m_last_part
=
part_id
;
...
...
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