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
93a98270
Commit
93a98270
authored
Feb 14, 2006
by
msvensson@neptunus.(none)
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal.mysql.com:/home/bk/mysql-5.0
into neptunus.(none):/home/msvensson/mysql/mysql-5.0
parents
fed5a68e
84a775ca
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
sql/sql_select.cc
sql/sql_select.cc
+4
-3
No files found.
sql/sql_select.cc
View file @
93a98270
...
...
@@ -12746,11 +12746,12 @@ calc_group_buffer(JOIN *join,ORDER *group)
Field
*
field
=
group_item
->
get_tmp_table_field
();
if
(
field
)
{
if
(
field
->
type
()
==
FIELD_TYPE_BLOB
)
enum_field_types
type
;
if
((
type
=
field
->
type
())
==
FIELD_TYPE_BLOB
)
key_length
+=
MAX_BLOB_WIDTH
;
// Can't be used as a key
else
if
(
field
->
type
()
==
MYSQL_TYPE_VARCHAR
)
else
if
(
type
==
MYSQL_TYPE_VARCHAR
||
type
==
MYSQL_TYPE_VAR_STRING
)
key_length
+=
field
->
field_length
+
HA_KEY_BLOB_LENGTH
;
else
if
(
field
->
type
()
==
FIELD_TYPE_BIT
)
else
if
(
type
==
FIELD_TYPE_BIT
)
{
/* Bit is usually stored as a longlong key for group fields */
key_length
+=
8
;
// Big enough
...
...
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