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
84a775ca
Commit
84a775ca
authored
Feb 14, 2006
by
evgen@moonbone.local
Browse files
Options
Browse Files
Download
Plain Diff
Merge epotemkin@bk-internal.mysql.com:/home/bk/mysql-5.0
into moonbone.local:/work/16752-bug-5.0-mysql
parents
561d7a03
3a3f8379
Changes
1
Hide 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 @
84a775ca
...
...
@@ -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