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
02a3295a
Commit
02a3295a
authored
May 17, 2005
by
msvensson@neptunus.(none)
Browse files
Options
Browse Files
Download
Plain Diff
Merge neptunus.(none):/home/msvensson/mysql/bug9535
into neptunus.(none):/home/msvensson/mysql/mysql-5.0
parents
56fa40e5
e6ba48b9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
1 deletion
+22
-1
mysql-test/r/func_misc.result
mysql-test/r/func_misc.result
+8
-0
mysql-test/t/func_misc.test
mysql-test/t/func_misc.test
+8
-0
sql/item_strfunc.h
sql/item_strfunc.h
+6
-1
No files found.
mysql-test/r/func_misc.result
View file @
02a3295a
...
...
@@ -51,3 +51,11 @@ select a from t1 where mid(a+0,6,3) = ( mid(20040106123400,6,3) );
a
2004-01-06 12:34:00
drop table t1;
create table t1 as select uuid(), length(uuid());
show create table t1;
Table Create Table
t1 CREATE TABLE `t1` (
`uuid()` varchar(36) character set utf8 NOT NULL default '',
`length(uuid())` int(10) NOT NULL default '0'
) ENGINE=MyISAM DEFAULT CHARSET=latin1
drop table t1;
mysql-test/t/func_misc.test
View file @
02a3295a
...
...
@@ -38,3 +38,11 @@ select a from t1 where mid(a+0,6,3) = ( mid(20040106123400,6,3) );
drop
table
t1
;
# Test for BUG#9535
create
table
t1
as
select
uuid
(),
length
(
uuid
());
show
create
table
t1
;
drop
table
t1
;
sql/item_strfunc.h
View file @
02a3295a
...
...
@@ -726,7 +726,12 @@ public:
Item_func_uuid
()
:
Item_str_func
()
{}
void
fix_length_and_dec
()
{
collation
.
set
(
system_charset_info
);
max_length
=
UUID_LENGTH
;
/*
NOTE! uuid() should be changed to use 'ascii'
charset when hex(), format(), md5(), etc, and implicit
number-to-string conversion will use 'ascii'
*/
max_length
=
UUID_LENGTH
*
system_charset_info
->
mbmaxlen
;
}
const
char
*
func_name
()
const
{
return
"uuid"
;
}
String
*
val_str
(
String
*
);
...
...
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