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
98503327
Commit
98503327
authored
Feb 28, 2006
by
tomas@poseidon.ndb.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug #17763 mysqld cores with list partitioning if update to missing partition
- error string wrongly formatted
parent
d3371b99
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
1 deletion
+24
-1
mysql-test/r/ndb_partition_error.result
mysql-test/r/ndb_partition_error.result
+8
-0
mysql-test/t/ndb_partition_error.test
mysql-test/t/ndb_partition_error.test
+12
-0
sql/ha_ndbcluster.cc
sql/ha_ndbcluster.cc
+4
-1
No files found.
mysql-test/r/ndb_partition_error.result
View file @
98503327
...
...
@@ -28,3 +28,11 @@ partitions 3
partition x2 values less than (10),
partition x3 values less than (20));
drop table t1;
CREATE TABLE t1 (id INT) ENGINE=NDB
PARTITION BY LIST(id)
(PARTITION p0 VALUES IN (2, 4),
PARTITION p1 VALUES IN (42, 142));
INSERT INTO t1 VALUES (2);
UPDATE t1 SET id=5 WHERE id=2;
ERROR HY000: Table has no partition for value 5
DROP TABLE t1;
mysql-test/t/ndb_partition_error.test
View file @
98503327
...
...
@@ -44,3 +44,15 @@ partitions 3
partition
x3
values
less
than
(
20
));
drop
table
t1
;
#
# Bug #17763 mysqld cores with list partitioning if update to missing partition
#
CREATE
TABLE
t1
(
id
INT
)
ENGINE
=
NDB
PARTITION
BY
LIST
(
id
)
(
PARTITION
p0
VALUES
IN
(
2
,
4
),
PARTITION
p1
VALUES
IN
(
42
,
142
));
INSERT
INTO
t1
VALUES
(
2
);
--
error
ER_NO_PARTITION_FOR_GIVEN_VALUE
UPDATE
t1
SET
id
=
5
WHERE
id
=
2
;
DROP
TABLE
t1
;
sql/ha_ndbcluster.cc
View file @
98503327
...
...
@@ -5988,8 +5988,11 @@ void ha_ndbcluster::print_error(int error, myf errflag)
DBUG_PRINT
(
"enter"
,
(
"error = %d"
,
error
));
if
(
error
==
HA_ERR_NO_PARTITION_FOUND
)
{
char
buf
[
100
];
my_error
(
ER_NO_PARTITION_FOR_GIVEN_VALUE
,
MYF
(
0
),
(
int
)
m_part_info
->
part_expr
->
val_int
());
llstr
(
m_part_info
->
part_expr
->
val_int
(),
buf
));
}
else
handler
::
print_error
(
error
,
errflag
);
DBUG_VOID_RETURN
;
...
...
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