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
9fde9619
Commit
9fde9619
authored
Jun 01, 2001
by
sasha@mysql.sashanet.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge work:/home/bk/mysql-4.0
into mysql.sashanet.com:/home/sasha/src/bk/mysql-4.0
parents
04aeee5d
11772a26
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
.bzrignore
.bzrignore
+4
-3
sql/item_sum.cc
sql/item_sum.cc
+3
-3
No files found.
.bzrignore
View file @
9fde9619
...
@@ -119,6 +119,7 @@ bdb/include/gen_server_ext.h
...
@@ -119,6 +119,7 @@ bdb/include/gen_server_ext.h
bdb/include/hash_auto.h
bdb/include/hash_auto.h
bdb/include/log_auto.h
bdb/include/log_auto.h
bdb/include/qam_auto.h
bdb/include/qam_auto.h
bdb/include/rpc_server_ext.h
bdb/include/txn_auto.h
bdb/include/txn_auto.h
bdb/java/src/com/sleepycat/db/DbConstants.java
bdb/java/src/com/sleepycat/db/DbConstants.java
bdb/log/log_auto.c
bdb/log/log_auto.c
...
@@ -183,6 +184,7 @@ libmysql_r/acconfig.h
...
@@ -183,6 +184,7 @@ libmysql_r/acconfig.h
libmysql_r/conf_to_src
libmysql_r/conf_to_src
libmysql_r/my_static.h
libmysql_r/my_static.h
libmysql_r/mysys_priv.h
libmysql_r/mysys_priv.h
libmysqld/backup_dir
libmysqld/convert.cc
libmysqld/convert.cc
libmysqld/derror.cc
libmysqld/derror.cc
libmysqld/errmsg.c
libmysqld/errmsg.c
...
@@ -222,12 +224,14 @@ libmysqld/opt_sum.cc
...
@@ -222,12 +224,14 @@ libmysqld/opt_sum.cc
libmysqld/password.c
libmysqld/password.c
libmysqld/procedure.cc
libmysqld/procedure.cc
libmysqld/records.cc
libmysqld/records.cc
libmysqld/simple-test
libmysqld/slave.cc
libmysqld/slave.cc
libmysqld/sql_acl.cc
libmysqld/sql_acl.cc
libmysqld/sql_analyse.cc
libmysqld/sql_analyse.cc
libmysqld/sql_base.cc
libmysqld/sql_base.cc
libmysqld/sql_cache.cc
libmysqld/sql_cache.cc
libmysqld/sql_class.cc
libmysqld/sql_class.cc
libmysqld/sql_command
libmysqld/sql_crypt.cc
libmysqld/sql_crypt.cc
libmysqld/sql_db.cc
libmysqld/sql_db.cc
libmysqld/sql_delete.cc
libmysqld/sql_delete.cc
...
@@ -355,6 +359,3 @@ support-files/mysql.server
...
@@ -355,6 +359,3 @@ support-files/mysql.server
support-files/mysql.spec
support-files/mysql.spec
tags
tags
tmp/*
tmp/*
libmysqld/sql_command
libmysqld/backup_dir
libmysqld/simple-test
sql/item_sum.cc
View file @
9fde9619
...
@@ -811,7 +811,7 @@ int composite_key_cmp(void* arg, byte* key1, byte* key2)
...
@@ -811,7 +811,7 @@ int composite_key_cmp(void* arg, byte* key1, byte* key2)
{
{
int
res
;
int
res
;
Field
*
f
=
*
field
;
Field
*
f
=
*
field
;
int
len
=
f
->
field_length
;
int
len
=
f
->
pack_length
()
;
switch
((
*
field
)
->
type
())
switch
((
*
field
)
->
type
())
{
{
case
FIELD_TYPE_STRING
:
case
FIELD_TYPE_STRING
:
...
@@ -921,7 +921,7 @@ bool Item_sum_count_distinct::setup(THD *thd)
...
@@ -921,7 +921,7 @@ bool Item_sum_count_distinct::setup(THD *thd)
compare_key
=
(
qsort_cmp2
)
simple_raw_key_cmp
;
compare_key
=
(
qsort_cmp2
)
simple_raw_key_cmp
;
break
;
break
;
}
}
cmp_arg
=
(
void
*
)(
key_len
=
field
->
field_length
);
cmp_arg
=
(
void
*
)(
key_len
=
field
->
pack_length
()
);
rec_offset
=
1
;
rec_offset
=
1
;
}
}
else
// too bad, cannot cheat - there is more than one field
else
// too bad, cannot cheat - there is more than one field
...
@@ -931,7 +931,7 @@ bool Item_sum_count_distinct::setup(THD *thd)
...
@@ -931,7 +931,7 @@ bool Item_sum_count_distinct::setup(THD *thd)
field_end
=
(
field
=
table
->
field
)
+
table
->
fields
;
field_end
=
(
field
=
table
->
field
)
+
table
->
fields
;
for
(
key_len
=
0
;
field
<
field_end
;
++
field
)
for
(
key_len
=
0
;
field
<
field_end
;
++
field
)
{
{
key_len
+=
(
*
field
)
->
field_length
;
key_len
+=
(
*
field
)
->
pack_length
()
;
if
(
!
(
*
field
)
->
binary
())
if
(
!
(
*
field
)
->
binary
())
all_binary
=
0
;
all_binary
=
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