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
65077a8a
Commit
65077a8a
authored
Feb 27, 2004
by
serg@serg.mylan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix CHARSET(UUID())
parent
111ffb76
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
sql/item_strfunc.cc
sql/item_strfunc.cc
+1
-0
sql/item_strfunc.h
sql/item_strfunc.h
+4
-1
No files found.
sql/item_strfunc.cc
View file @
65077a8a
...
...
@@ -2730,6 +2730,7 @@ String *Item_func_uuid::val_str(String *str)
str
->
realloc
(
UUID_LENGTH
+
1
);
str
->
length
(
UUID_LENGTH
);
str
->
set_charset
(
system_charset_info
);
s
=
(
char
*
)
str
->
ptr
();
s
[
8
]
=
s
[
13
]
=
'-'
;
tohex
(
s
,
time_low
,
8
);
...
...
sql/item_strfunc.h
View file @
65077a8a
...
...
@@ -696,7 +696,10 @@ class Item_func_uuid: public Item_str_func
{
public:
Item_func_uuid
()
:
Item_str_func
()
{}
void
fix_length_and_dec
()
{
max_length
=
UUID_LENGTH
;
}
void
fix_length_and_dec
()
{
collation
.
set
(
system_charset_info
);
max_length
=
UUID_LENGTH
;
}
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