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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
ffa5f52e
Commit
ffa5f52e
authored
Apr 01, 2003
by
bar@bar.mysql.r18.ru
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Better error message
parent
dd2ef4fe
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
10 deletions
+5
-10
sql/item_strfunc.cc
sql/item_strfunc.cc
+3
-9
sql/share/charsets/Index.xml
sql/share/charsets/Index.xml
+2
-1
No files found.
sql/item_strfunc.cc
View file @
ffa5f52e
...
@@ -2166,17 +2166,11 @@ void Item_func_set_collation::fix_length_and_dec()
...
@@ -2166,17 +2166,11 @@ void Item_func_set_collation::fix_length_and_dec()
MY_CS_BINSORT
,
MYF
(
0
));
MY_CS_BINSORT
,
MYF
(
0
));
else
else
set_collation
=
get_charset_by_name
(
colname
,
MYF
(
0
));
set_collation
=
get_charset_by_name
(
colname
,
MYF
(
0
));
if
(
!
set_collation
)
if
(
!
set_collation
||
!
my_charset_same
(
args
[
0
]
->
charset
(),
set_collation
))
{
my_error
(
ER_UNKNOWN_CHARACTER_SET
,
MYF
(
0
),
str
->
c_ptr
());
return
;
}
if
(
!
my_charset_same
(
args
[
0
]
->
charset
(),
set_collation
))
{
{
my_error
(
ER_COLLATION_CHARSET_MISMATCH
,
MYF
(
0
),
my_error
(
ER_COLLATION_CHARSET_MISMATCH
,
MYF
(
0
),
set_collation
->
name
,
args
[
0
]
->
charset
()
->
csname
);
col
name
,
args
[
0
]
->
charset
()
->
csname
);
return
;
return
;
}
}
set_charset
(
set_collation
,
COER_EXPLICIT
);
set_charset
(
set_collation
,
COER_EXPLICIT
);
...
...
sql/share/charsets/Index.xml
View file @
ffa5f52e
<?xml version='1.0' encoding="utf-8"?>
<?xml version='1.0' encoding="utf-8"?>
<charsets
max-id=
"8
2
"
>
<charsets
max-id=
"8
3
"
>
<description>
<description>
This file lists all of the available character sets.
This file lists all of the available character sets.
...
@@ -377,6 +377,7 @@ To make maintaining easier please:
...
@@ -377,6 +377,7 @@ To make maintaining easier please:
<description>
UTF-8 Unicode
</description>
<description>
UTF-8 Unicode
</description>
<alias>
utf-8
</alias>
<alias>
utf-8
</alias>
<collation
name=
"utf8"
id=
"33"
flag=
"primary"
/>
<collation
name=
"utf8"
id=
"33"
flag=
"primary"
/>
<collation
name=
"utf8_bin"
id=
"83"
flag=
"binary"
/>
</charset>
</charset>
<charset
name=
"ucs2"
>
<charset
name=
"ucs2"
>
...
...
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