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
334df1aa
Commit
334df1aa
authored
Dec 16, 2004
by
ingo@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/home/mydev/mysql-5.0
into mysql.com:/home/mydev/mysql-5.0-wl2126
parents
3afd1939
05d5360e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
3 deletions
+16
-3
mysql-test/r/init_connect.result
mysql-test/r/init_connect.result
+1
-1
mysql-test/t/init_connect.test
mysql-test/t/init_connect.test
+1
-1
sql/sql_select.cc
sql/sql_select.cc
+14
-1
No files found.
mysql-test/r/init_connect.result
View file @
334df1aa
...
...
@@ -12,7 +12,7 @@ set GLOBAL init_connect=DEFAULT;
select @a;
@a
NULL
set global init_connect="create table t1(a char(10));\
set global init_connect="
drop table if exists t1;
create table t1(a char(10));\
insert into t1 values ('\0');insert into t1 values('abc')";
select hex(a) from t1;
hex(a)
...
...
mysql-test/t/init_connect.test
View file @
334df1aa
...
...
@@ -19,7 +19,7 @@ connect (con3,localhost,user_1,,);
connection
con3
;
select
@
a
;
connection
con0
;
set
global
init_connect
=
"create table t1(a char(10));\
set
global
init_connect
=
"
drop table if exists t1;
create table t1(a char(10));\
insert into t1 values ('
\0
');insert into t1 values('abc')"
;
connect
(
con4
,
localhost
,
user_1
,,);
connection
con4
;
...
...
sql/sql_select.cc
View file @
334df1aa
...
...
@@ -11654,8 +11654,21 @@ calc_group_buffer(JOIN *join,ORDER *group)
key_length
+=
sizeof
(
double
);
else
if
((
*
group
->
item
)
->
result_type
()
==
INT_RESULT
)
key_length
+=
sizeof
(
longlong
);
else
if
((
*
group
->
item
)
->
result_type
()
==
STRING_RESULT
)
{
/*
Group strings are taken as varstrings and require an length field.
A field is not yet created by create_tmp_field()
and the sizes should match up.
*/
key_length
+=
(
*
group
->
item
)
->
max_length
+
HA_KEY_BLOB_LENGTH
;
}
else
key_length
+=
(
*
group
->
item
)
->
max_length
;
{
/* This case should never be choosen */
DBUG_ASSERT
(
0
);
current_thd
->
fatal_error
();
}
parts
++
;
if
((
*
group
->
item
)
->
maybe_null
)
null_parts
++
;
...
...
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