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
e8cbda2c
Commit
e8cbda2c
authored
Aug 23, 2006
by
tsmith/tim@siva.hindu.god
Browse files
Options
Browse Files
Download
Plain Diff
Merge siva.hindu.god:/usr/home/tim/m/bk/b21531-41
into siva.hindu.god:/usr/home/tim/m/bk/41
parents
b8521714
45460bd0
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
5 deletions
+13
-5
mysql-test/r/func_misc.result
mysql-test/r/func_misc.result
+4
-0
mysql-test/t/func_misc.test
mysql-test/t/func_misc.test
+6
-1
sql/item_func.h
sql/item_func.h
+1
-2
sql/item_strfunc.cc
sql/item_strfunc.cc
+2
-2
No files found.
mysql-test/r/func_misc.result
View file @
e8cbda2c
...
...
@@ -93,3 +93,7 @@ SELECT IS_USED_LOCK('bug16501');
IS_USED_LOCK('bug16501')
NULL
DROP TABLE t1;
select export_set(3, _latin1'foo', _utf8'bar', ',', 4);
export_set(3, _latin1'foo', _utf8'bar', ',', 4)
foo,foo,bar,bar
End of 4.1 tests
mysql-test/t/func_misc.test
View file @
e8cbda2c
...
...
@@ -83,4 +83,9 @@ connection default;
DROP
TABLE
t1
;
# End of 4.1 tests
#
# Bug #21531: EXPORT_SET() doesn't accept args with coercible character sets
#
select
export_set
(
3
,
_latin1
'foo'
,
_utf8
'bar'
,
','
,
4
);
--
echo
End
of
4.1
tests
sql/item_func.h
View file @
e8cbda2c
...
...
@@ -159,8 +159,7 @@ public:
return
agg_item_collations_for_comparison
(
c
,
func_name
(),
items
,
nitems
,
flags
);
}
bool
agg_arg_charsets
(
DTCollation
&
c
,
Item
**
items
,
uint
nitems
,
uint
flags
=
0
)
bool
agg_arg_charsets
(
DTCollation
&
c
,
Item
**
items
,
uint
nitems
,
uint
flags
)
{
return
agg_item_charsets
(
c
,
func_name
(),
items
,
nitems
,
flags
);
}
...
...
sql/item_strfunc.cc
View file @
e8cbda2c
...
...
@@ -2641,8 +2641,8 @@ void Item_func_export_set::fix_length_and_dec()
uint
sep_length
=
(
arg_count
>
3
?
args
[
3
]
->
max_length
:
1
);
max_length
=
length
*
64
+
sep_length
*
63
;
if
(
agg_arg_charsets
(
collation
,
args
+
1
,
min
(
4
,
arg_count
)
-
1
)
,
MY_COLL_ALLOW_CONV
)
if
(
agg_arg_charsets
(
collation
,
args
+
1
,
min
(
4
,
arg_count
)
-
1
,
MY_COLL_ALLOW_CONV
)
)
return
;
}
...
...
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