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
cba85dba
Commit
cba85dba
authored
Apr 04, 2007
by
holyfoot/hf@hfmain.(none)
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/home/hf/work/27359/my51-27359
into mysql.com:/home/hf/work/my_mrg/my51-my_mrg
parents
d7352bdd
e44f0a2a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
1 deletion
+23
-1
mysql-test/r/ndb_partition_error2.result
mysql-test/r/ndb_partition_error2.result
+3
-0
mysql-test/t/ndb_partition_error2-master.opt
mysql-test/t/ndb_partition_error2-master.opt
+1
-0
mysql-test/t/ndb_partition_error2.test
mysql-test/t/ndb_partition_error2.test
+14
-0
sql/partition_info.cc
sql/partition_info.cc
+5
-1
No files found.
mysql-test/r/ndb_partition_error2.result
0 → 100644
View file @
cba85dba
drop table if exists t1;
create table t1 (s1 int) engine=ndbcluster;
ERROR HY000: For the partitioned engine it is necessary to define all partitions
mysql-test/t/ndb_partition_error2-master.opt
0 → 100644
View file @
cba85dba
--ndbcluster
mysql-test/t/ndb_partition_error2.test
0 → 100644
View file @
cba85dba
disable_query_log
;
--
require
r
/
true
.
require
select
support
=
'Enabled'
as
`TRUE`
from
information_schema
.
engines
where
engine
=
'ndbcluster'
;
enable_query_log
;
--
disable_warnings
drop
table
if
exists
t1
;
--
enable_warnings
#
# Bug #27359 Partitions: memory allocation error message
#
--
error
ER_PARTITION_NOT_DEFINED_ERROR
create
table
t1
(
s1
int
)
engine
=
ndbcluster
;
sql/partition_info.cc
View file @
cba85dba
...
...
@@ -753,7 +753,11 @@ bool partition_info::check_partition_info(THD *thd, handlerton **eng_type,
}
if
(
unlikely
(
set_up_defaults_for_partitioning
(
file
,
info
,
(
uint
)
0
)))
goto
end
;
tot_partitions
=
get_tot_partitions
();
if
(
!
(
tot_partitions
=
get_tot_partitions
()))
{
my_error
(
ER_PARTITION_NOT_DEFINED_ERROR
,
MYF
(
0
),
"partitions"
);
goto
end
;
}
if
(
unlikely
(
tot_partitions
>
MAX_PARTITIONS
))
{
my_error
(
ER_TOO_MANY_PARTITIONS_ERROR
,
MYF
(
0
));
...
...
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