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
04ed9f02
Commit
04ed9f02
authored
Jun 01, 2005
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more than 64 indexes per table. bugfixes. bug#10995
parent
92f7de69
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
18 deletions
+22
-18
sql/sql_bitmap.h
sql/sql_bitmap.h
+11
-12
sql/sql_select.cc
sql/sql_select.cc
+1
-0
tests/mysql_client_test.c
tests/mysql_client_test.c
+10
-6
No files found.
sql/sql_bitmap.h
View file @
04ed9f02
...
...
@@ -28,7 +28,7 @@ template <uint default_width> class Bitmap
uchar
buffer
[(
default_width
+
7
)
/
8
];
public:
Bitmap
()
{
init
();
}
Bitmap
(
Bitmap
&
from
)
{
*
this
=
from
;
}
Bitmap
(
const
Bitmap
&
from
)
{
*
this
=
from
;
}
explicit
Bitmap
(
uint
prefix_to_set
)
{
init
(
prefix_to_set
);
}
void
init
()
{
bitmap_init
(
&
map
,
buffer
,
default_width
,
0
);
}
void
init
(
uint
prefix_to_set
)
{
init
();
set_prefix
(
prefix_to_set
);
}
...
...
@@ -61,18 +61,17 @@ public:
my_bool
operator
==
(
const
Bitmap
&
map2
)
const
{
return
bitmap_cmp
(
&
map
,
&
map2
.
map
);
}
char
*
print
(
char
*
buf
)
const
{
char
*
s
=
buf
;
int
i
;
for
(
i
=
sizeof
(
buffer
)
-
1
;
i
>=
0
;
i
--
)
char
*
s
=
buf
;
const
uchar
*
e
=
buffer
,
*
b
=
e
+
sizeof
(
buffer
)
-
1
;
while
(
!*
b
&&
b
>
e
)
b
--
;
if
((
*
s
=
_dig_vec_upper
[
*
b
>>
4
])
!=
'0'
)
s
++
;
*
s
++=
_dig_vec_upper
[
*
b
&
15
];
while
(
--
b
>=
e
)
{
if
((
*
s
=
_dig_vec_upper
[
buffer
[
i
]
>>
4
])
!=
'0'
)
break
;
if
((
*
s
=
_dig_vec_upper
[
buffer
[
i
]
&
15
])
!=
'0'
)
break
;
}
for
(
s
++
,
i
--
;
i
>=
0
;
i
--
)
{
*
s
++=
_dig_vec_upper
[
buffer
[
i
]
>>
4
];
*
s
++=
_dig_vec_upper
[
buffer
[
i
]
&
15
];
*
s
++=
_dig_vec_upper
[
*
b
>>
4
];
*
s
++=
_dig_vec_upper
[
*
b
&
15
];
}
*
s
=
0
;
return
buf
;
...
...
sql/sql_select.cc
View file @
04ed9f02
...
...
@@ -5792,6 +5792,7 @@ make_join_readinfo(JOIN *join, uint options)
if
(
!
table
->
no_keyread
)
{
if
(
tab
->
select
&&
tab
->
select
->
quick
&&
tab
->
select
->
quick
->
index
!=
MAX_KEY
&&
//not index_merge
table
->
used_keys
.
is_set
(
tab
->
select
->
quick
->
index
))
{
table
->
key_read
=
1
;
...
...
tests/mysql_client_test.c
View file @
04ed9f02
...
...
@@ -7455,12 +7455,16 @@ static void test_explain_bug()
verify_prepare_field
(
result
,
5
,
"key"
,
""
,
MYSQL_TYPE_VAR_STRING
,
""
,
""
,
""
,
NAME_LEN
,
0
);
verify_prepare_field
(
result
,
6
,
"key_len"
,
""
,
(
mysql_get_server_version
(
mysql
)
<=
50000
?
MYSQL_TYPE_LONGLONG
:
MYSQL_TYPE_VAR_STRING
),
""
,
""
,
""
,
(
mysql_get_server_version
(
mysql
)
<=
50000
?
3
:
4096
),
0
);
if
(
mysql_get_server_version
(
mysql
)
<=
50000
)
{
verify_prepare_field
(
result
,
6
,
"key_len"
,
""
,
MYSQL_TYPE_LONGLONG
,
""
,
""
,
""
,
3
,
0
);
}
else
{
verify_prepare_field
(
result
,
6
,
"key_len"
,
""
,
MYSQL_TYPE_VAR_STRING
,
""
,
""
,
""
,
NAME_LEN
*
MAX_KEY
,
0
);
}
verify_prepare_field
(
result
,
7
,
"ref"
,
""
,
MYSQL_TYPE_VAR_STRING
,
""
,
""
,
""
,
NAME_LEN
*
16
,
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