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
ac0354c7
Commit
ac0354c7
authored
Jun 14, 2006
by
mikael@c-0409e253.1238-1-64736c10.cust.bredbandsbolaget.se
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG#19801: Problems with single partition with only NULL allowed in LIST partitioning
After review fix
parent
d3ea79ff
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
sql/partition_info.cc
sql/partition_info.cc
+3
-4
No files found.
sql/partition_info.cc
View file @
ac0354c7
...
...
@@ -567,7 +567,6 @@ bool partition_info::check_list_constants()
uint
i
;
uint
list_index
=
0
;
longlong
*
list_value
;
bool
not_first
;
bool
result
=
TRUE
;
longlong
curr_value
,
prev_value
;
partition_element
*
part_def
;
...
...
@@ -634,19 +633,19 @@ bool partition_info::check_list_constants()
if
(
no_list_values
)
{
bool
first
=
TRUE
;
qsort
((
void
*
)
list_array
,
no_list_values
,
sizeof
(
LIST_PART_ENTRY
),
&
list_part_cmp
);
not_first
=
FALSE
;
i
=
prev_value
=
0
;
//prev_value initialised to quiet compiler
do
{
DBUG_ASSERT
(
i
<
no_list_values
);
curr_value
=
list_array
[
i
].
list_value
;
if
(
likely
(
!
not_
first
||
prev_value
!=
curr_value
))
if
(
likely
(
first
||
prev_value
!=
curr_value
))
{
prev_value
=
curr_value
;
not_first
=
TRU
E
;
first
=
FALS
E
;
}
else
{
...
...
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